public class StepTree extends DefaultTreeModel
asksAllowsChildren, listenerList, root| Constructor and Description |
|---|
StepTree()
Constructor with an empty root
|
StepTree(Step root)
Constructor with a given root
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Step child)
Add a new child step node to current step node
|
void |
addPropertyChangeListener(PropertyChangeListener arg0) |
boolean |
changeIndex(int newValue)
Change the current result index inside the current step node, acts as proxy to Step
|
void |
firePropertyChange(String arg0,
int arg1,
int arg2) |
String[] |
getAvailableOperations()
Get the available operations for the current step node.
|
int |
getIndex()
return teh current selected step index;
|
String |
getInitSchemaName() |
String |
getStateSchemaName() |
Step |
getStep() |
boolean |
hasNext()
Whether this step has a child step node
|
boolean |
hasPrevious()
Whether this step have a parent step node
|
boolean |
isComplete() |
boolean |
moveTo(String operation)
Move to a specified child step node
|
void |
reset()
Reset the root step node
|
void |
setInitSchemaName(String initSchemaName) |
void |
setStateSchemaName(String stateSchemaName) |
void |
setStep(Step step) |
int |
size()
return the current selected step size
|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChangedpublic StepTree()
public StepTree(Step root)
root - public void add(Step child)
step - public boolean moveTo(String operation)
public boolean changeIndex(int newValue)
index - The index to set.public String[] getAvailableOperations()
public boolean hasPrevious()
public boolean hasNext()
public void reset()
public int getIndex()
public int size()
public boolean isComplete()
public String getStateSchemaName()
public void setStateSchemaName(String stateSchemaName)
stateSchemaName - The stateSchemaName to set.public String getInitSchemaName()
public void setInitSchemaName(String initSchemaName)
initSchemaName - The initSchemaName to set.public Step getStep()
public void setStep(Step step)
currentStep - The currentStep to set.public void addPropertyChangeListener(PropertyChangeListener arg0)
public void firePropertyChange(String arg0, int arg1, int arg2)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.