thales.vergil.navigable
Class NavigationTreeModel
java.lang.Object
ptolemy.vergil.tree.EntityTreeModel
ptolemy.vergil.tree.ClassAndEntityTreeModel
thales.vergil.navigable.NavigationTreeModel
- All Implemented Interfaces:
- javax.swing.tree.TreeModel
public class NavigationTreeModel
- extends ClassAndEntityTreeModel
Titre : NavigationTreeModel
Description : used to represent all the entities of a MoML file
Société : Thales Research and technology
- Since:
- Ptolemy II 4.0
- Version:
- $Id: NavigationTreeModel.java 38798 2005-07-08 20:00:01Z cxh $
- Author:
- Jérôme Blanc & Benoit Masson * 01 sept. 2003
- Accepted Rating:
- Proposed Rating:
@ProposedRating Yellow (jerome.blanc) |
Field Summary |
private java.util.List |
listeners
|
Method Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
private java.util.List listeners
NavigationTreeModel
public NavigationTreeModel(NamedObj root)
isLeaf
public boolean isLeaf(java.lang.Object object)
- Return true if the object is a leaf node. In this base class,
an object is a leaf node if it is not an instance of CompositeEntity.
ATTENTION il se peut qu'il faille ne plus faire se test lors de
l'utilisation de bibliothèque.
- Specified by:
isLeaf
in interface javax.swing.tree.TreeModel
- Overrides:
isLeaf
in class ClassAndEntityTreeModel
- Parameters:
object
- The object.
- Returns:
- True if the node has no children.
register
public void register(NavigationPTree tree)
- Register a listener
- Parameters:
tree
-
unRegister
public boolean unRegister(NavigationPTree tree)
- remove a listener
- Parameters:
tree
-
- Returns:
- True if the tree was in the listeners, otherwise return false.
setSelectedItem
public void setSelectedItem(javax.swing.tree.TreePath path)
- set all listening PTree to the same path
- Parameters:
path
-
expandPath
public void expandPath(javax.swing.tree.TreePath aPath,
boolean collapse)
- expand/collapse all the NavigationTree
- Parameters:
aPath
-