com.camunda.toolkit.jbpm.swing.admin
Class ProcessInstanceTreeModel

java.lang.Object
  extended by com.camunda.commons.swing.ObservedTreeModel
      extended by com.camunda.toolkit.jbpm.swing.admin.ProcessInstanceTreeModel
All Implemented Interfaces:
javax.swing.tree.TreeModel

public class ProcessInstanceTreeModel
extends com.camunda.commons.swing.ObservedTreeModel

TreeModel for displaying a ProcessInstance, with all Tokens and TaskInstances sub-processes are NOT included in the tree at the moment, but that would be a nice feature for the future


Field Summary
 
Fields inherited from class com.camunda.commons.swing.ObservedTreeModel
listenerList
 
Constructor Summary
ProcessInstanceTreeModel(ProcessModel pm)
           
 
Method Summary
 java.lang.Object getChild(java.lang.Object parent, int index)
          Returns the child of parent at index index in the parent's child array.
 int getChildCount(java.lang.Object parent)
          Returns the number of children of parent.
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
          Returns the index of child in parent.
 java.lang.Object getRoot()
          Returns the root of the tree.
 boolean isLeaf(java.lang.Object node)
          Returns true if node is a leaf.
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
          Messaged when the user has altered the value for the item identified by path to newValue.
 
Methods inherited from class com.camunda.commons.swing.ObservedTreeModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getListeners, getTreeModelListeners, removeTreeModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessInstanceTreeModel

public ProcessInstanceTreeModel(ProcessModel pm)
Method Detail

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Returns the child of parent at index index in the parent's child array.


getChildCount

public int getChildCount(java.lang.Object parent)
Returns the number of children of parent.


getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Returns the index of child in parent.


getRoot

public java.lang.Object getRoot()
Returns the root of the tree.


isLeaf

public boolean isLeaf(java.lang.Object node)
Returns true if node is a leaf.


valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue. Not used by this model.



Copyright © 2007 camunda GmbH. All Rights Reserved.