|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.Output.Model | +--CAF.Input.Model | +--CAF.Tree.Control.Model
Tree control client-side model.
This model doesn't directly modify the tree's UI
-- rather, it responds to modifications to the tree's model
by modifing the display of the toggle controls.
Defined in tree.js
Field Summary | |
Object |
classes
|
Fields inherited from class CAF.Input.Model |
classes
|
Fields inherited from class CAF.Output.Model |
id, form
|
Constructor Summary | |
CAF.Tree.Control.Model
()
|
Method Summary | |
void
|
collapse(rowId)
Toggles control display to collapsed for specified row. |
void
|
collapseAll()
Toggles control display to all collapsed. |
void
|
expand(rowId)
Toggles control display to expanded for specified row. |
void
|
expandAll()
Toggles control display to all expanded. |
void
|
initialize(element)
Initializer. |
void
|
make(rowId)
Creates the toggle control in the specified (new) row. |
void
|
toggle(rowId, open)
Toggles control display expanded/collapsed for specified row. |
void
|
toggleAll(open)
Toggles control display to all expanded/collapsed. |
Object
|
unmake(rowId)
Deletes the toggle control in the specified (deleted) row. |
Methods inherited from class CAF.Input.Model |
getValue, setValue, setDisabled, isFocused, setFocused, isEmpty, addValidator, removeValidator, listValidators, validate, addValueChangeListener, removeValueChangeListener, listValueChangeListeners, getLabel, setLabel
|
Field Detail |
Object classes
Constructor Detail |
CAF.Tree.Control.Model()
Method Detail |
void collapse(rowId)
rowId
- Client-side row id.
void collapseAll()
void expand(rowId)
rowId
- Client-side row id.
void expandAll()
void initialize(element)
element
- Input control element or id.
void make(rowId)
rowId
- Client-side row id.
void toggle(rowId, open)
rowId
- Client-side row id.
open
- (optional) True to expand, false to collapse. Defaults to true if row actually is expanded, false if row actually is collapsed.
void toggleAll(open)
open
- (optional) True to expand all, false to collapse all. Defaults to true if control display is all collapsed, false if display is all expanded.
Object unmake(rowId)
rowId
- Client-side row id.
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |