public class WorkflowOutlineTreeModel extends ClassAndEntityTreeModel
EntityTreeModel.TreeUpdateListener
Modifier and Type | Field and Description |
---|---|
boolean |
includeAttributes |
boolean |
includePorts |
boolean |
includeRelations |
_root
Constructor and Description |
---|
WorkflowOutlineTreeModel(CompositeEntity root) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.Object> |
_visibleAttributes(java.lang.Object object)
Return the list of Attributes that we want to be visible in the outline
view, or an empty list if there are none.
|
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Get the child of the given parent at the given index.
|
int |
getChildCount(java.lang.Object parent)
Return the number of children of the given parent.
|
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Return the index of the given child within the given parent.
|
boolean |
isLeaf(java.lang.Object object)
Return true if the object is a leaf node.
|
_classes
addTreeModelListener, getRoot, removeTreeModelListener, setRoot, valueForPathChanged
public boolean includeAttributes
public boolean includePorts
public boolean includeRelations
public WorkflowOutlineTreeModel(CompositeEntity root)
root
- public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
getChild
in class ClassAndEntityTreeModel
parent
- A node in the tree.index
- The index of the desired child.public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
getChildCount
in class ClassAndEntityTreeModel
parent
- A parent node.public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
getIndexOfChild
in class ClassAndEntityTreeModel
parent
- The parent.child
- The child.public boolean isLeaf(java.lang.Object object)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class ClassAndEntityTreeModel
object
- The object.protected java.util.List<java.lang.Object> _visibleAttributes(java.lang.Object object)
object
- The object.