com.vaadin.event.FieldEvents.FocusListener Java Examples
The following examples show how to use
com.vaadin.event.FieldEvents.FocusListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AceEditor.java From cuba with Apache License 2.0 | 5 votes |
@Override public Registration addFocusListener(FocusListener listener) { Registration registration = addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener, FocusListener.focusMethod); getState().listenToFocusChanges = true; return registration; }
Example #2
Source File: ComboBoxMultiselect.java From vaadin-combobox-multiselect with Apache License 2.0 | 4 votes |
@Override public Registration addFocusListener(final FocusListener listener) { return addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener, FocusListener.focusMethod); }
Example #3
Source File: AceEditor.java From cuba with Apache License 2.0 | 4 votes |
public void removeFocusListener(FocusListener listener) { removeListener(FocusEvent.EVENT_ID, FocusEvent.class, listener); getState().listenToFocusChanges = !getListeners(FocusEvent.class) .isEmpty() || !getListeners(BlurEvent.class).isEmpty(); }
Example #4
Source File: ComboBoxMultiselect.java From vaadin-combobox-multiselect with Apache License 2.0 | 4 votes |
@Override public Registration addFocusListener(final FocusListener listener) { return addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener, FocusListener.focusMethod); }
Example #5
Source File: ClearableTextField.java From viritin with Apache License 2.0 | 4 votes |
public Registration addFocusListener(FocusListener listener) { return textfield.addFocusListener(listener); }
Example #6
Source File: AbstractNumberField.java From viritin with Apache License 2.0 | 4 votes |
@Override public Registration addFocusListener(FocusListener listener) { return tf.addFocusListener(listener); }
Example #7
Source File: ClearableTextField.java From viritin with Apache License 2.0 | 4 votes |
public void addFocusListener(FocusListener listener) { textfield.addFocusListener(listener); }
Example #8
Source File: ClearableTextField.java From viritin with Apache License 2.0 | 4 votes |
public void removeFocusListener(FocusListener listener) { textfield.removeFocusListener(listener); }
Example #9
Source File: AbstractNumberField.java From viritin with Apache License 2.0 | 4 votes |
@Override public void addFocusListener(FocusListener listener) { tf.addFocusListener(listener); }
Example #10
Source File: AbstractNumberField.java From viritin with Apache License 2.0 | 4 votes |
@Override public void removeFocusListener(FocusListener listener) { tf.removeFocusListener(listener); }
Example #11
Source File: AbstractNumberField.java From viritin with Apache License 2.0 | 2 votes |
/** * Adds a FocusListener to the Component which gets fired when a Field * receives keyboard focus, returning this instance in a fluent fashion. * * @param listener the listener to be added * @return this instance */ public AbstractNumberField<S, T> withFocusListener(FocusListener listener) { addFocusListener(listener); return this; }
Example #12
Source File: FluentFieldEvents.java From viritin with Apache License 2.0 | 2 votes |
/** * Adds a <code>FocusListener</code> to the Component which gets fired * when a <code>Field</code> receives keyboard focus. * * @param listener The focus listener to add * @return this (for method chaining) * @see #addFocusListener(com.vaadin.event.FieldEvents.FocusListener) */ public default S withFocusListener(FocusListener listener) { ((FocusNotifier) this).addFocusListener(listener); return (S) this; }
Example #13
Source File: AbstractNumberField.java From viritin with Apache License 2.0 | 2 votes |
/** * Adds a FocusListener to the Component which gets fired when a Field receives keyboard focus, returning * this instance in a fluent fashion. * * @param listener the listener to be added * @return this instance */ public AbstractNumberField<T> withFocusListener(FocusListener listener) { addFocusListener(listener); return this; }