com.vaadin.event.
Class ConnectorActionManager
- java.lang.Object
-
- com.vaadin.event.ActionManager
-
- com.vaadin.event.ConnectorActionManager
-
All Implemented Interfaces:
Action.Container
,Action.Handler
,Action.Notifier
,Serializable
public class ConnectorActionManager extends ActionManager
An ActionManager connected to a connector. Takes care of verifying that the connector can receive events before triggering an action.
This is mostly a workaround until shortcut actions are re-implemented in a more sensible way.
Since:
7.1.8
Author:
Vaadin Ltd
See Also:
-
-
Field Summary
-
Fields inherited from class com.vaadin.event.ActionManager
actionHandlers, actionMapper, ownActions, viewer
-
-
Constructor Summary
Constructors Constructor Description ConnectorActionManager(ClientConnector connector)
Initialize an action manager for the given connector.
ConnectorActionManager(ClientConnector connector, T viewer)
Initialize an action manager for the given connector using the given viewer.
-
Method Summary
All Methods Modifier and Type Method Description void
handleAction(Action action, Object sender, Object target)
Handles an action for the given target.
-
Methods inherited from class com.vaadin.event.ActionManager
addAction, addActionHandler, getActions, handleActions, paintActions, removeAction, removeActionHandler, removeAllActionHandlers, setViewer
-
-
-
-
Constructor Detail
-
ConnectorActionManager
public ConnectorActionManager(ClientConnector connector)
Initialize an action manager for the given connector.
Parameters:
connector
- the owner of this action manager
-
ConnectorActionManager
public ConnectorActionManager(ClientConnector connector, T viewer)
Initialize an action manager for the given connector using the given viewer.
Parameters:
connector
- the owner of this action managerviewer
- the viewer connected
-
-
Method Detail
-
handleAction
public void handleAction(Action action, Object sender, Object target)
Description copied from interface:
Action.Handler
Handles an action for the given target. The handler method may just discard the action if it's not suitable.
Specified by:
handleAction
in interfaceAction.Handler
Overrides:
handleAction
in classActionManager
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.
-
-