Class ExpressionParamTable

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ExpressionParamTable extends SlidingPane
A SlidingPane which toggles between an AbstractCRUDTable of type ExpressionParam and a CodeEditor which is visible when an expression cell from the table is edited.
See Also:
  • Field Details

    • CHILD_EDITING_PROPERTY

      public static final String CHILD_EDITING_PROPERTY
      This property is for detecting if one of the children of this component which is able to handle the Designer's edit actions is "active" (whether that be "focused" or "selected" depends on the child). This provides one clean hook for the parent of this component to understand whether or not it should delegate its edit action handling to this component.
      See Also:
  • Constructor Details

  • Method Details

    • isChildEditing

      protected boolean isChildEditing()
      Whether or not a child of this table which can handle edit actions is currently in edit mode
      Returns:
      true if a child of this table which can handle edit actions is currently in edit mode, false otherwise
    • setChildEditing

      protected void setChildEditing(boolean childEditing)
      Setter for whether or not a child of this table which can handle edit actions is currently in edit mode. Fires the childEditing property change event which can be a useful hook for listeners to be aware when a child is editing (i.e. for delegating the Designer's edit actions)
      Parameters:
      childEditing - true if a child of this table which can handle edit actions is currently in edit mode, false otherwise
      See Also:
    • createChildActiveEditActionHandlerFocusAdapter

      protected com.inductiveautomation.sfc.designer.workspace.editors.ExpressionParamTable.ChildActiveEditActionHandlerFocusAdapter createChildActiveEditActionHandlerFocusAdapter(Component parent, DelegatingEditActionHandler delegator, EditActionHandler delegate)
      Internal factory method for creating new ExpressionParamTable.ChildActiveEditActionHandlerFocusAdapter instances injected with the given parent Component which owns the delegator, DelegatingEditActionHandler delegator used to delegate handling of the Designer's edit actions to EditActionHandlers of children of the given parent component, and EditActionHandler delegate which will be delegated the handling of the edit actions of the Designer when its component is focused
      Parameters:
      parent - The parent Component which owns the delegator
      delegator - The DelegatingEditActionHandler to inject
      delegate - The EditActionHandler to inject
      Returns:
      The new ExpressionParamTable.ChildActiveEditActionHandlerFocusAdapter instance
      See Also:
      • #createChildActiveEditActionHandlerFocusAdapter(EditActionHandler)
    • createCodeEditorEditActionHandler

      protected CodeEditorEditActionHandler createCodeEditorEditActionHandler(com.jidesoft.editor.CodeEditor codeEditor)
      Internal factory method for creating new CodeEditorEditActionHandlers injected with the given CodeEditor
      Parameters:
      codeEditor - The CodeEditor to inject
      Returns:
      The new CodeEditorEditActionHandler instance
    • setElement

      public void setElement(ChartUIElement element)
    • commit

      public void commit()
    • createDefaultCollection

      protected ExpressionParamCollection createDefaultCollection()
    • getEditActionHandler

      public EditActionHandler getEditActionHandler()
      Getter for the EditActionHandler for this table
      Returns:
      The EditActionHandler for this table