org.argouml.cognitive.ui
Class ToDoPerspective

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

public abstract class ToDoPerspective
extends TreeModelComposite

This class represents a todo tree model / perspective.

A todo tree model / perspective is a collection of GoRules.


Constructor Summary
ToDoPerspective(java.lang.String name)
          The constructor.
 
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)
           
 boolean getFlat()
          todoList specific.
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 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, removeTreeModelListener
 
Methods inherited from class org.argouml.ui.PerspectiveSupport
addSubTreeModel, getGoRuleList, getName, getSubTreeModelList, 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
 

Constructor Detail

ToDoPerspective

public ToDoPerspective(java.lang.String name)
The constructor.

Parameters:
name - the name that will be localized
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)
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)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
Overrides:
getIndexOfChild in class TreeModelComposite

setFlat

public void setFlat(boolean b)
todoList specific.

Parameters:
b - true if flat

getFlat

public boolean getFlat()
todoList specific.

Returns:
the flatness: true if flat

calcFlatChildren

public void calcFlatChildren()
TodoList specific.


addFlatChildren

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

Parameters:
node - the object to be added


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook