com.camunda.toolkit.jbpm.swing
Class VariablesTreeModel

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

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


Nested Class Summary
 class VariablesTreeModel.Variable
          copied from http://www.java2s.com/Code/Java/Language-Basics/ObjectInspector.htm TODO: add support for Collections
 
Field Summary
 
Fields inherited from class com.camunda.commons.swing.ObservedTreeModel
listenerList
 
Constructor Summary
VariablesTreeModel()
          Cosntruct empty tree model TODO remove and use correct ProcessModel everywhere, then we can use this also for new processes
VariablesTreeModel(org.jbpm.graph.exe.ProcessInstance pi)
           
VariablesTreeModel(ProcessModel model)
          constructs a VariablesTreeModel which listens for changes of the ProcessModel (for example reloading the process)
 
Method Summary
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object node)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object 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

VariablesTreeModel

public VariablesTreeModel()
Cosntruct empty tree model TODO remove and use correct ProcessModel everywhere, then we can use this also for new processes


VariablesTreeModel

public VariablesTreeModel(ProcessModel model)
constructs a VariablesTreeModel which listens for changes of the ProcessModel (for example reloading the process)

Parameters:
model - ProcessModel

VariablesTreeModel

public VariablesTreeModel(org.jbpm.graph.exe.ProcessInstance pi)
Method Detail

getRoot

public java.lang.Object getRoot()

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)

getChildCount

public int getChildCount(java.lang.Object parent)

isLeaf

public boolean isLeaf(java.lang.Object node)

valueForPathChanged

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

getIndexOfChild

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


Copyright © 2007 camunda GmbH. All Rights Reserved.