Package io.jmix.tabbedmode
Class Views.ViewStack
java.lang.Object
io.jmix.tabbedmode.Views.ViewStack
- Enclosing class:
- Views
A class representing views of a tab.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TabbedViewsContainer<?>protected final ViewContainer -
Constructor Summary
ConstructorsConstructorDescriptionViewStack(TabbedViewsContainer<?> tabbedContainer, ViewContainer viewContainer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanclose()Closes all views of thisViews.ViewStackreturned bygetBreadcrumbs().booleanclose(boolean selectBeforeClose) Closes all views of thisViews.ViewStackreturned bygetBreadcrumbs().Collection<View<?>>Returns a collection ofViewstack in descending order, the first element is an active view.booleanWhether a tab displaying thisViews.ViewStackis active.voidselect()Makes a tab displaying thisViews.ViewStackactive.
-
Field Details
-
tabbedContainer
-
viewContainer
-
-
Constructor Details
-
ViewStack
-
-
Method Details
-
getBreadcrumbs
Returns a collection ofViewstack in descending order, the first element is an active view.- Returns:
- a collection of
Viewstack representing the current breadcrumbs, or an empty collection if no breadcrumbs are available.
-
isSelected
public boolean isSelected()Whether a tab displaying thisViews.ViewStackis active.- Returns:
- {code true} if a tab displaying this
Views.ViewStacki s active,falseotherwise
-
select
public void select()Makes a tab displaying thisViews.ViewStackactive. -
close
public boolean close()Closes all views of thisViews.ViewStackreturned bygetBreadcrumbs().Note that a tab representing a view stack is not selected before closing.
- Returns:
trueif all views have been closed,falseotherwise- See Also:
-
close
public boolean close(boolean selectBeforeClose) Closes all views of thisViews.ViewStackreturned bygetBreadcrumbs().- Parameters:
selectBeforeClose- whether a tab representing a view stack should be selected before closing- Returns:
trueif all views have been closed,falseotherwise- See Also:
-
checkAttached
protected void checkAttached()
-