org.eidola.test
Class TreeTest2
java.lang.Object
|
+--org.eidola.test.TreeTest2
- All Implemented Interfaces:
- TreeModel
- public class TreeTest2
- extends Object
- implements TreeModel
- Version:
- [Development version]
- Author:
- Paul Cantrell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeTest2
public TreeTest2(Container root)
main
public static void main(String[] args)
throws Exception
addTreeModelListener
public void addTreeModelListener(TreeModelListener l)
- Specified by:
addTreeModelListener
in interface TreeModel
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)
- Specified by:
removeTreeModelListener
in interface TreeModel
getChild
public Object getChild(Object parent,
int index)
- Specified by:
getChild
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 Object getRoot()
- Specified by:
getRoot
in interface TreeModel
isLeaf
public boolean isLeaf(Object node)
- Specified by:
isLeaf
in interface TreeModel
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- Specified by:
valueForPathChanged
in interface TreeModel