S - Event source typeE - Click event typeC - Concrete configurator typepublic interface ClickNotifierConfigurator<S,E extends ClickEvent<S>,C extends ClickNotifierConfigurator<S,E,C>>
ClickEventListener registration.| Modifier and Type | Method and Description |
|---|---|
default C |
onClick(ClickEventListener<S,E> clickEventListener)
Register a click event listener.
|
C |
withClickListener(ClickEventListener<S,E> clickEventListener)
Register a click event listener.
|
ShortcutConfigurator<C> |
withClickShortcut(com.vaadin.flow.component.Key key)
Adds a shortcut to perform a click action for this component when the provided key is pressed.
|
C |
withClickShortcutKey(com.vaadin.flow.component.Key key,
com.vaadin.flow.component.KeyModifier... keyModifiers)
Adds a shortcut to perform a click action for this component when the provided key is pressed.
|
C withClickListener(ClickEventListener<S,E> clickEventListener)
clickEventListener - The listener to add (not null)default C onClick(ClickEventListener<S,E> clickEventListener)
Alias for withClickListener(ClickEventListener).
clickEventListener - The listener to add (not null)C withClickShortcutKey(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier... keyModifiers)
key - Primary Key used to trigger the shortcut (not null)keyModifiers - Optional key modifier(s) that need to be pressed along with the key for the
shortcut to triggerwithClickShortcut(Key)ShortcutConfigurator<C> withClickShortcut(com.vaadin.flow.component.Key key)
A ShortcutConfigurator API is returned to further configure the shortcut listener. The
ShortcutConfigurator.add() method should be used to add the shortcut listener and go back to the parent
builder.
key - Primary Key used to trigger the shortcut (not null)ShortcutConfiguratorCopyright © 2019 The Holon Platform. All rights reserved.