org.argouml.ui
Class NavPerspective
java.lang.Object
org.argouml.ui.PerspectiveSupport
org.argouml.ui.TreeModelSupport
org.argouml.ui.TreeModelComposite
org.argouml.ui.NavPerspective
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable, javax.swing.tree.TreeModel
- public class NavPerspective
- extends TreeModelComposite
- implements java.io.Serializable, java.lang.Cloneable
This class represents 3 concepts, although it should only represent
a navigation perspective, TODO: separate.
This class represents:
- a navigation tree model / perspective (which is a collection of GoRules)
16 Apr 2002: Jeremy Bennett (mail@jeremybennett.com). Extended to support
the display of extends/includes and extension points in the package centric
view.
$Id: NavPerspective.java,v 1.31 2003/06/30 18:00:23 linus Exp $
- See Also:
- Serialized Form
Constructor Summary |
NavPerspective(java.lang.String name)
needs documenting |
Method Summary |
java.lang.Object |
clone()
required for the nav config dialog |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Will return the first found child object in the navtree. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, removeTreeModelListener |
NavPerspective
public NavPerspective(java.lang.String name)
- needs documenting
getIndexOfChild
public int getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
- Will return the first found child object in the navtree. The
child can be a TreeNode in case the super will be called to
handle this. In all other cases we try to handle it in a
recursive way.
TODO this does not work yet since the implementation of getChildren of
AbstractGoRule only takes one level into account.
- Specified by:
getIndexOfChild
in interface javax.swing.tree.TreeModel
- Overrides:
getIndexOfChild
in class TreeModelComposite
- See Also:
TreeModel.getIndexOfChild(java.lang.Object,
java.lang.Object)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- required for the nav config dialog
- Throws:
java.lang.CloneNotSupportedException