net.sf.jzeno.echo.components
Class DefaultDynaTreeModel

java.lang.Object
  extended by net.sf.jzeno.echo.components.DefaultDynaTreeModel
All Implemented Interfaces:
DynaTreeModel

public class DefaultDynaTreeModel
extends java.lang.Object
implements DynaTreeModel


Nested Class Summary
static class DefaultDynaTreeModel.NodeViewer
           
 
Constructor Summary
DefaultDynaTreeModel()
           
DefaultDynaTreeModel(java.lang.String parentProperty, java.lang.String childrenProperty, java.lang.String labelProperty)
           
 
Method Summary
 java.util.List getChildren(java.lang.Object node)
           Retrieve the list of JavaBeans that are direct children of node
 java.lang.String getChildrenProperty()
           
 PropertyComponent getComponent(java.lang.Object node, boolean selected, boolean expanded, boolean leaf)
           Create a PropertyComponent that is capable of visualizing the given node, and in the provided state (expanded, leaf, etc..).
 java.lang.String getLabelProperty()
           
 java.lang.Object getParent(java.lang.Object node)
           Retrieve the parent of node.
 java.lang.String getParentProperty()
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object node)
           Determine wether or not node is a leaf of the tree.
 void setChildrenProperty(java.lang.String childrenProperty)
           
 void setLabelProperty(java.lang.String labelProperty)
           
 void setParentProperty(java.lang.String parentProperty)
           
 void setRoot(java.lang.Object root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDynaTreeModel

public DefaultDynaTreeModel()

DefaultDynaTreeModel

public DefaultDynaTreeModel(java.lang.String parentProperty,
                            java.lang.String childrenProperty,
                            java.lang.String labelProperty)
Method Detail

getChildren

public java.util.List getChildren(java.lang.Object node)
Description copied from interface: DynaTreeModel

Retrieve the list of JavaBeans that are direct children of node

Specified by:
getChildren in interface DynaTreeModel

getComponent

public PropertyComponent getComponent(java.lang.Object node,
                                      boolean selected,
                                      boolean expanded,
                                      boolean leaf)
Description copied from interface: DynaTreeModel

Create a PropertyComponent that is capable of visualizing the given node, and in the provided state (expanded, leaf, etc..). This component will be cached by dthe DynaTree for as long as the given node occurs in the component tree.

Specified by:
getComponent in interface DynaTreeModel

getParent

public java.lang.Object getParent(java.lang.Object node)
Description copied from interface: DynaTreeModel

Retrieve the parent of node.

Specified by:
getParent in interface DynaTreeModel

getRoot

public java.lang.Object getRoot()

setRoot

public void setRoot(java.lang.Object root)

isLeaf

public boolean isLeaf(java.lang.Object node)
Description copied from interface: DynaTreeModel

Determine wether or not node is a leaf of the tree.

Specified by:
isLeaf in interface DynaTreeModel

getChildrenProperty

public java.lang.String getChildrenProperty()

setChildrenProperty

public void setChildrenProperty(java.lang.String childrenProperty)

getParentProperty

public java.lang.String getParentProperty()

setParentProperty

public void setParentProperty(java.lang.String parentProperty)

getLabelProperty

public java.lang.String getLabelProperty()

setLabelProperty

public void setLabelProperty(java.lang.String labelProperty)