Package io.jmix.ui.widget
Class JmixMainTabSheet.TabSheetBehaviourImpl
java.lang.Object
io.jmix.ui.widget.JmixMainTabSheet.TabSheetBehaviourImpl
- All Implemented Interfaces:
TabSheetBehaviour
,Serializable
- Enclosing class:
- JmixMainTabSheet
protected static class JmixMainTabSheet.TabSheetBehaviourImpl
extends Object
implements TabSheetBehaviour
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
closeOtherTabs
(com.vaadin.ui.Component target) void
closeTab
(com.vaadin.ui.Component target) void
focus()
int
com.vaadin.ui.Component
getPreviousTab
(com.vaadin.ui.Component tab) com.vaadin.ui.Component
getTab
(int position) getTab
(com.vaadin.ui.Component component) com.vaadin.ui.Component
getTabComponent
(String tabId) Iterator<com.vaadin.ui.Component>
Stream<com.vaadin.ui.Component>
protected com.vaadin.ui.TabSheet.Tab
int
getTabPosition
(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
(String tabId, ContentSwitchMode contentSwitchMode) void
setSelectedTab
(com.vaadin.ui.Component component) void
setSelectedTab
(String tabId) void
setTabCaption
(String tabId, String caption) void
setTabClosable
(String tabId, boolean closable) void
setTabCloseHandler
(com.vaadin.ui.Component tabContent, BiConsumer<HasTabSheetBehaviour, com.vaadin.ui.Component> closeHandler) void
setTabDescription
(String tabId, String description) void
setTabIcon
(String tabId, com.vaadin.server.Resource icon) void
setTabJmixId
(String tabId, String id) void
setTabTestId
(String tabId, String testId) void
silentCloseTabAndSelectPrevious
(com.vaadin.ui.Component tab)
-
Field Details
-
tabSheet
-
-
Constructor Details
-
TabSheetBehaviourImpl
-
-
Method Details
-
setTabCaption
- Specified by:
setTabCaption
in interfaceTabSheetBehaviour
-
setTabDescription
- Specified by:
setTabDescription
in interfaceTabSheetBehaviour
-
closeTab
public void closeTab(com.vaadin.ui.Component target) - Specified by:
closeTab
in interfaceTabSheetBehaviour
-
closeOtherTabs
public void closeOtherTabs(com.vaadin.ui.Component target) - Specified by:
closeOtherTabs
in interfaceTabSheetBehaviour
-
closeAllTabs
public void closeAllTabs()- Specified by:
closeAllTabs
in interfaceTabSheetBehaviour
-
getTabComponent
- Specified by:
getTabComponent
in interfaceTabSheetBehaviour
-
setTabIcon
- Specified by:
setTabIcon
in interfaceTabSheetBehaviour
-
setTabClosable
- Specified by:
setTabClosable
in interfaceTabSheetBehaviour
-
getTabNN
-
setContentSwitchMode
- Specified by:
setContentSwitchMode
in interfaceTabSheetBehaviour
-
setSelectedTab
- Specified by:
setSelectedTab
in interfaceTabSheetBehaviour
-
addTab
- Specified by:
addTab
in interfaceTabSheetBehaviour
-
getTab
- Specified by:
getTab
in interfaceTabSheetBehaviour
-
getTab
- Specified by:
getTab
in interfaceTabSheetBehaviour
-
getSelectedTab
@Nullable public com.vaadin.ui.Component getSelectedTab()- Specified by:
getSelectedTab
in interfaceTabSheetBehaviour
-
getTabComponents
- Specified by:
getTabComponents
in interfaceTabSheetBehaviour
-
getTabComponentsStream
- Specified by:
getTabComponentsStream
in interfaceTabSheetBehaviour
-
setSelectedTab
public void setSelectedTab(com.vaadin.ui.Component component) - Specified by:
setSelectedTab
in interfaceTabSheetBehaviour
-
replaceComponent
public void replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent) - Specified by:
replaceComponent
in interfaceTabSheetBehaviour
-
removeComponent
public void removeComponent(com.vaadin.ui.Component component) - Specified by:
removeComponent
in interfaceTabSheetBehaviour
-
getPreviousTab
@Nullable public com.vaadin.ui.Component getPreviousTab(com.vaadin.ui.Component tab) - Specified by:
getPreviousTab
in interfaceTabSheetBehaviour
-
setTabTestId
- Specified by:
setTabTestId
in interfaceTabSheetBehaviour
-
setTabJmixId
- Specified by:
setTabJmixId
in interfaceTabSheetBehaviour
-
setTabCloseHandler
public void setTabCloseHandler(com.vaadin.ui.Component tabContent, BiConsumer<HasTabSheetBehaviour, com.vaadin.ui.Component> closeHandler) - Specified by:
setTabCloseHandler
in interfaceTabSheetBehaviour
-
getTabPosition
- Specified by:
getTabPosition
in interfaceTabSheetBehaviour
-
getComponentCount
public int getComponentCount()- Specified by:
getComponentCount
in interfaceTabSheetBehaviour
-
moveTab
public void moveTab(com.vaadin.ui.Component c, int position) - Specified by:
moveTab
in interfaceTabSheetBehaviour
-
focus
public void focus()- Specified by:
focus
in interfaceTabSheetBehaviour
-
silentCloseTabAndSelectPrevious
public void silentCloseTabAndSelectPrevious(com.vaadin.ui.Component tab) - Specified by:
silentCloseTabAndSelectPrevious
in interfaceTabSheetBehaviour
-