public class VerticalTab extends WavesElement<elemental2.dom.HTMLDivElement,VerticalTab> implements HasClickableElement
VerticalTabsPanel| Modifier and Type | Class and Description |
|---|---|
static interface |
VerticalTab.ActivationHandler
A function to handle tab activation/deactivation
|
BaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerwavesSupport| Constructor and Description |
|---|
VerticalTab(BaseIcon<?> icon) |
VerticalTab(String title) |
VerticalTab(String title,
BaseIcon<?> icon) |
| Modifier and Type | Method and Description |
|---|---|
VerticalTab |
activate()
make the tab active and show its content in the TabsPanel
|
VerticalTab |
addActivationHandler(VerticalTab.ActivationHandler activationHandler) |
VerticalTab |
appendChild(org.jboss.elemento.IsElement<?> content) |
VerticalTab |
appendChild(elemental2.dom.Node content) |
static VerticalTab |
create(BaseIcon<?> icon) |
static VerticalTab |
create(String title) |
static VerticalTab |
create(String title,
BaseIcon<?> icon) |
VerticalTab |
deactivate()
make the tab inactive and hide its content in the TabsPanel
|
elemental2.dom.HTMLDivElement |
element() |
elemental2.dom.HTMLAnchorElement |
getClickableElement()
by default this return the same component root element
|
DominoElement<elemental2.dom.HTMLDivElement> |
getContentContainer() |
String |
getTitle() |
DominoElement<elemental2.dom.HTMLElement> |
getTitleElement() |
elemental2.dom.HTMLElement |
getWavesElement() |
boolean |
isActive() |
VerticalTab |
removeActivationHandler(VerticalTab.ActivationHandler activationHandler) |
VerticalTab |
resetColor()
Restores the tab color to the default
|
VerticalTab |
setColor(Color color) |
VerticalTab |
setIcon(BaseIcon<?> icon) |
VerticalTab |
setIconColor(Color iconColor) |
VerticalTab |
setIconColorOverride(Color iconColor)
Override the tab icon color and prevent it from changing with
setIconColor(Color) |
VerticalTab |
setTextColor(Color textColor) |
VerticalTab |
setTextColorOverride(Color textColor)
Override the tab title text color and prevent it from changing with
setTextColor(Color) |
VerticalTab |
setTitle(String title) |
applyWaveStyle, init, initWaves, removeWaves, setWaveColoradd, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, disable, elevate, elevate, enable, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isDisabled, isEmptyElement, isEqualNode, isForceHidden, isHidden, isReadOnly, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setReadOnly, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertypublic VerticalTab(String title, BaseIcon<?> icon)
title - String tab header titleicon - icon BaseIcon for the tab headerpublic VerticalTab(String title)
title - String title for the tabpublic static VerticalTab create(String title)
title - String tab header titlepublic static VerticalTab create(String title, BaseIcon<?> icon)
title - String title for the tab headericon - icon BaseIcon for the tab headerpublic static VerticalTab create(BaseIcon<?> icon)
icon - icon BaseIcon for the tab headerpublic DominoElement<elemental2.dom.HTMLDivElement> getContentContainer()
HTMLDivElement that contains the VerticalTab contentpublic VerticalTab activate()
public VerticalTab deactivate()
public VerticalTab appendChild(elemental2.dom.Node content)
appendChild in interface HasChildren<VerticalTab>appendChild in class BaseDominoElement<elemental2.dom.HTMLDivElement,VerticalTab>content - Node to be appended to the tab contentContainerpublic VerticalTab setTitle(String title)
title - String new tab header titlepublic VerticalTab appendChild(org.jboss.elemento.IsElement<?> content)
appendChild in interface HasChildren<VerticalTab>appendChild in class BaseDominoElement<elemental2.dom.HTMLDivElement,VerticalTab>content - IsElement to be appended to the tab contentContainerpublic elemental2.dom.HTMLAnchorElement getClickableElement()
getClickableElement in interface HasClickableElementgetClickableElement in class BaseDominoElement<elemental2.dom.HTMLDivElement,VerticalTab>HTMLElement that should receive and click listenerspublic VerticalTab setIcon(BaseIcon<?> icon)
icon - the new BaseIcon for the tab headerpublic String getTitle()
public boolean isActive()
public DominoElement<elemental2.dom.HTMLElement> getTitleElement()
HTMLElement that contains the tab header titlepublic elemental2.dom.HTMLElement getWavesElement()
getWavesElement in interface HasWavesElementgetWavesElement in class BaseDominoElement<elemental2.dom.HTMLDivElement,VerticalTab>HTMLElement that has the waves effectpublic elemental2.dom.HTMLDivElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>element in class BaseDominoElement<elemental2.dom.HTMLDivElement,VerticalTab>public VerticalTab setTextColor(Color textColor)
textColor - Color of the tab title textpublic VerticalTab setIconColor(Color iconColor)
iconColor - Color of the tab header iconpublic VerticalTab setTextColorOverride(Color textColor)
setTextColor(Color)textColor - Colorpublic VerticalTab setIconColorOverride(Color iconColor)
setIconColor(Color)iconColor - Colorpublic VerticalTab addActivationHandler(VerticalTab.ActivationHandler activationHandler)
activationHandler - VerticalTab.ActivationHandlerpublic VerticalTab removeActivationHandler(VerticalTab.ActivationHandler activationHandler)
activationHandler - VerticalTab.ActivationHandlerpublic VerticalTab setColor(Color color)
color - Color of the tab headerpublic VerticalTab resetColor()
Copyright © 2019–2022 Dominokit. All rights reserved.