public class SetBranchAction extends AbstractTreeAction implements INodeAction
| Modifier and Type | Field and Description |
|---|---|
protected int |
answer |
protected String[] |
answerText |
protected ActionMap |
categoryActions |
protected DecisionNode |
node |
protected ActionMap |
ruleActions |
PARENTKEY, treechangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
SetBranchAction(IDecisionMethod tree,
boolean answer) |
SetBranchAction(IDecisionMethod tree,
boolean answer,
String name) |
SetBranchAction(IDecisionMethod tree,
boolean answer,
String name,
Icon icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
int |
getAnswer() |
DecisionNode |
getDecisionNode() |
void |
setDecisionNode(DecisionNode node) |
getParentFrame, getTree, setTreeaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected int answer
protected String[] answerText
protected DecisionNode node
protected ActionMap ruleActions
protected ActionMap categoryActions
public SetBranchAction(IDecisionMethod tree, boolean answer)
tree - public SetBranchAction(IDecisionMethod tree, boolean answer, String name)
tree - name - public SetBranchAction(IDecisionMethod tree, boolean answer, String name, Icon icon)
tree - name - icon - public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic DecisionNode getDecisionNode()
getDecisionNode in interface INodeActionpublic void setDecisionNode(DecisionNode node)
setDecisionNode in interface INodeActionnode - The node to set.public int getAnswer()
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.