Package com.vaadin.event
Interface Action.Handler
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ActionManager
,ConnectorActionManager
- Enclosing class:
- Action
public static interface Action.Handler extends Serializable
Interface implemented by classes who wish to handle actions.- Since:
- 3.0
- Author:
- Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Action[]
getActions(Object target, Object sender)
Gets the list of actions applicable to this handler.void
handleAction(Action action, Object sender, Object target)
Handles an action for the given target.
-
-
-
Method Detail
-
getActions
Action[] getActions(Object target, Object sender)
Gets the list of actions applicable to this handler.- Parameters:
target
- the target handler to list actions for. For item containers this is the item id.sender
- the party that would be sending the actions. Most of this is the action container.- Returns:
- the list of Action
-
handleAction
void handleAction(Action action, Object sender, Object target)
Handles an action for the given target. The handler method may just discard the action if it's not suitable.- Parameters:
action
- the action to be handled.sender
- the sender of the action. This is most often the action container.target
- the target of the action. For item containers this is the item id.
-
-