com.filenet.wcm.apps.server.ui.tree

Class ClientSideTree.Item

  1. java.lang.Object
  2. 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

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

Field Summary

Modifier and Type Field and Description
  1. org.apache.commons.collections.map.ListOrderedMap
childItems
  1. boolean
collapsed
  1. boolean
expandable
  1. java.lang.String
id
  1. java.lang.String
img
  1. java.lang.String
label
  1. java.lang.String
name
  1. int
page
  1. boolean
selectable

Constructor Summary

Constructor and Description
ClientSideTree.Item()

Method Summary

Modifier and Type Method and Description
  1. void
clearChildren()
  1. int
compareTo(java.lang.Object o)
  1. ClientSideTree.Item
findItemByPath(java.lang.String path)
Finds Item by path.
  1. org.apache.commons.collections.map.ListOrderedMap
getChildItems()
  1. java.util.List
getItemPath(java.lang.String path)
Finds Item by path.
  1. boolean
hasChildren()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

page

  1. public int page

collapsed

  1. public boolean collapsed

expandable

  1. public boolean expandable

selectable

  1. public boolean selectable

id

  1. public java.lang.String id

name

  1. public java.lang.String name

label

  1. public java.lang.String label

img

  1. public java.lang.String img

childItems

  1. public org.apache.commons.collections.map.ListOrderedMap childItems

Constructor Detail

ClientSideTree.Item

  1. public ClientSideTree.Item()

Method Detail

hasChildren

  1. public boolean hasChildren()

getChildItems

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

findItemByPath

  1. 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

  1. 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

  1. public void clearChildren()

compareTo

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