Class
caplin.presenter.node

Field

A PresentationNode containing all of the attributes necessary to model an input field on screen.

Constructor Summary

Attributes Name and Description
caplin.presenter.node.Field(Object vValue)

Constructs a new instance of Field.

Field Summary

Attributes Name and Description
controlName

The logical control-name the field is being bound to — this value will appear within the name attribute if being bound to a native HTML control.

enabled

A boolean property representing whether the input field is enabled or not.

failureMessage

A textual description of the currently failing validation message when #hasError is true.

hasError

A boolean property that is true if #value has any validation errors, and false otherwise.

label

The textual label associated with the input field.

value

The current value displayed within the input field.

visible

A boolean property representing whether the input field is visible or not.

Methods inherited from class caplin.presenter.node.PresentationNode:
getPath, nodes, properties, removeAllListeners, removeChildListeners

Constructor Detail

caplin.presenter.node.Field(Object vValue)

Constructs a new instance of Field.

Parameters
Object vValue (optional) The initial value of the field, either using a primitive type or as a caplin.presenter.property.EditableProperty.

Field Detail

caplin.presenter.property.WritableProperty controlName

The logical control-name the field is being bound to — this value will appear within the name attribute if being bound to a native HTML control.

caplin.presenter.property.WritableProperty enabled

A boolean property representing whether the input field is enabled or not.

caplin.presenter.property.WritableProperty failureMessage

A textual description of the currently failing validation message when #hasError is true.

caplin.presenter.property.WritableProperty hasError

A boolean property that is true if #value has any validation errors, and false otherwise.

caplin.presenter.property.WritableProperty label

The textual label associated with the input field.

caplin.presenter.property.EditableProperty value

The current value displayed within the input field.

caplin.presenter.property.WritableProperty visible

A boolean property representing whether the input field is visible or not.