Method Summary |
|
protected void | addActionClicked() Called when "new action" was clicked. |
protected void | addActionPanel(ActionPanel panel) |
protected void | addConditionClicked() Called when "new condition" is clicked. |
protected void | addConditionPanel(ConditionPanel panel) Adds a ConditionPanel to the ConditionDivision. |
protected void | addOperationPanel(XDivision operationsDivision, OperationPanel operationPanel, ActionListener removeButtonActionListener) Adds an OperationPanel to a XDivision. |
public void | applyChanges() Applies changes to the current Rule. |
protected void | changeEditingMode() Change editing mode, according to the current Rule. |
protected Rule | generateRuleFromPanel() From the whole visual state of the editor, it generates a new Rule instance. |
public int | getActionPanelCount() Gets the action panel count. |
public SidePanel | getAgentSidebarPanel() Gets the SidePanel. |
public int | getConditionPanelCount() Gets the condition panel count. |
public String | getCurrentUser() Gets the current user-id. |
public DesignContext | getDesignContext() Gets the design context. |
public STextField | getNameField() Gets the name field. |
public Rule | getRule() Gets the current Rule. |
public boolean | isDirty() Checks if the editor is "dirty". |
protected boolean | isEditable() Checks if this panel is editable. |
protected String | msg(String code, Object... args) |
protected void | populateRulePanel() Populates this panel with the basic UI components. |
public void | removeAllActionPanels() Removes all action panels. |
public void | removeAllConditionPanels() Removes all condition panels. |
public void | revertChanges() Reverts the changes made in the UI, making it show the original (unmodified) Rule. |
public void | setAgentSidebarPanel(SidePanel sidePanel) Sets the SidePanel. |
public void | setCurrentUser(String currentUser) Sets the current user-id. |
public void | setDesignContext(DesignContext designContext) Sets the design context. |
public void | setEnabled(boolean enabled) Enables/disables all editable components in the editor. |
public void | setRule(Rule newRule) By setting the Rule, the editor re-configures itself for the given Rule. |