public class NavigationTreeModel extends ClassAndEntityTreeModel
Titre : NavigationTreeModel
Description : used to represent all the entities of a MoML file
Société : Thales Research and technology
EntityTreeModel.TreeUpdateListener
_root
Constructor and Description |
---|
NavigationTreeModel(NamedObj root) |
Modifier and Type | Method and Description |
---|---|
void |
expandPath(javax.swing.tree.TreePath aPath,
boolean collapse)
expand/collapse all the NavigationTree
|
boolean |
isLeaf(java.lang.Object object)
Return true if the object is a leaf node.
|
void |
register(NavigationPTree tree)
Register a listener
|
void |
setSelectedItem(javax.swing.tree.TreePath path)
set all listening PTree to the same path
|
boolean |
unRegister(NavigationPTree tree)
remove a listener
|
_classes, getChild, getChildCount, getIndexOfChild
addTreeModelListener, getRoot, removeTreeModelListener, setRoot, valueForPathChanged
public NavigationTreeModel(NamedObj root)
public boolean isLeaf(java.lang.Object object)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class ClassAndEntityTreeModel
object
- The object.public void register(NavigationPTree tree)
tree
- public boolean unRegister(NavigationPTree tree)
tree
- public void setSelectedItem(javax.swing.tree.TreePath path)
path
- public void expandPath(javax.swing.tree.TreePath aPath, boolean collapse)
aPath
-