Class AbstractWidgetAction
java.lang.Object
org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
- All Implemented Interfaces:
IAdaptable
- Direct Known Subclasses:
AbstractExecuteScriptAction,ExecuteCommandAction,OpenDisplayAction,OpenFileAction,OpenWebpageAction,PlayWavFileAction,RunCommandAction,RunCommandStackAction,RunProcedureAction,WritePVAction
The abstract widget action, which can be executed from the widget by click or context menu.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(AbstractWidgetProperty<?> property) Add a property to the widget.protected abstract voidvoiddispose()Dispose of all resources allocated by this action.abstract WidgetActionFactory.ActionType<T> TgetAdapter(Class<T> adapter) getCopy()getProperty(String propId) booleanabstract voidrun()voidsetEnabled(boolean enabled) voidsetPropertyValue(Object id, Object value) voidsetWidgetModel(AbstractWidgetModel widgetModel)
-
Field Details
-
PROP_DESCRIPTION
- See Also:
-
-
Constructor Details
-
AbstractWidgetAction
public AbstractWidgetAction()
-
-
Method Details
-
addProperty
Add a property to the widget.- Parameters:
property- the property to be added.
-
configureProperties
protected abstract void configureProperties() -
getDefaultDescription
-
getDescription
-
run
public abstract void run() -
getActionType
-
getAllProperties
-
getPropertyValue
-
setPropertyValue
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable
-
getCopy
-
getAllPropertyIDs
-
getProperty
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled- the enabled to set
-
isEnabled
public boolean isEnabled()- Returns:
- the enabled
-
setWidgetModel
- Parameters:
widgetModel- the widgetModel to set
-
getWidgetModel
- Returns:
- the widgetModel
-
dispose
public void dispose()Dispose of all resources allocated by this action.
-