public static interface Component.Focusable extends Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
void |
focus()
Sets focus to this component
|
int |
getTabIndex()
Gets the tabulator index of the
HasTabIndex component. |
default boolean |
isFocusable() |
default void |
setFocusable(boolean focusable)
Sets whether this component should be focusable, i.e.
|
void |
setTabIndex(int tabIndex)
Sets the tabulator index of the
Focusable component. |
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
void focus()
default boolean isFocusable()
default void setFocusable(boolean focusable)
true
, -1 otherwise.focusable
- whether this component should be focusableint getTabIndex()
HasTabIndex
component.HasTabIndex
component@StudioProperty(defaultValue="0") void setTabIndex(int tabIndex)
Focusable
component.
The tab index property is used to specify the order in which the
fields are focused when the user presses the Tab key. Components with
a defined tab index are focused sequentially first, and then the
components with no tab index.tabIndex
- tab index