toxtree.ui.tree.actions
Class SetBranchAction
java.lang.Object
javax.swing.AbstractAction
toxtree.ui.tree.actions.AbstractTreeAction
toxtree.ui.tree.actions.SetBranchAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, INodeAction, ITreeAction
public class SetBranchAction
- extends AbstractTreeAction
- implements INodeAction
Modify a tree node branch.
- Author:
- Nina Jeliazkova
Modified 2005-10-9
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
answer
protected int answer
answerText
protected java.lang.String[] answerText
node
protected DecisionNode node
ruleActions
protected javax.swing.ActionMap ruleActions
categoryActions
protected javax.swing.ActionMap categoryActions
SetBranchAction
public SetBranchAction(IDecisionMethod tree,
boolean answer)
- Parameters:
tree
-
SetBranchAction
public SetBranchAction(IDecisionMethod tree,
boolean answer,
java.lang.String name)
- Parameters:
tree
- name
-
SetBranchAction
public SetBranchAction(IDecisionMethod tree,
boolean answer,
java.lang.String name,
javax.swing.Icon icon)
- Parameters:
tree
- name
- icon
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
getDecisionNode
public DecisionNode getDecisionNode()
- Specified by:
getDecisionNode
in interface INodeAction
- Returns:
- Returns the node.
setDecisionNode
public void setDecisionNode(DecisionNode node)
- Specified by:
setDecisionNode
in interface INodeAction
- Parameters:
node
- The node to set.
getAnswer
public int getAnswer()
Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.