Class MainTabSheetUtils
java.lang.Object
io.jmix.tabbedmode.component.tabsheet.MainTabSheetUtils
Utility class working with
MainTabSheet
's specifics.-
Method Summary
Modifier and TypeMethodDescriptionstatic ViewContainer
asViewContainer
(com.vaadin.flow.component.Component component) Converts the givenComponent
to aViewContainer
.findViewFromContent
(com.vaadin.flow.component.Component component) Attempts to find and return aView
associated with the provided tab content.static View<?>
getViewFromContent
(com.vaadin.flow.component.Component component) Returns theView
associated with the provided tab content.
-
Method Details
-
asViewContainer
Converts the givenComponent
to aViewContainer
.- Parameters:
component
- the component to be cast toViewContainer
- Returns:
- the component cast as
ViewContainer
if it is an instance - Throws:
IllegalStateException
- if the provided component is not aViewContainer
-
findViewFromContent
Attempts to find and return aView
associated with the provided tab content. -
getViewFromContent
Returns theView
associated with the provided tab content.- Parameters:
component
- the component from which the associatedView
is to be retrieved- Returns:
- the
View
associated with the provided tab content - Throws:
IllegalStateException
- if noView
is found within the provided component
-