toxtree.ui.tree.actions
Class NewRuleAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by toxtree.ui.tree.actions.AbstractTreeAction
          extended by toxtree.ui.tree.actions.NewRuleAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ITreeAction

public class NewRuleAction
extends AbstractTreeAction

Shows a list of available rules and adds the selected one to the list of rules.

Author:
Nina Jeliazkova Modified 2005-10-9
See Also:
Serialized Form

Field Summary
 
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
NewRuleAction(IDecisionMethod tree)
           
NewRuleAction(IDecisionMethod tree, java.lang.String name)
           
NewRuleAction(IDecisionMethod tree, java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static DecisionMethodsList forestFromTree(IDecisionMethod tree)
          Creates forest of trees, each tree consists of a single rule.
static IDecisionMethod treeFromRule(IDecisionRule rule)
           
static DecisionNode updateNode(IDecisionMethod tree, 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
 

Constructor Detail

NewRuleAction

public NewRuleAction(IDecisionMethod tree)
Parameters:
tree -

NewRuleAction

public NewRuleAction(IDecisionMethod tree,
                     java.lang.String name)
Parameters:
tree -
name -

NewRuleAction

public NewRuleAction(IDecisionMethod tree,
                     java.lang.String name,
                     javax.swing.Icon icon)
Parameters:
tree -
name -
icon -
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

updateNode

public static DecisionNode updateNode(IDecisionMethod tree,
                                      DecisionNode node)

treeFromRule

public static IDecisionMethod treeFromRule(IDecisionRule rule)
                                    throws DecisionMethodException
Throws:
DecisionMethodException

forestFromTree

public static DecisionMethodsList forestFromTree(IDecisionMethod tree)
                                          throws DecisionMethodException
Creates forest of trees, each tree consists of a single rule.

Parameters:
tree -
Returns:
Throws:
DecisionMethodException


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.