|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jzeno.echo.components.DefaultDynaTreeModel
public class DefaultDynaTreeModel
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 |
---|
public DefaultDynaTreeModel()
public DefaultDynaTreeModel(java.lang.String parentProperty, java.lang.String childrenProperty, java.lang.String labelProperty)
Method Detail |
---|
public java.util.List getChildren(java.lang.Object node)
DynaTreeModel
Retrieve the list of JavaBeans that are direct children of node
getChildren
in interface DynaTreeModel
public PropertyComponent getComponent(java.lang.Object node, boolean selected, boolean expanded, boolean leaf)
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.
getComponent
in interface DynaTreeModel
public java.lang.Object getParent(java.lang.Object node)
DynaTreeModel
Retrieve the parent of node.
getParent
in interface DynaTreeModel
public java.lang.Object getRoot()
public void setRoot(java.lang.Object root)
public boolean isLeaf(java.lang.Object node)
DynaTreeModel
Determine wether or not node is a leaf of the tree.
isLeaf
in interface DynaTreeModel
public java.lang.String getChildrenProperty()
public void setChildrenProperty(java.lang.String childrenProperty)
public java.lang.String getParentProperty()
public void setParentProperty(java.lang.String parentProperty)
public java.lang.String getLabelProperty()
public void setLabelProperty(java.lang.String labelProperty)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |