Class TabPanel
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.tabpanel.TabPanel
-
- All Implemented Interfaces:
ClientObject,Component
public class TabPanel extends AbstractComponent implements Component
-
-
Field Summary
Fields Modifier and Type Field Description Event<Tab>onTabClosedEvent<Tab>onTabSelected-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTab(Tab tab)voidaddTab(Tab tab, boolean select)voidaddToolButton(ToolButton toolButton)org.teamapps.dto.UiComponentcreateUiComponent()TabgetSelectedTab()LengthgetTabBarHeight()java.util.List<Tab>getTabs()TabPanelTabStylegetTabStyle()java.util.List<ToolButton>getToolButtons()voidhandleUiEvent(org.teamapps.dto.UiEvent event)booleanisFillTabBarWidth()booleanisHideTabBarIfSingleTab()voidremoveTab(Tab tab)voidremoveToolButton(ToolButton toolButton)voidsetFillTabBarWidth(boolean fillTabBarWidth)voidsetHideTabBarIfSingleTab(boolean hideTabBarIfSingleTab)voidsetSelectedTab(Tab tab)voidsetTabBarHeight(Length tabBarHeight)voidsetTabStyle(TabPanelTabStyle tabStyle)voidsetToolButtons(java.util.List<ToolButton> toolButtons)-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, setVisible, toggleCssClass, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.ClientObject
createUiReference, getId, handleUiQuery, isRendered, render, unrender
-
Methods inherited from interface org.teamapps.ux.component.Component
getParent, isVisible, setAriaLabel, setAttribute, setAttribute, setCssStyle, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, setVisible, toggleCssClass, toggleCssClass
-
-
-
-
Constructor Detail
-
TabPanel
public TabPanel()
-
TabPanel
public TabPanel(java.util.List<Tab> tabs)
-
-
Method Detail
-
addTab
public void addTab(Tab tab)
-
addTab
public void addTab(Tab tab, boolean select)
-
removeTab
public void removeTab(Tab tab)
-
setSelectedTab
public void setSelectedTab(Tab tab)
-
getSelectedTab
public Tab getSelectedTab()
-
getTabs
public java.util.List<Tab> getTabs()
-
addToolButton
public void addToolButton(ToolButton toolButton)
-
removeToolButton
public void removeToolButton(ToolButton toolButton)
-
setToolButtons
public void setToolButtons(java.util.List<ToolButton> toolButtons)
-
getToolButtons
public java.util.List<ToolButton> getToolButtons()
-
isHideTabBarIfSingleTab
public boolean isHideTabBarIfSingleTab()
-
setHideTabBarIfSingleTab
public void setHideTabBarIfSingleTab(boolean hideTabBarIfSingleTab)
-
getTabBarHeight
public Length getTabBarHeight()
-
setTabBarHeight
public void setTabBarHeight(Length tabBarHeight)
-
isFillTabBarWidth
public boolean isFillTabBarWidth()
-
setFillTabBarWidth
public void setFillTabBarWidth(boolean fillTabBarWidth)
-
getTabStyle
public TabPanelTabStyle getTabStyle()
-
setTabStyle
public void setTabStyle(TabPanelTabStyle tabStyle)
-
createUiComponent
public org.teamapps.dto.UiComponent createUiComponent()
- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)
- Specified by:
handleUiEventin interfaceClientObject
-
-