Package org.opencms.ui.components
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.ModifierKeyNested 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_SHIFTFields inherited from interface com.vaadin.event.FieldEvents.BlurListener
blurMethodFields inherited from interface com.vaadin.event.FieldEvents.FocusListener
focusMethod -
Constructor Summary
ConstructorsConstructorDescriptionA_CmsFocusShortcutListener(String caption, int keyCode, int[] modifierKeys) Constructor. -
Method Summary
Methods inherited from class com.vaadin.event.ShortcutListener
handleActionMethods inherited from class com.vaadin.event.ShortcutAction
getKeyCode, getModifiersMethods inherited from class com.vaadin.event.Action
getCaption, getIcon, setCaption, setIcon
-
Constructor Details
-
A_CmsFocusShortcutListener
Constructor.- See Also:
-
-
Method Details
-
blur
- Specified by:
blurin interfacecom.vaadin.event.FieldEvents.BlurListener- See Also:
-
focus
- Specified by:
focusin interfacecom.vaadin.event.FieldEvents.FocusListener- See Also:
-
installOn
Install the listener on the given text field- Parameters:
field- the txt field
-