Class StandardTabbedModeMainView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<JmixAppLayout>
io.jmix.tabbedmode.app.main.StandardTabbedModeMainView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, com.vaadin.flow.router.RouterLayout, FragmentOwner, HasWorkArea, Serializable
Direct Known Subclasses:
InitialView

public class StandardTabbedModeMainView extends View<JmixAppLayout> implements HasWorkArea, com.vaadin.flow.router.RouterLayout
Base class for tabbed mode main view.
See Also:
  • Field Details

    • workArea

      protected WorkArea workArea
  • Constructor Details

    • StandardTabbedModeMainView

      public StandardTabbedModeMainView()
  • Method Details

    • getWorkAreaOptional

      public Optional<WorkArea> getWorkAreaOptional()
      Description copied from interface: HasWorkArea
      Returns WorkArea component, if present.
      Specified by:
      getWorkAreaOptional in interface HasWorkArea
      Returns:
      an Optional containing the WorkArea if found; otherwise, an empty Optional
    • setWorkArea

      public void setWorkArea(WorkArea workArea)
      Sets the WorkArea component for the view and updates the content with the specified work area.
      Parameters:
      workArea - the WorkArea instance to set
      Throws:
      IllegalStateException - if the work area has already been initialized
    • onReady

      @Subscribe public void onReady(View.ReadyEvent event)
    • openDefaultView

      protected void openDefaultView()
    • handleRedirect

      protected void handleRedirect()
    • showRouterLayoutContent

      public void showRouterLayoutContent(com.vaadin.flow.component.HasElement content)
      Specified by:
      showRouterLayoutContent in interface com.vaadin.flow.router.RouterLayout
    • removeRouterLayoutContent

      public void removeRouterLayoutContent(com.vaadin.flow.component.HasElement oldContent)
      Specified by:
      removeRouterLayoutContent in interface com.vaadin.flow.router.RouterLayout