Class Tab
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, Tab>, ElementClassListMethods<HTMLElement, Tab>, ElementConsumerMethods<HTMLElement, Tab>, ElementContainerMethods<HTMLElement, Tab>, ElementEventMethods<HTMLElement, Tab>, ElementIdMethods<HTMLElement, Tab>, ElementQueryMethods<HTMLElement>, ElementTextDelegate<HTMLElement, Tab>, ElementTextMethods<HTMLElement, Tab>, HTMLElementAttributeMethods<HTMLElement, Tab>, HTMLElementDataMethods<HTMLElement, Tab>, HTMLElementStyleMethods<HTMLElement, Tab>, HTMLElementVisibilityMethods<HTMLElement, Tab>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, Tab>, Closeable<HTMLElement, Tab>, ComponentIcon<HTMLElement, Tab>, HasIdentifier<HTMLElement, Tab>, ComponentContext<HTMLElement, Tab>, Modifiers.Disabled<HTMLElement, Tab>
public class Tab
extends SubComponent<HTMLElement, Tab>
implements Closeable<HTMLElement, Tab>, ComponentContext<HTMLElement, Tab>, ComponentIcon<HTMLElement, Tab>, Modifiers.Disabled<HTMLElement, Tab>, ElementTextDelegate<HTMLElement, Tab>, HasIdentifier<HTMLElement, Tab>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd(Function<Tabs, Promise<TabContent>> content) add(TabContent content) addContent(Function<Tabs, Promise<TabContent>> content) addContent(TabContent content) ariaCloseLabel(String label) ariaDisabled(boolean disabled) ariaHelpLabel(String label) voidcloseable(CloseHandler<Tab> closeHandler) disabled(boolean disabled) Adds/removes modifier(disabled)<T> TRetrieves the value associated with the given key from the ComponentContext.booleanDetermines whether a value is stored with the specified key.booleanhidden()hidden(boolean hidden) Retrieves the identifier associated with this component.onClose(CloseHandler<Tab> closeHandler) selected()<T> TabStores a value associated with a key.static Tabstatic Tabstatic <E extends HTMLElement>
Tabtab(HTMLContainerBuilder<E> builder, String identifier, String text) tabs()Returns the enclosingTabscomponent.that()Methods inherited from class SubComponent
element, registerSubComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentContext
get, getMethods inherited from interface ComponentIcon
iconMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface ElementTextDelegate
text, textMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface Modifiers.Disabled
disabled, isDisabled
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
tab
-
tab
-
tab
public static <E extends HTMLElement> Tab tab(HTMLContainerBuilder<E> builder, String identifier, String text) -
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement, Tab>
-
addContent
-
add
-
addContent
-
add
-
closeable
-
closeable
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement, Tab>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement, Tab>
-
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, Tab>
-
ariaDisabled
-
ariaDisabled
-
href
-
help
-
selected
-
tooltip
-
store
Description copied from interface:ComponentContextStores a value associated with a key.- Specified by:
storein interfaceComponentContext<HTMLElement, Tab>- Type Parameters:
T- the type of the value being stored- Parameters:
key- the key associated with the valuevalue- the value to be stored
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, Tab>
-
ariaLabel
-
ariaCloseLabel
-
ariaHelpLabel
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLElement, Tab>
-
close
- Specified by:
closein interfaceCloseable<HTMLElement, Tab>
-
tabs
-
identifier
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<HTMLElement, Tab>- Returns:
- the identifier of the component
-
has
Description copied from interface:ComponentContextDetermines whether a value is stored with the specified key.- Specified by:
hasin interfaceComponentContext<HTMLElement, Tab>- Parameters:
key- the key to check- Returns:
- true if a value is stored with the specified key, false otherwise
-
get
Description copied from interface:ComponentContextRetrieves the value associated with the given key from the ComponentContext.- Specified by:
getin interfaceComponentContext<HTMLElement, Tab>- Type Parameters:
T- the type of the value being retrieved- Parameters:
key- the key associated with the value- Returns:
- the value associated with the key, or null if no value is found
-