toxtree.ui.tree.actions
Class SetBranchAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by toxtree.ui.tree.actions.AbstractTreeAction
          extended by 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

Field Summary
protected  int answer
           
protected  java.lang.String[] answerText
           
protected  javax.swing.ActionMap categoryActions
           
protected  DecisionNode node
           
protected  javax.swing.ActionMap ruleActions
           
 
Fields inherited from class toxtree.ui.tree.actions.AbstractTreeAction
PARENTKEY, tree
 
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
 
Constructor Summary
SetBranchAction(IDecisionMethod tree, boolean answer)
           
SetBranchAction(IDecisionMethod tree, boolean answer, java.lang.String name)
           
SetBranchAction(IDecisionMethod tree, boolean answer, java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 int getAnswer()
           
 DecisionNode getDecisionNode()
           
 void setDecisionNode(DecisionNode node)
           
 
Methods inherited from class toxtree.ui.tree.actions.AbstractTreeAction
getParentFrame, getTree, setTree
 
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
 

Field Detail

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
Constructor Detail

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 -
Method Detail

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.