public class NewRuleAction extends AbstractTreeAction
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 |
|---|
NewRuleAction(IDecisionMethod tree) |
NewRuleAction(IDecisionMethod tree,
String name) |
NewRuleAction(IDecisionMethod tree,
String name,
Icon icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(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) |
getParentFrame, getTree, setTreeaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic NewRuleAction(IDecisionMethod tree)
tree - public NewRuleAction(IDecisionMethod tree, String name)
tree - name - public NewRuleAction(IDecisionMethod tree, String name, Icon icon)
tree - name - icon - public void actionPerformed(ActionEvent e)
public static DecisionNode updateNode(IDecisionMethod tree, DecisionNode node)
public static IDecisionMethod treeFromRule(IDecisionRule rule) throws DecisionMethodException
DecisionMethodExceptionpublic static DecisionMethodsList forestFromTree(IDecisionMethod tree) throws DecisionMethodException
tree - DecisionMethodExceptionCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.