public class RootDirectoryTreeModel extends Object implements TreeModel
This model will also drill down into TTree's, showing the branch and leaf structure inside.
Constructor and Description |
---|
RootDirectoryTreeModel(TDirectory topDir)
Create the tree model
|
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener p1) |
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
boolean |
isLeaf(Object parent) |
void |
removeTreeModelListener(TreeModelListener p1) |
void |
valueForPathChanged(TreePath p1,
Object p2) |
public RootDirectoryTreeModel(TDirectory topDir)
topDir
- The TDirectory that is to appear as the "root" of the treepublic int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener p1)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener p1)
removeTreeModelListener
in interface TreeModel
public void valueForPathChanged(TreePath p1, Object p2)
valueForPathChanged
in interface TreeModel
Jas4pp 1.5 © Java Analysis Studio for Particle Physics