T- the type of the component which implements the interface
public interface Focusable<T extends Component> extends HasElement, BlurNotifier<T>, FocusNotifier<T>, HasEnabled
BlurNotifier.BlurEvent<C extends Component>
|Modifier and Type||Method and Description|
default void setTabIndex(int tabIndex)
tabindexattribute in the component. The tabIndex indicates if its element can be focused, and if/where it participates in sequential keyboard navigation:
tabindex = -1means that the component should be focusable, but should not be reachable via sequential keyboard navigation.
tabindex = 0means that the component should be focusable in sequential keyboard navigation, but its order is defined by the document's source order.
tabindex = 4would 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 tabindex attribute
default int getTabIndex()
tabindexin the component. The tabIndex indicates if its element can be focused, and if/where it participates in sequential keyboard navigation.
If there's no such attribute set, it returns the default setting for the
element, which depends on the element and on the browser. If the
attribute cannot be parsed to
int, then an
IllegalStateException is thrown.
default void focus()
focusfunction at the client, making the component keyboard focused.
default void blur()
blurfunction at the client, making the component lose keyboard focus.
Copyright © 2018. All rights reserved.