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
,java.io.Serializable
,java.util.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description A_CmsFocusShortcutListener(java.lang.String caption, int keyCode, int[] modifierKeys)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods 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
-
-
-
Constructor Detail
-
A_CmsFocusShortcutListener
public A_CmsFocusShortcutListener(java.lang.String caption, int keyCode, int[] modifierKeys)
Constructor.- See Also:
ShortcutAction(String, int, int...)
-
-
Method Detail
-
blur
public void blur(com.vaadin.event.FieldEvents.BlurEvent event)
- Specified by:
blur
in interfacecom.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 interfacecom.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
-
-