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 Details

    • ENTER_ACTION

      protected static final com.vaadin.event.ShortcutAction ENTER_ACTION
      The enter action.
    • ESC_ACTION

      protected static final com.vaadin.event.ShortcutAction ESC_ACTION
      The escape action.
  • Constructor Details

  • Method Details

    • getActions

      public com.vaadin.event.Action[] getActions(Object target, Object sender)
      Specified by:
      getActions in interface com.vaadin.event.Action.Handler
      See Also:
      • Action.Handler.getActions(java.lang.Object, java.lang.Object)
    • handleAction

      public void handleAction(com.vaadin.event.Action action, Object sender, Object target)
      Specified by:
      handleAction in interface com.vaadin.event.Action.Handler
      See Also:
      • Action.Handler.handleAction(com.vaadin.event.Action, java.lang.Object, java.lang.Object)
    • cancel

      protected abstract void cancel()
      Called on key press 'Esc'.

    • ok

      protected abstract void ok()
      Called on key press 'Enter'.