org.argouml.cognitive.ui
Class ToDoPerspective

java.lang.Object
  |
  +--org.argouml.ui.PerspectiveSupport
        |
        +--org.argouml.ui.TreeModelSupport
              |
              +--org.argouml.ui.TreeModelComposite
                    |
                    +--org.argouml.cognitive.ui.ToDoPerspective
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel
Direct Known Subclasses:
ToDoByDecision, ToDoByGoal, ToDoByOffender, ToDoByPoster, ToDoByPriority, ToDoByType

public abstract class ToDoPerspective
extends TreeModelComposite
implements java.io.Serializable

 This class represents:
   - a todo tree model / perspective (which is a collection of GoRules)
$Id: ToDoPerspective.java,v 1.8 2003/09/04 20:11:48 thierrylach Exp $

See Also:
Serialized Form

Field Summary
protected  boolean _flat
          todoList specific
protected  java.util.Vector _flatChildren
          todoList specific
private static Logger cat
           
 
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
ToDoPerspective(java.lang.String name)
           
 
Method Summary
 void addFlatChildren(java.lang.Object node)
          todoList specific
 void calcFlatChildren()
          todoList specific
 java.lang.Object getChild(java.lang.Object parent, int index)
          Finds the each of the children of a parent in the tree.
 int getChildCount(java.lang.Object parent)
          needs documenting
 boolean getFlat()
          todoList specific
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
          needs documenting
 void setFlat(boolean b)
          todoList specific
 
Methods inherited from class org.argouml.ui.TreeModelComposite
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, removeTreeModelListener
 

Field Detail

cat

private static Logger cat

_flat

protected boolean _flat
todoList specific


_flatChildren

protected java.util.Vector _flatChildren
todoList specific

Constructor Detail

ToDoPerspective

public ToDoPerspective(java.lang.String name)
Method Detail

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Finds the each of the children of a parent in the tree.

Specified by:
getChild in interface javax.swing.tree.TreeModel
Overrides:
getChild in class TreeModelComposite
Parameters:
parent - in the tree
index - of child to find
Returns:
the child found at index. Null if index is out of bounds.

getChildCount

public int getChildCount(java.lang.Object parent)
needs documenting

Specified by:
getChildCount in interface javax.swing.tree.TreeModel
Overrides:
getChildCount in class TreeModelComposite

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
needs documenting

Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
Overrides:
getIndexOfChild in class TreeModelComposite

setFlat

public void setFlat(boolean b)
todoList specific


getFlat

public boolean getFlat()
todoList specific


calcFlatChildren

public void calcFlatChildren()
todoList specific


addFlatChildren

public void addFlatChildren(java.lang.Object node)
todoList specific



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