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 void
boolean
close()
Closes all views of thisViews.ViewStack
returned bygetBreadcrumbs()
.boolean
close
(boolean selectBeforeClose) Closes all views of thisViews.ViewStack
returned bygetBreadcrumbs()
.Collection<View<?>>
Returns a collection ofView
stack in descending order, the first element is an active view.boolean
Whether a tab displaying thisViews.ViewStack
is active.void
select()
Makes a tab displaying thisViews.ViewStack
active.
-
Field Details
-
tabbedContainer
-
viewContainer
-
-
Constructor Details
-
ViewStack
-
-
Method Details
-
getBreadcrumbs
Returns a collection ofView
stack in descending order, the first element is an active view.- Returns:
- a collection of
View
stack representing the current breadcrumbs, or an empty collection if no breadcrumbs are available.
-
isSelected
public boolean isSelected()Whether a tab displaying thisViews.ViewStack
is active.- Returns:
- {code true} if a tab displaying this
Views.ViewStack
i s active,false
otherwise
-
select
public void select()Makes a tab displaying thisViews.ViewStack
active. -
close
public boolean close()Closes all views of thisViews.ViewStack
returned bygetBreadcrumbs()
.Note that a tab representing a view stack is not selected before closing.
- Returns:
true
if all views have been closed,false
otherwise- See Also:
-
close
public boolean close(boolean selectBeforeClose) Closes all views of thisViews.ViewStack
returned bygetBreadcrumbs()
.- Parameters:
selectBeforeClose
- whether a tab representing a view stack should be selected before closing- Returns:
true
if all views have been closed,false
otherwise- See Also:
-
checkAttached
protected void checkAttached()
-