com.camunda.toolkit.jbpm.swing
Class VariablesTreeModel
java.lang.Object
com.camunda.commons.swing.ObservedTreeModel
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 |
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) |
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 |
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)
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.