Class ecm.model.AttachmentTreeModel
Extends
ecm.model.FolderTreeModel.
Represents a tree that is used to display the folders and documents that are attached to a work item. If
the attachment is a folder, the tree provides the nested folder information.
This class implements the Dojo dijit.tree.model class.
Defined in: <ecm\model\AttachmentTreeModel.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
- Fields borrowed from class ecm.model.FolderTreeModel:
- filter, isFirstNodeasTeamspaces, isShowThisTeamspace, rootItemToFilter, thisTeamspaceName
- Fields borrowed from class ecm.model._ModelObject:
- categorization, id, isRecurring, name, nameFilter, pane, status, type, userId
Method Summary
Method Attributes | Method Name and Description |
---|---|
getChildren(parentItem, onComplete)
Return the list of child object from the selected parent.
|
|
mayHaveChildren(item)
Returns boolean flag indicating whether the specified item can has child nodes.
|
- Methods borrowed from class ecm.model.FolderTreeModel:
- applyFilter, constructor, destroy, fetchItemByIdentity, fetchNextPage, getIdentity, getLabel, getRoot, getTeamspacesItem, isItem, isLoaded, newItem, onChange, onChildrenChange, onChildrenChangeForMove, onProcessingComplete, onProcessingStarted, pasteItem, reload, replaceChildren, searchAllTeamspaces
- Methods borrowed from class ecm.model._ModelObject:
- own, refresh, toString
Method Detail
getChildren(parentItem, onComplete)
Return the list of child object from the selected parent.
- Parameters:
- parentItem
- A item object derived from ecm.model.Item
- onComplete
- A function to be called when the child items have been retrieved.
{Boolean} mayHaveChildren(item)
Returns boolean flag indicating whether the specified item can has child nodes.
- Parameters:
- item
- A item object to check to see if it supports having child items.
- Returns:
- {Boolean} true if the item can have children, false otherwise.