protected static class CubaManagedTabSheet.TabSheetBehaviourImpl extends java.lang.Object implements TabSheetBehaviour
Modifier and Type | Field and Description |
---|---|
protected CubaManagedTabSheet |
tabSheet |
Constructor and Description |
---|
TabSheetBehaviourImpl(CubaManagedTabSheet tabSheet) |
Modifier and Type | Method and Description |
---|---|
void |
addTab(com.vaadin.ui.Component component,
java.lang.String tabId) |
void |
closeAllTabs() |
void |
closeOtherTabs(com.vaadin.ui.Component target) |
void |
closeTab(com.vaadin.ui.Component target) |
void |
focus() |
int |
getComponentCount() |
com.vaadin.ui.Component |
getPreviousTab(com.vaadin.ui.Component tab) |
com.vaadin.ui.Component |
getSelectedTab() |
java.lang.String |
getTab(com.vaadin.ui.Component component) |
java.lang.String |
getTab(int position) |
com.vaadin.ui.Component |
getTabComponent(java.lang.String tabId) |
java.util.Iterator<com.vaadin.ui.Component> |
getTabComponents() |
java.util.stream.Stream<com.vaadin.ui.Component> |
getTabComponentsStream() |
protected CubaManagedTabSheet.Tab |
getTabNN(java.lang.String tabId) |
int |
getTabPosition(java.lang.String tabId) |
void |
moveTab(com.vaadin.ui.Component c,
int position) |
void |
removeComponent(com.vaadin.ui.Component component) |
void |
replaceComponent(com.vaadin.ui.Component oldComponent,
com.vaadin.ui.Component newComponent) |
void |
setContentSwitchMode(java.lang.String tabId,
ContentSwitchMode contentSwitchMode) |
void |
setSelectedTab(com.vaadin.ui.Component component) |
void |
setSelectedTab(java.lang.String tabId) |
void |
setTabCaption(java.lang.String tabId,
java.lang.String caption) |
void |
setTabClosable(java.lang.String tabId,
boolean closable) |
void |
setTabCloseHandler(com.vaadin.ui.Component tabContent,
java.util.function.BiConsumer<HasTabSheetBehaviour,com.vaadin.ui.Component> closeHandler) |
void |
setTabCubaId(java.lang.String tabId,
java.lang.String id) |
void |
setTabDescription(java.lang.String tabId,
java.lang.String description) |
void |
setTabIcon(java.lang.String tabId,
com.vaadin.server.Resource icon) |
void |
setTabTestId(java.lang.String tabId,
java.lang.String testId) |
void |
silentCloseTabAndSelectPrevious(com.vaadin.ui.Component tab) |
protected final CubaManagedTabSheet tabSheet
public TabSheetBehaviourImpl(CubaManagedTabSheet tabSheet)
public void setTabCaption(java.lang.String tabId, java.lang.String caption)
setTabCaption
in interface TabSheetBehaviour
protected CubaManagedTabSheet.Tab getTabNN(java.lang.String tabId)
public void setTabDescription(java.lang.String tabId, java.lang.String description)
setTabDescription
in interface TabSheetBehaviour
public com.vaadin.ui.Component getTabComponent(java.lang.String tabId)
getTabComponent
in interface TabSheetBehaviour
public void setTabIcon(java.lang.String tabId, com.vaadin.server.Resource icon)
setTabIcon
in interface TabSheetBehaviour
public void setTabClosable(java.lang.String tabId, boolean closable)
setTabClosable
in interface TabSheetBehaviour
public void setContentSwitchMode(java.lang.String tabId, ContentSwitchMode contentSwitchMode)
setContentSwitchMode
in interface TabSheetBehaviour
public void setSelectedTab(java.lang.String tabId)
setSelectedTab
in interface TabSheetBehaviour
public void addTab(com.vaadin.ui.Component component, java.lang.String tabId)
addTab
in interface TabSheetBehaviour
public java.lang.String getTab(com.vaadin.ui.Component component)
getTab
in interface TabSheetBehaviour
public void closeTab(com.vaadin.ui.Component target)
closeTab
in interface TabSheetBehaviour
public void closeOtherTabs(com.vaadin.ui.Component target)
closeOtherTabs
in interface TabSheetBehaviour
public void closeAllTabs()
closeAllTabs
in interface TabSheetBehaviour
public java.lang.String getTab(int position)
getTab
in interface TabSheetBehaviour
public com.vaadin.ui.Component getSelectedTab()
getSelectedTab
in interface TabSheetBehaviour
public java.util.Iterator<com.vaadin.ui.Component> getTabComponents()
getTabComponents
in interface TabSheetBehaviour
public java.util.stream.Stream<com.vaadin.ui.Component> getTabComponentsStream()
getTabComponentsStream
in interface TabSheetBehaviour
public void setSelectedTab(com.vaadin.ui.Component component)
setSelectedTab
in interface TabSheetBehaviour
public void replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent)
replaceComponent
in interface TabSheetBehaviour
public void removeComponent(com.vaadin.ui.Component component)
removeComponent
in interface TabSheetBehaviour
public com.vaadin.ui.Component getPreviousTab(com.vaadin.ui.Component tab)
getPreviousTab
in interface TabSheetBehaviour
public void setTabTestId(java.lang.String tabId, java.lang.String testId)
setTabTestId
in interface TabSheetBehaviour
public void setTabCubaId(java.lang.String tabId, java.lang.String id)
setTabCubaId
in interface TabSheetBehaviour
public void setTabCloseHandler(com.vaadin.ui.Component tabContent, java.util.function.BiConsumer<HasTabSheetBehaviour,com.vaadin.ui.Component> closeHandler)
setTabCloseHandler
in interface TabSheetBehaviour
public int getTabPosition(java.lang.String tabId)
getTabPosition
in interface TabSheetBehaviour
public int getComponentCount()
getComponentCount
in interface TabSheetBehaviour
public void moveTab(com.vaadin.ui.Component c, int position)
moveTab
in interface TabSheetBehaviour
public void focus()
focus
in interface TabSheetBehaviour
public void silentCloseTabAndSelectPrevious(com.vaadin.ui.Component tab)
silentCloseTabAndSelectPrevious
in interface TabSheetBehaviour