org.argouml.cognitive.ui
Class GoListToDecisionsToItems

java.lang.Object
  extended byorg.argouml.cognitive.ui.AbstractGoList
      extended byorg.argouml.cognitive.ui.GoListToDecisionsToItems
All Implemented Interfaces:
TreeModel

public class GoListToDecisionsToItems
extends AbstractGoList

Rule for sorting the ToDo list: Decision -> Item.


Field Summary
 
Fields inherited from class org.argouml.cognitive.ui.AbstractGoList
 
Constructor Summary
GoListToDecisionsToItems()
           
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
           
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
private  int getChildCountCond(Object parent, boolean stopafterone)
           
 Vector getDecisions()
           
 int getIndexOfChild(Object parent, Object child)
           
private  boolean hasChildren(Object parent)
           
 boolean isLeaf(Object node)
           
 void removeTreeModelListener(TreeModelListener l)
           
 void valueForPathChanged(TreePath path, Object newValue)
           
 
Methods inherited from class org.argouml.cognitive.ui.AbstractGoList
getListPredicate, getRoot, setListPredicate, setRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoListToDecisionsToItems

public GoListToDecisionsToItems()
Method Detail

getChild

public Object getChild(Object parent,
                       int index)
See Also:
TreeModel.getChild(java.lang.Object, int)

getChildCountCond

private int getChildCountCond(Object parent,
                              boolean stopafterone)

getChildCount

public int getChildCount(Object parent)
See Also:
TreeModel.getChildCount(java.lang.Object)

hasChildren

private boolean hasChildren(Object parent)
Parameters:
parent - the object to check its offspring
Returns:
the nr of children

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
See Also:
TreeModel.getIndexOfChild(java.lang.Object, java.lang.Object)

isLeaf

public boolean isLeaf(Object node)
See Also:
TreeModel.isLeaf(java.lang.Object)

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
See Also:
TreeModel.valueForPathChanged( javax.swing.tree.TreePath, java.lang.Object)

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
See Also:
TreeModel.addTreeModelListener(javax.swing.event.TreeModelListener)

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
See Also:
TreeModel.removeTreeModelListener(javax.swing.event.TreeModelListener)

getDecisions

public Vector getDecisions()
Returns:
the decisions


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