com.filenet.wcm.apps.server.ui.tree
Class ClientSideTree.Item

java.lang.Object
  extended bycom.filenet.wcm.apps.server.ui.tree.ClientSideTree.Item
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
ClientSideChoiceTree.ChoiceItem, ClientSideCompoundDocumentTree.ComponentRelationshipItem, ClientSideSelectionTree.FnItem
Enclosing class:
ClientSideTree

public static class ClientSideTree.Item
extends java.lang.Object
implements java.lang.Comparable


Field Summary
 org.apache.commons.collections.map.ListOrderedMap childItems
           
 boolean collapsed
           
 boolean expandable
           
 java.lang.String id
           
 java.lang.String img
           
 java.lang.String label
           
 java.lang.String name
           
 int page
           
 boolean selectable
           
 
Constructor Summary
ClientSideTree.Item()
           
 
Method Summary
 void clearChildren()
           
 int compareTo(java.lang.Object o)
           
 ClientSideTree.Item findItemByPath(java.lang.String path)
          Finds Item by path.
 org.apache.commons.collections.map.ListOrderedMap getChildItems()
           
 java.util.List getItemPath(java.lang.String path)
          Finds Item by path.
 boolean hasChildren()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

page

public int page

collapsed

public boolean collapsed

expandable

public boolean expandable

selectable

public boolean selectable

id

public java.lang.String id

name

public java.lang.String name

label

public java.lang.String label

img

public java.lang.String img

childItems

public org.apache.commons.collections.map.ListOrderedMap childItems
Constructor Detail

ClientSideTree.Item

public ClientSideTree.Item()
Method Detail

hasChildren

public boolean hasChildren()

getChildItems

public org.apache.commons.collections.map.ListOrderedMap getChildItems()

findItemByPath

public ClientSideTree.Item findItemByPath(java.lang.String path)
Finds Item by path. Path should be in this format: child1/child2/child3. child1-3 are IDs of individual Item object. This method is prefered to findItemById() because the performance depends only on the length of the path and not on the size of the tree.

Parameters:
path -
Returns:
Item object

getItemPath

public java.util.List getItemPath(java.lang.String path)
Finds Item by path. Path should be in this format: child1/child2/child3. child1-3 are IDs of individual Item object. This method is prefered to findItemById() because the performance depends only on the length of the path and not on the size of the tree.

Parameters:
path -
Returns:
Item object

clearChildren

public void clearChildren()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.