| Modifier and Type | Class and Description |
|---|---|
class |
ShortcutRegistration
A registration object for both configuring and removing the registered
keyboard shortcut.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
UI.addAfterNavigationListener(AfterNavigationListener listener)
Add a listener that will be informed when new components have been
attached and all navigation tasks have resolved.
|
default Registration |
AttachNotifier.addAttachListener(ComponentEventListener<AttachEvent> listener)
Adds a attach listener to this component.
|
Registration |
UI.addBeforeEnterListener(BeforeEnterListener listener)
Add a listener that will be informed when a new set of components are
going to be attached.
|
Registration |
UI.addBeforeLeaveListener(BeforeLeaveListener listener)
Add a listener that will be informed when old components are detached.
|
default Registration |
BlurNotifier.addBlurListener(ComponentEventListener<BlurNotifier.BlurEvent<T>> listener)
Add a listener to blur DOM events.
|
default Registration |
ClickNotifier.addClickListener(ComponentEventListener<ClickEvent<T>> listener)
Adds a click listener to this component.
|
default Registration |
CompositionNotifier.addCompositionEndListener(ComponentEventListener<CompositionEndEvent> listener)
Adds a
compositionend listener to this component. |
default Registration |
CompositionNotifier.addCompositionStartListener(ComponentEventListener<CompositionStartEvent> listener)
Adds a
compositionstart listener to this component. |
default Registration |
CompositionNotifier.addCompositionUpdateListener(ComponentEventListener<CompositionUpdateEvent> listener)
Adds a
compositionupdate listener to this component. |
default Registration |
DetachNotifier.addDetachListener(ComponentEventListener<DetachEvent> listener)
Adds a detach listener to this component.
|
default Registration |
FocusNotifier.addFocusListener(ComponentEventListener<FocusNotifier.FocusEvent<T>> listener)
Add a listener to focus DOM events.
|
default Registration |
InputNotifier.addInputListener(ComponentEventListener<InputEvent> listener)
Adds an input listener to this component.
|
default Registration |
KeyNotifier.addKeyDownListener(ComponentEventListener<KeyDownEvent> listener)
Adds a
keydown listener to this component. |
default Registration |
KeyNotifier.addKeyDownListener(Key key,
ComponentEventListener<KeyDownEvent> listener,
KeyModifier... modifiers)
Adds a
keydown listener to this component, which will trigger
only if the keys involved in the event match the key and
modifiers parameters. |
default Registration |
KeyNotifier.addKeyPressListener(ComponentEventListener<KeyPressEvent> listener)
Adds a
keypress listener to this component. |
default Registration |
KeyNotifier.addKeyPressListener(Key key,
ComponentEventListener<KeyPressEvent> listener,
KeyModifier... modifiers)
Adds a
keypress listener to this component, which will trigger
only if the keys involved in the event match the key and
modifiers parameters. |
default Registration |
KeyNotifier.addKeyUpListener(ComponentEventListener<KeyUpEvent> listener)
Adds a
keyup listener to this component. |
default Registration |
KeyNotifier.addKeyUpListener(Key key,
ComponentEventListener<KeyUpEvent> listener,
KeyModifier... modifiers)
Adds a
keyup listener to this component, which will trigger only
if the keys involved in the event match the key and
modifiers parameters. |
<T extends ComponentEvent<?>> |
ComponentEventBus.addListener(Class<T> eventType,
ComponentEventListener<T> listener)
Adds a listener for the given event type.
|
protected <T extends ComponentEvent<?>> |
Component.addListener(Class<T> eventType,
ComponentEventListener<T> listener)
Adds a listener for an event of the given type.
|
<T extends ComponentEvent<?>> |
ComponentEventBus.addListener(Class<T> eventType,
ComponentEventListener<T> listener,
Consumer<DomListenerRegistration> domListenerConsumer)
Adds a listener for the given event type, and customizes the
corresponding DOM event listener with the given consumer.
|
static <T extends ComponentEvent<?>> |
ComponentUtil.addListener(Component component,
Class<T> eventType,
ComponentEventListener<T> listener)
Adds a listener for an event of the given type to the
component. |
static <T extends ComponentEvent<?>> |
ComponentUtil.addListener(Component component,
Class<T> eventType,
ComponentEventListener<T> listener,
Consumer<DomListenerRegistration> domListenerConsumer)
Adds a listener for an event of the given type to the
component,
and customizes the corresponding DOM event listener with the given
consumer. |
default Registration |
PollNotifier.addPollListener(ComponentEventListener<PollEvent> listener)
Add a poll listener.
|
Registration |
AbstractField.addValueChangeListener(HasValue.ValueChangeListener<? super AbstractField.ComponentValueChangeEvent<C,T>> listener) |
Registration |
AbstractCompositeField.addValueChangeListener(HasValue.ValueChangeListener<? super AbstractField.ComponentValueChangeEvent<S,T>> listener) |
Registration |
HasValue.addValueChangeListener(HasValue.ValueChangeListener<? super E> listener)
Adds a value change listener.
|
static Registration |
Shortcuts.setShortcutListenOnElement(String elementLocatorJs,
Component listenOnComponent)
Setup an element, that is only accessible on the browser (not server
side), to listen for shortcut events on and delegate to the given
component.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
UIInternals.addAfterNavigationListener(AfterNavigationListener listener)
Add a listener that will be informed when new components have been
attached and all navigation tasks have resolved.
|
Registration |
UIInternals.addBeforeEnterListener(BeforeEnterListener listener)
Add a listener that will be informed when a new set of components are
going to be attached.
|
Registration |
UIInternals.addBeforeLeaveListener(BeforeLeaveListener listener)
Add a listener that will be informed when old components are detached.
|
Registration |
UIInternals.addHeartbeatListener(HeartbeatListener listener) |
Registration |
AbstractFieldSupport.addValueChangeListener(HasValue.ValueChangeListener<? super AbstractField.ComponentValueChangeEvent<C,T>> listener)
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
Page.addBrowserWindowResizeListener(BrowserWindowResizeListener resizeListener)
Adds a new
BrowserWindowResizeListener to this UI. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DomListenerRegistration
A registration for configuring or removing a DOM event listener added to an
element.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
Element.addAttachListener(ElementAttachListener attachListener)
Adds an attach listener for this element.
|
Registration |
Element.addDetachListener(ElementDetachListener detachListener)
Adds a detach listener for this element.
|
Registration |
ElementStateProvider.addPropertyChangeListener(StateNode node,
String name,
PropertyChangeListener listener)
Adds a property change listener.
|
Registration |
Element.addPropertyChangeListener(String name,
PropertyChangeListener listener)
Adds a property change listener.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
ShadowRootStateProvider.addPropertyChangeListener(StateNode node,
String name,
PropertyChangeListener listener) |
Registration |
BasicElementStateProvider.addPropertyChangeListener(StateNode node,
String name,
PropertyChangeListener listener) |
Registration |
AbstractTextElementStateProvider.addPropertyChangeListener(StateNode node,
String name,
PropertyChangeListener listener) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
StateTree.ExecutionRegistration
A registration object for removing a task registered for execution before
the client response.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
StateNode.addAttachListener(Command attachListener)
Adds a command as an attach listener.
|
static Registration |
ReflectionCache.addClearAllAction(Runnable action)
Adds an action that will be run when all reflection caches are cleared.
|
Registration |
StateNode.addDetachListener(Command detachListener)
Adds a command as a detach listener.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ReturnChannelRegistration
A registration for a return channel.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
PolymerEventListenerMap.add(String methodName,
String[] eventDataExpressions)
Adds a listener for a event created from a template method.
|
Registration |
ElementPropertyMap.addPropertyChangeListener(String name,
PropertyChangeListener listener)
Adds a property change listener.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
RouteConfiguration.addRoutesChangeListener(RoutesChangedListener listener)
Add a listener that is notified when routes change for the registry.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
AbstractRouteRegistry.addRoutesChangeListener(RoutesChangedListener listener) |
| Modifier and Type | Method and Description |
|---|---|
Registration |
SessionRouteRegistry.addRoutesChangeListener(RoutesChangedListener listener)
Adds the given route change listener to the registry.
|
Registration |
RouteRegistry.addRoutesChangeListener(RoutesChangedListener listener)
Adds the given route change listener to the registry.
|
Registration |
VaadinService.addServiceDestroyListener(ServiceDestroyListener listener)
Adds a service destroy listener that gets notified when this service is
destroyed.
|
Registration |
VaadinService.addSessionDestroyListener(SessionDestroyListener listener)
Adds a listener that gets notified when a Vaadin service session that has
been initialized for this service is destroyed.
|
Registration |
VaadinService.addSessionInitListener(SessionInitListener listener)
Adds a listener that gets notified when a new Vaadin service session is
initialized for this service.
|
Registration |
VaadinService.addUIInitListener(UIInitListener listener)
Adds a listener that gets notified when a new UI has been initialized.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Registration |
Registration.addAndRemove(Collection<T> collection,
T item)
Creates a registration by adding an item to a collection immediately and
removing the item from the collection when the registration is removed.
|
static Registration |
Registration.combine(Registration... registrations)
Creates a registration that will remove multiple registrations.
|
static Registration |
Registration.once(Command command)
Creates a registration that will run a command only once.
|
| Modifier and Type | Method and Description |
|---|---|
static Registration |
Registration.combine(Registration... registrations)
Creates a registration that will remove multiple registrations.
|
Copyright © 2000–2024 Vaadin Ltd. All rights reserved.