|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.Select.Item.Model | +--CAF.Table.Row.Model
CAF TableRow client-side model.
The value of a table row is its (server-side addressable-table-content-provider) row id.
Defined in table.js
Field Summary | |
Object |
classes
|
Constructor Summary | |
CAF.Table.Row.Model
()
|
Method Summary | |
Object
|
getControlId(localId)
Calculates the global id for the control in this row with the specified local id. |
Object
|
getControlIds()
Calculates a map of local ids to global ids for the controls contained in this row. |
Object
|
getLabel()
Gets this option's label. |
Object
|
getValues()
Returns map of (local) control ids to control model values for each control in this row. |
void
|
initialize(id, values, description, disabled, style, styleClass)
Initializer. |
Object
|
isDisabled()
True if option is disabled. |
Object
|
isLoading()
Returns true if this row is loading. |
Object
|
isVisible()
Returns true if this row is visible. |
void
|
setDisabled(disabled)
Sets this option as enabled/disabled. |
void
|
setLabel(label)
Sets this option's label. |
void
|
setValues(values)
Update the values of the controls in this row specified by the values map. |
Methods inherited from class CAF.Select.Item.Model |
toString, equals, getValue, setValue, getDescription, setDescription, getStyle, setStyle, getStyleClass, setStyleClass, getIcon, setIcon
|
Field Detail |
Object classes
Constructor Detail |
CAF.Table.Row.Model()
Method Detail |
Object getControlId(localId)
localId
- Unqualified (server-side) control id (ex "mycontrol").
Object getControlIds()
Object getLabel()
Object getValues()
void initialize(id, values, description, disabled, style, styleClass)
id
- Row id or element.
values
- Values object (map of control ids to control model values).
description
- (optional) Extended description.
disabled
- (optional) True if item is disabled.
style
- (optional) HTML "style" attribute value.
styleClass
- (optional) HTML "class" attribute value.
Object isDisabled()
Object isLoading()
Object isVisible()
void setDisabled(disabled)
disabled
- True to disable, false to enable.
void setLabel(label)
label
- String label.
void setValues(values)
values
- Object mapping Unqualified (server-side) control ids (ex "mycontrol") to control values.
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |