Class NoExpressionActionCreator

java.lang.Object
com.inductiveautomation.ignition.designer.gui.expression.action.NoExpressionActionCreator
All Implemented Interfaces:
ExpressionActionCreator

public final class NoExpressionActionCreator extends Object implements ExpressionActionCreator
Provides a "No Expression" action that clears expression content.

For ExpressionEditor, calls setExpression(null). For other text components, calls setText("").

  • Constructor Details

    • NoExpressionActionCreator

      public NoExpressionActionCreator()
  • Method Details

    • createAction

      public Action createAction(JComponent owner, TextlikeComponent component)
      Description copied from interface: ExpressionActionCreator
      Creates an action that will appear as a trailing IconButton in ExpressionTextField components.
      Specified by:
      createAction in interface ExpressionActionCreator
      Parameters:
      owner - the component used to position popups triggered by the trailing IconButton
      component - the ExpressionTextField component where the trailing IconButton will appear
      Returns:
      an action that will appear as a trailing IconButton in the ExpressionTextField
    • createAction

      public Action createAction(ExpressionEditor editor)
      Description copied from interface: ExpressionActionCreator
      Creates an action for the ExpressionEditor's toolbar.
      Specified by:
      createAction in interface ExpressionActionCreator
      Parameters:
      editor - the ExpressionEditor that will use this action.
      Returns:
      an action to be added to the ExpressionEditor's toolbar