Class A_CmsFocusShortcutListener

java.lang.Object
com.vaadin.event.Action
com.vaadin.event.ShortcutAction
com.vaadin.event.ShortcutListener
org.opencms.ui.components.A_CmsFocusShortcutListener
All Implemented Interfaces:
com.vaadin.event.Action.Listener, com.vaadin.event.ConnectorEventListener, com.vaadin.event.FieldEvents.BlurListener, com.vaadin.event.FieldEvents.FocusListener, com.vaadin.event.SerializableEventListener, Serializable, EventListener

public abstract class A_CmsFocusShortcutListener extends com.vaadin.event.ShortcutListener implements com.vaadin.event.FieldEvents.BlurListener, com.vaadin.event.FieldEvents.FocusListener
Shortcut listener that will only be active, while the given text field has the keyboard focus.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.event.ShortcutAction

    com.vaadin.event.ShortcutAction.KeyCode, com.vaadin.event.ShortcutAction.ModifierKey

    Nested classes/interfaces inherited from class com.vaadin.event.Action

    com.vaadin.event.Action.Container, com.vaadin.event.Action.Handler, com.vaadin.event.Action.Listener, com.vaadin.event.Action.Notifier, com.vaadin.event.Action.ShortcutNotifier
  • Field Summary

    Fields inherited from class com.vaadin.event.ShortcutAction

    SHORTHAND_CHAR_ALT, SHORTHAND_CHAR_CTRL, SHORTHAND_CHAR_SHIFT

    Fields inherited from interface com.vaadin.event.FieldEvents.BlurListener

    blurMethod

    Fields inherited from interface com.vaadin.event.FieldEvents.FocusListener

    focusMethod
  • Constructor Summary

    Constructors
    Constructor
    Description
    A_CmsFocusShortcutListener(String caption, int keyCode, int[] modifierKeys)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    blur(com.vaadin.event.FieldEvents.BlurEvent event)
     
    void
    focus(com.vaadin.event.FieldEvents.FocusEvent event)
     
    void
    installOn(com.vaadin.ui.TextField field)
    Install the listener on the given text field

    Methods inherited from class com.vaadin.event.ShortcutListener

    handleAction

    Methods inherited from class com.vaadin.event.ShortcutAction

    getKeyCode, getModifiers

    Methods inherited from class com.vaadin.event.Action

    getCaption, getIcon, setCaption, setIcon

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • A_CmsFocusShortcutListener

      public A_CmsFocusShortcutListener(String caption, int keyCode, int[] modifierKeys)
      Constructor.

      See Also:
      • ShortcutAction(String, int, int...)
  • Method Details

    • blur

      public void blur(com.vaadin.event.FieldEvents.BlurEvent event)
      Specified by:
      blur in interface com.vaadin.event.FieldEvents.BlurListener
      See Also:
      • FieldEvents.BlurListener.blur(com.vaadin.event.FieldEvents.BlurEvent)
    • focus

      public void focus(com.vaadin.event.FieldEvents.FocusEvent event)
      Specified by:
      focus in interface com.vaadin.event.FieldEvents.FocusListener
      See Also:
      • FieldEvents.FocusListener.focus(com.vaadin.event.FieldEvents.FocusEvent)
    • installOn

      public void installOn(com.vaadin.ui.TextField field)
      Install the listener on the given text field
      Parameters:
      field - the txt field