public interface IAction<RETURNTYPE> extends Runnable
| Modifier and Type | Field and Description |
|---|---|
static String |
CANCELED |
static int |
MODE_DLG_CANCEL
dialog return value: dialog will be closed, and IDialogConstants.CANCEL_ID will be returned
|
static int |
MODE_DLG_OK
dialog return value: dialog will be closed, and IDialogConstants.OK_ID will be returned
|
static int |
MODE_UNDEFINED
dialog return value - no dialog handling will be done
|
| Modifier and Type | Method and Description |
|---|---|
RETURNTYPE |
action()
The action to be started
|
RETURNTYPE |
activate()
starts this action.
|
static int |
doFor(Collection<?> forCollection,
IAction<?> doAction)
starts the given action for all items of the given collection - as first action parameter.
|
int |
getActionMode()
action mode. e.g. on dialogs it is usable to define the buttons result type. see
MODE_DLG_CANCEL,
MODE_DLG_OK. |
Class[] |
getArgumentTypes()
getArgumentTypes
|
String |
getId()
Getter getId
|
String |
getImagePath() |
Object |
getKeyStroke()
Getter getKeyStroke
|
String |
getLongDescription()
Getter getLongDescription
|
Object[] |
getParameter() |
Object |
getParameter(int i) |
Collection<String> |
getReceiverIDs()
the receivers will receive the result of the activation.
|
String |
getShortDescription()
Getter getShortDescription
|
boolean |
isDefault()
Getter isDefault
|
boolean |
isEnabled()
Getter isEnabled
|
boolean |
isRunning() |
boolean |
isSynchron()
Getter isSynchron
|
void |
setDefault(boolean isDefault)
setDefault
|
void |
setEnabled(boolean isEnabled)
Setter isEnabled
|
void |
setParameter(Object... parameter) |
static final String CANCELED
static final int MODE_UNDEFINED
static final int MODE_DLG_CANCEL
static final int MODE_DLG_OK
boolean isEnabled()
void setEnabled(boolean isEnabled)
isEnabled - The isEnabled to set.Object getKeyStroke()
String getId()
String getShortDescription()
String getLongDescription()
String getImagePath()
boolean isDefault()
void setDefault(boolean isDefault)
isDefault - whether to set the action as default actionboolean isSynchron()
RETURNTYPE action() throws Exception
RETURNTYPE activate()
Collection<String> getReceiverIDs()
Class[] getArgumentTypes()
getParameter() and
setParameter(Object...). default is nullObject[] getParameter()
Object getParameter(int i)
void setParameter(Object... parameter)
parameter - call argumentsint getActionMode()
MODE_DLG_CANCEL,
MODE_DLG_OK.boolean isRunning()
static int doFor(Collection<?> forCollection, IAction<?> doAction)
forCollection - to iteratedoAction - to doCopyright © 2012–2018. All rights reserved.