Class CmsOkCancelActionHandler

  • All Implemented Interfaces:

    public abstract class CmsOkCancelActionHandler
    extends java.lang.Object
    implements com.vaadin.event.Action.Handler
    Shortcut handler triggered on 'Enter' and 'Esc' to trigger OK and Cancel actions.

    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      protected static com.vaadin.event.ShortcutAction ENTER_ACTION
      The enter action.
      protected static com.vaadin.event.ShortcutAction ESC_ACTION
      The escape action.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void cancel()
      Called on key press 'Esc'.
      com.vaadin.event.Action[] getActions​(java.lang.Object target, java.lang.Object sender)  
      void handleAction​(com.vaadin.event.Action action, java.lang.Object sender, java.lang.Object target)  
      protected abstract void ok()
      Called on key press 'Enter'.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail


        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.
    • Method Detail

      • getActions

        public com.vaadin.event.Action[] getActions​(java.lang.Object target,
                                                    java.lang.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,
                                 java.lang.Object sender,
                                 java.lang.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'.