net.sf.jzeno.echo.components
Interface DynaTreeModel

All Known Implementing Classes:
DefaultDynaTreeModel, DynaTreeDemoPanel.DemoModel, MenuEditorScreen.MenuSpecTreeModel

public interface DynaTreeModel

This interface should be implemented to describe the data structure of a DynaTree.


Method Summary
 java.util.List getChildren(java.lang.Object node)
           Retrieve the list of JavaBeans that are direct children of node
 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.Object getParent(java.lang.Object node)
           Retrieve the parent of node.
 boolean isLeaf(java.lang.Object node)
           Determine wether or not node is a leaf of the tree.
 

Method Detail

getChildren

java.util.List getChildren(java.lang.Object node)

Retrieve the list of JavaBeans that are direct children of node


getParent

java.lang.Object getParent(java.lang.Object node)

Retrieve the parent of node.


isLeaf

boolean isLeaf(java.lang.Object node)

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


getComponent

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..). This component will be cached by dthe DynaTree for as long as the given node occurs in the component tree.