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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(AbstractWidgetProperty<?> property) Add a property to the widget.protected abstract void
void
dispose()
Dispose of all resources allocated by this action.abstract WidgetActionFactory.ActionType
<T> T
getAdapter
(Class<T> adapter) getCopy()
getProperty
(String propId) boolean
abstract void
run()
void
setEnabled
(boolean enabled) void
setPropertyValue
(Object id, Object value) void
setWidgetModel
(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:
getAdapter
in 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.
-