Interface Action
-
- All Known Implementing Classes:
AbstractMoveRowAction
,AbstractTableAction
,AddRowAction
,DuplicateRowAction
,MoveRowDownAction
,MoveRowUpAction
,RemoveRowAction
,TableRendererAction
public interface Action
An minimal interface for viewer actions.- Author:
- Mat Hansen
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PREFIX
The default prefix to be used for all actions implementing this interface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canExecute()
Verify that this action can be executed given the current action context.void
execute()
Execute the action.java.lang.String
getId()
Return the ID for this action.
-
-
-
Field Detail
-
PREFIX
static final java.lang.String PREFIX
The default prefix to be used for all actions implementing this interface.- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
java.lang.String getId()
Return the ID for this action. Must be unique.- Returns:
- the action ID
-
execute
void execute()
Execute the action.
-
canExecute
boolean canExecute()
Verify that this action can be executed given the current action context.- Returns:
- true in case execute() can be called, false otherwise
-
-