Class Views.ViewStack

java.lang.Object
io.jmix.tabbedmode.Views.ViewStack
Enclosing class:
Views

public static class Views.ViewStack extends Object
A class representing views of a tab.
  • Field Details

  • Constructor Details

  • Method Details

    • getBreadcrumbs

      public Collection<View<?>> getBreadcrumbs()
      Returns a collection of View 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 this Views.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 this Views.ViewStack active.
    • close

      public boolean close()
      Closes all views of this Views.ViewStack returned by getBreadcrumbs().

      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 this Views.ViewStack returned by getBreadcrumbs().
      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()