Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

thales.vergil.navigable
Class NavigationTreeModel

java.lang.Object
 extended byptolemy.vergil.tree.EntityTreeModel
 extended byptolemy.vergil.tree.ClassAndEntityTreeModel
 extended bythales.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,v 1.25 2005年07月08日 20:00:00 cxh Exp $
Author:
Jérôme Blanc & Benoit Masson * 01 sept. 2003
Accepted Rating:
@AcceptedRating
Proposed Rating:
@ProposedRating Yellow (jerome.blanc)

Nested Class Summary
Nested classes inherited from class ptolemy.vergil.tree.EntityTreeModel
EntityTreeModel.TreeUpdateListener
Field Summary
Fields inherited from class ptolemy.vergil.tree.EntityTreeModel
_root
Constructor Summary
NavigationTreeModel(NamedObj root)
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 ptolemy.vergil.tree.ClassAndEntityTreeModel
_classes, getChild, getChildCount, getIndexOfChild
Methods inherited from class ptolemy.vergil.tree.EntityTreeModel
addTreeModelListener, getRoot, removeTreeModelListener, setRoot, valueForPathChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

NavigationTreeModel

public NavigationTreeModel(NamedObj root)
Method Detail

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 -

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /