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.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
ConstructorsConstructorDescriptionA_CmsFocusShortcutListener
(String caption, int keyCode, int[] modifierKeys) Constructor. -
Method Summary
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
-
Constructor Details
-
A_CmsFocusShortcutListener
Constructor.- See Also:
-
ShortcutAction(String, int, int...)
-
-
Method Details
-
blur
- Specified by:
blur
in interfacecom.vaadin.event.FieldEvents.BlurListener
- See Also:
-
FieldEvents.BlurListener.blur(com.vaadin.event.FieldEvents.BlurEvent)
-
focus
- Specified by:
focus
in interfacecom.vaadin.event.FieldEvents.FocusListener
- See Also:
-
FieldEvents.FocusListener.focus(com.vaadin.event.FieldEvents.FocusEvent)
-
installOn
Install the listener on the given text field- Parameters:
field
- the txt field
-