Class ecm.widget.admin.model.AdminTreeModel

Provides a widget that contains a hierarchical navigation tree for administration objects.
Defined in: <ecm\widget\admin\model\AdminTreeModel.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
Constructs the tree model.
 
Destroys the model.
 
fetchItemByIdentity(keywordArgs)
This method is not implemented.
 
getChildren(parentItem, onComplete)
Invokes the onComplete callback function, providing an array of the children for an item.
 
Returns the identifier for the given item.
 
getLabel(item)
Returns the displayable name for an item.
 
getRoot(onItem)
Returns the root item of the model.
 
isItem(something)
Returns true if an object is an item that is displayable in the tree.
 
Returns true if the item might have children.
 
newItem(args, parent, insertIndex)
This method is not implemented.
 
onChange(item)
Event method that is called when an item's properties have changed.
 
onChildrenChange(parent, newChildrenList)
Event method that is called when an item's children have changed (added, updated, or deleted).
 
onDelete(item)
 
pasteItem(childItem, oldParentItem, newParentItem, bCopy)
This method is not implemented.

Constructor Detail

ecm.widget.admin.model.AdminTreeModel()

Method Detail

constructor()

Constructs the tree model.

destroy()

Destroys the model.

fetchItemByIdentity(keywordArgs)

This method is not implemented.
Parameters:
keywordArgs

getChildren(parentItem, onComplete)

Invokes the onComplete callback function, providing an array of the children for an item.
Parameters:
parentItem
The item to determine the children for.
onComplete
The callback function to invoke with an array of the child items as the only argument.

getIdentity(item)

Returns the identifier for the given item.
Parameters:
item

getLabel(item)

Returns the displayable name for an item.
Parameters:
item

getRoot(onItem)

Returns the root item of the model.
Parameters:
onItem

isItem(something)

Returns true if an object is an item that is displayable in the tree.
Parameters:
something
Any object.

mayHaveChildren(item)

Returns true if the item might have children.
Parameters:
item

newItem(args, parent, insertIndex)

This method is not implemented.
Parameters:
args
parent
insertIndex

onChange(item)

Event method that is called when an item's properties have changed.
Parameters:
item

onChildrenChange(parent, newChildrenList)

Event method that is called when an item's children have changed (added, updated, or deleted).
Parameters:
parent
newChildrenList

onDelete(item)

Parameters:
item

pasteItem(childItem, oldParentItem, newParentItem, bCopy)

This method is not implemented.
Parameters:
childItem
oldParentItem
newParentItem
bCopy