T - Concrete component typeC - Concrete configurator typepublic interface FocusableConfigurator<T extends com.vaadin.flow.component.Component,C extends FocusableConfigurator<T,C>>
Focusable type components.| Modifier and Type | Method and Description |
|---|---|
C |
tabIndex(int tabIndex)
Sets the
tabindex attribute in the component. |
C |
withBlurListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.BlurNotifier.BlurEvent<T>> listener)
Adds a listener which gets fired when the the component focus is lost.
|
C |
withFocusListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.FocusNotifier.FocusEvent<T>> listener)
Adds a listener which gets fired when the component receives focus.
|
C tabIndex(int tabIndex)
tabindex attribute in the component. The tabIndex indicates if its element can be focused,
and if/where it participates in sequential keyboard navigation:
tabindex = -1 means that the component should be focusable, but should
not be reachable via sequential keyboard navigation.tabindex = 0 means that the component should be focusable in sequential keyboard navigation, but
its order is defined by the document's source order.tabindex = 4 would be focused before
tabindex = 5, but after tabindex = 3. If multiple components share the same positive
tabindex value, their order relative to each other follows their position in the document source.tabIndex - The tab index to setC withFocusListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.FocusNotifier.FocusEvent<T>> listener)
listener - The listener to addCopyright © 2019 The Holon Platform. All rights reserved.