public abstract class ActionsProvider extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ActionsProvider.Registration
Declarative registration of an ActionsProvider implementation.
|
static interface |
ActionsProvider.Registrations
Allows registration of multiple
ActionsProvider.Registration annotations. |
Constructor and Description |
---|
ActionsProvider() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addActionsProviderListener(ActionsProviderListener l)
Adds property change listener.
|
abstract void |
doAction(Object action)
Called when the action is called (action button is pressed).
|
abstract Set |
getActions()
Returns set of actions supported by this ActionsProvider.
|
abstract boolean |
isEnabled(Object action)
Should return a state of given action.
|
void |
postAction(Object action,
Runnable actionPerformedNotifier)
Post the action and let it process asynchronously.
|
abstract void |
removeActionsProviderListener(ActionsProviderListener l)
Removes property change listener.
|
public abstract Set getActions()
public abstract void doAction(Object action)
action
- an action which has been calledpublic abstract boolean isEnabled(Object action)
action
- actionpublic abstract void addActionsProviderListener(ActionsProviderListener l)
l
- new listener.public abstract void removeActionsProviderListener(ActionsProviderListener l)
l
- removed listener.public void postAction(Object action, Runnable actionPerformedNotifier)
ActionsProvider.doAction(java.lang.Object)
in a separate thread and returns immediately.action
- The action to postactionPerformedNotifier
- run this notifier after the action is
done.