Class GeneratedVaadinTab<R extends GeneratedVaadinTab<R>>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.tabs.GeneratedVaadinTab<R>
-
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasStyle,HasTheme,Serializable
- Direct Known Subclasses:
Tab
@Tag("vaadin-tab") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.2.17") @NpmPackage(value="@vaadin/tabs",version="23.2.17") @NpmPackage(value="@vaadin/vaadin-tabs",version="23.2.17") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/tabs/src/vaadin-tab.js") 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 disabledSet to a disabled tab :host focusedSet when the element is focused :host focus-ringSet when the element is keyboard focused :host selectedSet when the tab is selected :host activeSet when mousedown or enter/spacebar pressed :host orientationSet to horizontalorverticaldepending on the direction of items:host - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinTab()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddThemeVariants(TabVariant... variants)Adds theme variants to the component.protected StringgetValueString()Description copied from corresponding location in WebComponent:protected booleanisDisabledBoolean()Description copied from corresponding location in WebComponent:protected booleanisSelectedBoolean()Description copied from corresponding location in WebComponent:voidremoveThemeVariants(TabVariant... variants)Removes theme variants from the component.protected voidsetDisabled(boolean disabled)Description copied from corresponding location in WebComponent:protected voidsetSelected(boolean selected)Description copied from corresponding location in WebComponent:protected voidsetValue(String value)Description copied from corresponding location in WebComponent:-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
-
-
-
Method Detail
-
addThemeVariants
public void addThemeVariants(TabVariant... variants)
Adds theme variants to the component.- Parameters:
variants- theme variants to add
-
removeThemeVariants
public void removeThemeVariants(TabVariant... variants)
Removes theme variants from the component.- Parameters:
variants- theme variants to remove
-
getValueString
protected 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.
- Returns:
- the
valueproperty from the webcomponent
-
setValue
protected 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.
- Parameters:
value- the String value to set
-
isDisabledBoolean
protected 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.
- Returns:
- the
disabledproperty from the webcomponent
-
setDisabled
protected void setDisabled(boolean disabled)
Description copied from corresponding location in WebComponent:
If true, the user cannot interact with this element.
- Parameters:
disabled- the boolean value to set
-
isSelectedBoolean
protected 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.
- Returns:
- the
selectedproperty from the webcomponent
-
setSelected
protected void setSelected(boolean selected)
Description copied from corresponding location in WebComponent:
If true, the item is in selected state.
- Parameters:
selected- the boolean value to set
-
-