com.vaadin.event
Interface Action.Handler

All Superinterfaces:
Serializable
All Known Implementing Classes:
ActionManager
Enclosing class:
Action

public static interface Action.Handler
extends Serializable

Interface implemented by classes who wish to handle actions.

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.

Method Summary
 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.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.