Class NoExpressionActionCreator
java.lang.Object
com.inductiveautomation.ignition.designer.gui.expression.action.NoExpressionActionCreator
- All Implemented Interfaces:
ExpressionActionCreator
Provides a "No Expression" action that clears expression content.
For ExpressionEditor, calls setExpression(null).
For other text components, calls setText("").
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAction(ExpressionEditor editor) Creates an action for the ExpressionEditor's toolbar.createAction(JComponent owner, TextlikeComponent component) Creates an action that will appear as a trailing IconButton in ExpressionTextField components.
-
Constructor Details
-
NoExpressionActionCreator
public NoExpressionActionCreator()
-
-
Method Details
-
createAction
Description copied from interface:ExpressionActionCreatorCreates an action that will appear as a trailing IconButton in ExpressionTextField components.- Specified by:
createActionin interfaceExpressionActionCreator- Parameters:
owner- the component used to position popups triggered by the trailing IconButtoncomponent- the ExpressionTextField component where the trailing IconButton will appear- Returns:
- an action that will appear as a trailing IconButton in the ExpressionTextField
-
createAction
Description copied from interface:ExpressionActionCreatorCreates an action for the ExpressionEditor's toolbar.- Specified by:
createActionin interfaceExpressionActionCreator- Parameters:
editor- the ExpressionEditor that will use this action.- Returns:
- an action to be added to the ExpressionEditor's toolbar
-