public class PropositionTreeUtil extends Object
Constructor and Description |
---|
PropositionTreeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cancelNewProp(PropositionEditor proposition) |
static String |
configureLogicExpression(PropositionEditor proposition) |
static PropositionEditor |
createCompoundPropositionBoStub(PropositionEditor existing,
boolean addNewChild,
Class<? extends PropositionEditor> propClass) |
static PropositionEditor |
createCompoundPropositionBoStub(PropositionEditor existing,
Class<? extends PropositionEditor> propClass) |
static List<PropositionParameterEditor> |
createParameterList() |
static PropositionEditor |
createSimplePropositionBoStub(PropositionEditor sibling,
Class<? extends PropositionEditor> propClass)
This method creates a partially populated Simple PropositionBo with
three parameters: a term type paramter (value not assigned)
a operation parameter
a constant parameter (value set to empty string)
The returned PropositionBo has an generatedId.
|
static Node<RuleEditorTreeNode,String> |
findEditedProposition(Node<RuleEditorTreeNode,String> node)
Find and return the node containing the proposition that is in currently in edit mode
|
static Node<RuleEditorTreeNode,String> |
findParentPropositionNode(Node<RuleEditorTreeNode,String> currentNode,
String selectedPropKey) |
static PropositionEditor |
findProposition(Node<RuleEditorTreeNode,String> currentNode,
String selectedPropKey) |
static Node<RuleEditorTreeNode,String> |
findPropositionTreeNode(Node<RuleEditorTreeNode,String> currentNode,
String selectedPropId) |
static PropositionEditor |
getProposition(RuleEditor ruleEditor) |
static void |
resetEditModeOnPropositionTree(Node<RuleEditorTreeNode,String> currentNode)
disable edit mode for all Nodes beneath and including the passed in Node
|
static void |
resetEditModeOnPropositionTree(RuleEditor ruleEditor) |
static void |
resetNewProp(PropositionEditor proposition) |
static void |
setTypeForCompoundOpCode(PropositionEditor proposition,
String compoundOpCode) |
public PropositionTreeUtil()
public static void setTypeForCompoundOpCode(PropositionEditor proposition, String compoundOpCode)
public static Node<RuleEditorTreeNode,String> findParentPropositionNode(Node<RuleEditorTreeNode,String> currentNode, String selectedPropKey)
public static PropositionEditor getProposition(RuleEditor ruleEditor)
PropositionBo
from the formpublic static PropositionEditor findProposition(Node<RuleEditorTreeNode,String> currentNode, String selectedPropKey)
public static Node<RuleEditorTreeNode,String> findEditedProposition(Node<RuleEditorTreeNode,String> node)
node
- the node to start searching from (typically the root)public static void resetEditModeOnPropositionTree(RuleEditor ruleEditor)
public static void resetEditModeOnPropositionTree(Node<RuleEditorTreeNode,String> currentNode)
currentNode
- public static Node<RuleEditorTreeNode,String> findPropositionTreeNode(Node<RuleEditorTreeNode,String> currentNode, String selectedPropId)
public static String configureLogicExpression(PropositionEditor proposition)
public static PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling, Class<? extends PropositionEditor> propClass) throws IllegalAccessException, InstantiationException
sibling
- -IllegalAccessException
InstantiationException
public static List<PropositionParameterEditor> createParameterList()
public static PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild, Class<? extends PropositionEditor> propClass) throws InstantiationException, IllegalAccessException
public static PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, Class<? extends PropositionEditor> propClass) throws IllegalAccessException, InstantiationException
public static void cancelNewProp(PropositionEditor proposition)
public static void resetNewProp(PropositionEditor proposition)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.