@Tag(value="vaadin-tab") @JsModule(value="@vaadin/vaadin-tabs/src/vaadin-tab.js") @NpmPackage(value="@vaadin/vaadin-tabs", version="3.2.0") public abstract class GeneratedVaadinTab<R extends GeneratedVaadinTab<R>> extends Component implements HasStyle, HasTheme
Description copied from corresponding location in WebComponent:
<vaadin-tab>
is a Web Component providing an accessible and
customizable tab.
<vaadin-tab>
Tab 1
</vaadin-tab>
The following state attributes are available for styling:
Attribute | Description | Part name |
---|---|---|
disabled |
Set to a disabled tab | :host |
focused |
Set when the element is focused | :host |
focus-ring |
Set when the element is keyboard focused | :host |
selected |
Set when the tab is selected | :host |
active |
Set when mousedown or enter/spacebar pressed | :host |
orientation |
Set to horizontal or vertical depending on the direction
of items |
:host |
Constructor and Description |
---|
GeneratedVaadinTab() |
Modifier and Type | Method and Description |
---|---|
void |
addThemeVariants(TabVariant... variants)
Adds theme variants to the component.
|
protected String |
getValueString()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isDisabledBoolean()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isSelectedBoolean()
Description copied from corresponding location in WebComponent:
|
void |
removeThemeVariants(TabVariant... variants)
Removes theme variants from the component.
|
protected void |
setDisabled(boolean disabled)
Description copied from corresponding location in WebComponent:
|
protected void |
setSelected(boolean selected)
Description copied from corresponding location in WebComponent:
|
protected void |
setValue(String value)
Description copied from corresponding location in WebComponent:
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
getElement
addAttachListener
addDetachListener
public void addThemeVariants(TabVariant... variants)
variants
- theme variants to addpublic void removeThemeVariants(TabVariant... variants)
variants
- theme variants to removeprotected String getValueString()
Description copied from corresponding location in WebComponent:
Submittable string value. The default value is the trimmed text content of the element.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
value
property from the webcomponentprotected void setValue(String value)
Description copied from corresponding location in WebComponent:
Submittable string value. The default value is the trimmed text content of the element.
value
- the String value to setprotected boolean isDisabledBoolean()
Description copied from corresponding location in WebComponent:
If true, the user cannot interact with this element.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
disabled
property from the webcomponentprotected void setDisabled(boolean disabled)
Description copied from corresponding location in WebComponent:
If true, the user cannot interact with this element.
disabled
- the boolean value to setprotected boolean isSelectedBoolean()
Description copied from corresponding location in WebComponent:
If true, the item is in selected state.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
selected
property from the webcomponentprotected void setSelected(boolean selected)
Description copied from corresponding location in WebComponent:
If true, the item is in selected state.
selected
- the boolean value to setCopyright © 2025. All rights reserved.