|
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.Tree.Row.Model
CAF Tree.Row client-side model.
Defined in tree.js
Field Summary | |
Object |
classes
|
Fields inherited from class CAF.Table.Row.Model |
classes
|
Constructor Summary | |
CAF.Tree.Row.Model
()
|
Method Summary | |
Object
|
addChild(index, child)
Adds child to this node. |
Object
|
getChildren()
Array of this node's children, in order. |
Object
|
getDepth()
Depth of this node; roots have depth 0. |
void
|
getHasChildren()
True if node has children. |
Object
|
getLastChildAncestors()
Array of the lastChild value for each of this node's ancestors, from the root to this node's parent. |
Object
|
getParent()
Parent of this node. |
void
|
initialize(id, values, description, disabled, style, styleClass)
Initializer. |
void
|
isFirstChild()
True if this node is the first child of its parent. |
void
|
isLastChild()
True if this node is the last child of its parent. |
void
|
isLoaded()
True if this node has been loaded. |
void
|
isOpen()
True if node is expanded. |
Object
|
isVisible()
Returns true if this control is visible. |
Object
|
removeChild(child)
Removes child from this node. |
void
|
setOpen(open)
Expands or collapses this node. |
Methods inherited from class CAF.Table.Row.Model |
getLabel, setLabel, isDisabled, setDisabled, isLoading, getControlId, getControlIds, getValues, setValues
|
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.Tree.Row.Model()
Method Detail |
Object addChild(index, child)
index
- (optional) Zero-based item index. Less than zero signals add to end.
child
- CAF.Tree.Row.Model or array of CAF.Tree.Row.Models.
Object getChildren()
Object getDepth()
void getHasChildren()
Object getLastChildAncestors()
Object getParent()
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.
void isFirstChild()
void isLastChild()
void isLoaded()
void isOpen()
Object isVisible()
Object removeChild(child)
child
- Zero-based item index or value or existing CAF.Tree.Row.Model, or array of indicies, values, or CAF.Tree.Row.Models.
void setOpen(open)
open
- (optional) True to expand, false to collapse. Defaults to true if collapsed, false if expandeded.
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |