Package org.opencms.ui.components
Class CmsOkCancelActionHandler
java.lang.Object
org.opencms.ui.components.CmsOkCancelActionHandler
- All Implemented Interfaces:
com.vaadin.event.Action.Handler
,Serializable
public abstract class CmsOkCancelActionHandler
extends Object
implements com.vaadin.event.Action.Handler
Shortcut handler triggered on 'Enter' and 'Esc' to trigger OK and Cancel actions.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.vaadin.event.ShortcutAction
The enter action.protected static final com.vaadin.event.ShortcutAction
The escape action. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
cancel()
Called on key press 'Esc'.com.vaadin.event.Action[]
getActions
(Object target, Object sender) void
handleAction
(com.vaadin.event.Action action, Object sender, Object target) protected abstract void
ok()
Called on key press 'Enter'.
-
Field Details
-
ENTER_ACTION
The enter action. -
ESC_ACTION
The escape action.
-
-
Constructor Details
-
CmsOkCancelActionHandler
public CmsOkCancelActionHandler()
-
-
Method Details
-
getActions
- Specified by:
getActions
in interfacecom.vaadin.event.Action.Handler
- See Also:
-
Action.Handler.getActions(java.lang.Object, java.lang.Object)
-
handleAction
- Specified by:
handleAction
in interfacecom.vaadin.event.Action.Handler
- See Also:
-
Action.Handler.handleAction(com.vaadin.event.Action, java.lang.Object, java.lang.Object)
-
cancel
Called on key press 'Esc'. -
ok
Called on key press 'Enter'.
-