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

Deprecated. since 0.15.2 replace with ExplorerPerspective, remove in 0.15.3

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)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.argouml.ui.TreeModelComposite
_root
 
Fields inherited from class org.argouml.ui.TreeModelSupport
_listenerList
 
Fields inherited from class org.argouml.ui.PerspectiveSupport
_goRules, _name, _rules
 
Constructor Summary
NavPerspective(java.lang.String name)
          Deprecated. needs documenting
 
Method Summary
 java.lang.Object clone()
          Deprecated. required for the nav config dialog
private  int getHelperIndex(AbstractGoRule rule, java.lang.Object parent, java.lang.Object child)
          Deprecated. I think this only gets called during argo initialisation
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
          Deprecated. Will return the first found child object in the navtree.
 
Methods inherited from class org.argouml.ui.TreeModelComposite
getChild, getChildCount, getRoot, isLeaf, setRoot, valueForPathChanged
 
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, getName, getRegisteredRules, getSubTreeModels, registerRule, removeSubTreeModel, setName, toString
 
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
 

Constructor Detail

NavPerspective

public NavPerspective(java.lang.String name)
Deprecated. 
needs documenting

Method Detail

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Deprecated. 
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)

getHelperIndex

private int getHelperIndex(AbstractGoRule rule,
                           java.lang.Object parent,
                           java.lang.Object child)
Deprecated. 
I think this only gets called during argo initialisation


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Deprecated. 
required for the nav config dialog

Overrides:
clone in class java.lang.Object
java.lang.CloneNotSupportedException


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook