kiwi.ui.model
Class StaticTreeModel.TreeNode

java.lang.Object
  |
  +--kiwi.ui.model.StaticTreeModel.TreeNode

protected class StaticTreeModel.TreeNode
extends Object
implements ITreeNode, HierarchicalAssociationListener

Internal wrapper object for nodes.


Constructor Summary
StaticTreeModel.TreeNode(Object object, StaticTreeModel.TreeNode parent)
           
 
Method Summary
 void addChild(StaticTreeModel.TreeNode child)
           
 void addChildAt(StaticTreeModel.TreeNode child, int index)
           
 void collapseChildren()
           
 void detach()
           
 void dropChildren()
           
 int getChildCount()
           
 ITreeNode[] getChildren()
           
 Object getObject()
           
 ITreeNode getParent()
           
 boolean hasChildrenLoaded()
           
 boolean isExpandable()
           
 boolean isExpanded()
           
 boolean isRoot()
           
 void nodeAdded(HierarchicalAssociationEvent evt)
           
 void nodeChanged(HierarchicalAssociationEvent evt)
           
 void nodeRemoved(HierarchicalAssociationEvent evt)
           
 void nodeStructureChanged(HierarchicalAssociationEvent evt)
           
 void removeChild(StaticTreeModel.TreeNode child)
           
 StaticTreeModel.TreeNode removeChildAt(int index)
           
 void setChildrenLoaded(boolean flag)
           
 void setExpandable(boolean flag)
           
 void setExpanded(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticTreeModel.TreeNode

public StaticTreeModel.TreeNode(Object object,
                                StaticTreeModel.TreeNode parent)
Method Detail

collapseChildren

public void collapseChildren()

addChild

public void addChild(StaticTreeModel.TreeNode child)

addChildAt

public void addChildAt(StaticTreeModel.TreeNode child,
                       int index)

removeChild

public void removeChild(StaticTreeModel.TreeNode child)

removeChildAt

public StaticTreeModel.TreeNode removeChildAt(int index)

hasChildrenLoaded

public boolean hasChildrenLoaded()

dropChildren

public void dropChildren()

setChildrenLoaded

public void setChildrenLoaded(boolean flag)

isRoot

public boolean isRoot()
Specified by:
isRoot in interface ITreeNode

getObject

public Object getObject()
Specified by:
getObject in interface ITreeNode

setExpanded

public void setExpanded(boolean flag)

setExpandable

public void setExpandable(boolean flag)

isExpanded

public boolean isExpanded()
Specified by:
isExpanded in interface ITreeNode

isExpandable

public boolean isExpandable()
Specified by:
isExpandable in interface ITreeNode

getParent

public ITreeNode getParent()
Specified by:
getParent in interface ITreeNode

getChildCount

public int getChildCount()

getChildren

public ITreeNode[] getChildren()

detach

public void detach()

nodeAdded

public void nodeAdded(HierarchicalAssociationEvent evt)
Specified by:
nodeAdded in interface HierarchicalAssociationListener

nodeRemoved

public void nodeRemoved(HierarchicalAssociationEvent evt)
Specified by:
nodeRemoved in interface HierarchicalAssociationListener

nodeChanged

public void nodeChanged(HierarchicalAssociationEvent evt)
Specified by:
nodeChanged in interface HierarchicalAssociationListener

nodeStructureChanged

public void nodeStructureChanged(HierarchicalAssociationEvent evt)
Specified by:
nodeStructureChanged in interface HierarchicalAssociationListener