org.oddjob.arooa.design.designer
Class DesignTreeModel
java.lang.Object
org.oddjob.arooa.design.designer.DesignTreeModel
- All Implemented Interfaces:
- TreeModel
public class DesignTreeModel
- extends Object
- implements TreeModel
The Swing Tree Model of a Design.
The model allows the root component to be changed.
- See Also:
DesignTreeNode
- Author:
- Rob Gordon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesignTreeModel
public DesignTreeModel()
setRoot
public void setRoot(DesignComponent node)
- Set the root component.
- Parameters:
node
- The root component.
addTreeModelListener
public void addTreeModelListener(TreeModelListener tml)
- Specified by:
addTreeModelListener
in interface TreeModel
getChild
public DesignTreeNode getChild(Object parent,
int index)
- Specified by:
getChild
in interface TreeModel
isLeaf
public boolean isLeaf(Object node)
- Specified by:
isLeaf
in interface TreeModel
getChildCount
public int getChildCount(Object parent)
- Specified by:
getChildCount
in interface TreeModel
getIndexOfChild
public int getIndexOfChild(Object parent,
Object child)
- Specified by:
getIndexOfChild
in interface TreeModel
getRoot
public DesignTreeNode getRoot()
- Specified by:
getRoot
in interface TreeModel
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener tml)
- Specified by:
removeTreeModelListener
in interface TreeModel
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- Specified by:
valueForPathChanged
in interface TreeModel