Interface Action.Handler
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SpreadsheetDefaultActionHandler
- Enclosing class:
Action
Interface implemented by classes who wish to handle actions.
- Since:
- 3.0
- Author:
- Vaadin Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionAction[]getActions(Object target, Object sender) Gets the list of actions applicable to this handler.voidhandleAction(Action action, Object sender, Object target) Handles an action for the given target.
-
Method Details
-
getActions
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
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.
-