|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.ui.PerspectiveSupport
org.argouml.ui.TreeModelSupport
org.argouml.ui.TreeModelComposite
This class is the TreeModel for the navigator and todo list panels.
It is called Composite because there are a set of rules that determine how to link parents to children in the tree. Those rules can now be found in PerspectiveSupport.
| Field Summary | |
private static Logger |
LOG
|
private Object |
root
The root of the model. |
| Fields inherited from class org.argouml.ui.TreeModelSupport |
|
| Fields inherited from class org.argouml.ui.PerspectiveSupport |
|
| Constructor Summary | |
TreeModelComposite(String name)
The constructor. |
|
| Method Summary | |
Object |
getChild(Object parent,
int index)
Finds the each of the children of a parent in the tree. |
int |
getChildCount(Object parent)
|
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
Getter for the root of the model. |
boolean |
isLeaf(Object node)
Returns true if node is a leaf. |
void |
setRoot(Object r)
|
void |
valueForPathChanged(TreePath path,
Object newValue)
Empty implementation - not used. |
| Methods inherited from class org.argouml.ui.TreeModelSupport |
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, fireTreeStructureChanged, fireTreeStructureChanged, fireTreeStructureChanged, fireTreeStructureChanged, removeTreeModelListener |
| Methods inherited from class org.argouml.ui.PerspectiveSupport |
addSubTreeModel, getGoRules, getName, getSubTreeModels, registerRule, removeSubTreeModel, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, removeTreeModelListener |
| Field Detail |
private static final Logger LOG
private Object root
| Constructor Detail |
public TreeModelComposite(String name)
name - the name that will be localized| Method Detail |
public Object getRoot()
getRoot in interface TreeModelTreeModel.getRoot()
public Object getChild(Object parent,
int index)
getChild in interface TreeModelparent - in the treeindex - of child to find
public int getChildCount(Object parent)
getChildCount in interface TreeModelTreeModel.getChildCount(java.lang.Object)
public int getIndexOfChild(Object parent,
Object child)
getIndexOfChild in interface TreeModelTreeModel.getIndexOfChild(java.lang.Object,
java.lang.Object)public boolean isLeaf(Object node)
If none of the subTreeModels is not a leaf, then we are not a leaf.
isLeaf in interface TreeModelnode - a node in the tree, obtained from this data source
public void valueForPathChanged(TreePath path,
Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue. If newValue signifies a truly new value the model should post a treeNodesChanged event.
valueForPathChanged in interface TreeModelpath - path to the node that the user has altered.newValue - the new value from the TreeCellEditor.public void setRoot(Object r)
r - the root of the model
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |