org.argouml.cognitive.ui
Class ToDoPerspective

java.lang.Object
  extended byorg.argouml.ui.PerspectiveSupport
      extended byorg.argouml.ui.TreeModelSupport
          extended byorg.argouml.ui.TreeModelComposite
              extended byorg.argouml.cognitive.ui.ToDoPerspective
All Implemented Interfaces:
Serializable, TreeModel
Direct Known Subclasses:
ToDoByDecision, ToDoByGoal, ToDoByOffender, ToDoByPoster, ToDoByPriority, ToDoByType

public abstract class ToDoPerspective
extends TreeModelComposite
implements Serializable

 This class represents:
   - a todo tree model / perspective (which is a collection of GoRules)
$Id: ToDoPerspective.java,v 1.10 2005/01/09 14:58:05 linus Exp $

See Also:
Serialized Form

Field Summary
private  boolean flat
          todoList specific
private  Vector flatChildren
          todoList specific
private static Logger LOG
           
 
Fields inherited from class org.argouml.ui.TreeModelComposite
 
Fields inherited from class org.argouml.ui.TreeModelSupport
 
Fields inherited from class org.argouml.ui.PerspectiveSupport
 
Constructor Summary
ToDoPerspective(String name)
          The constructor.
 
Method Summary
 void addFlatChildren(Object node)
          TodoList specific.
 void calcFlatChildren()
          TodoList specific.
 Object getChild(Object parent, int index)
          Finds the each of the children of a parent in the tree.
 int getChildCount(Object parent)
           
 boolean getFlat()
          todoList specific
 int getIndexOfChild(Object parent, 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, 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

LOG

private static final Logger LOG

flat

private boolean flat
todoList specific


flatChildren

private Vector flatChildren
todoList specific

Constructor Detail

ToDoPerspective

public ToDoPerspective(String name)
The constructor.

Parameters:
name - the name that will be localized
Method Detail

getChild

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

Specified by:
getChild in interface 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(Object parent)
Specified by:
getChildCount in interface TreeModel
Overrides:
getChildCount in class TreeModelComposite
See Also:
TreeModel.getChildCount(java.lang.Object)

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Specified by:
getIndexOfChild in interface TreeModel
Overrides:
getIndexOfChild in class TreeModelComposite
See Also:
TreeModel.getIndexOfChild(java.lang.Object, java.lang.Object)

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(Object node)
TodoList specific.

Parameters:
node - the object to be added


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