Class Screen<T extends com.vaadin.flow.component.Component>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.screen.Screen<T>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, Serializable
Direct Known Subclasses:
StandardMainScreen, StandardScreen

public class Screen<T extends com.vaadin.flow.component.Component> extends com.vaadin.flow.component.Composite<T> implements com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeLeaveObserver
See Also:
  • Constructor Details

    • Screen

      public Screen()
  • Method Details

    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      @Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • afterNavigation

      public void afterNavigation(com.vaadin.flow.router.AfterNavigationEvent event)
      Specified by:
      afterNavigation in interface com.vaadin.flow.router.internal.AfterNavigationHandler
    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
    • beforeLeave

      public void beforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event)
      Specified by:
      beforeLeave in interface com.vaadin.flow.router.internal.BeforeLeaveHandler
    • unregisterBackNavigation

      protected void unregisterBackNavigation()
    • removeApplicationListeners

      protected void removeApplicationListeners()
    • closeWithDefaultAction

      public OperationResult closeWithDefaultAction()
    • close

      public OperationResult close(StandardOutcome outcome)
    • close

      public OperationResult close(CloseAction closeAction)
    • getScreenData

      protected ScreenData getScreenData()
    • setScreenData

      protected void setScreenData(ScreenData screenData)
    • getScreenActions

      protected ScreenActions getScreenActions()
    • setScreenActions

      protected void setScreenActions(ScreenActions screenActions)
    • getScreenFacets

      protected ScreenFacets getScreenFacets()
    • setScreenFacets

      protected void setScreenFacets(ScreenFacets screenFacets)
    • updatePageTitle

      protected void updatePageTitle()
    • setId

      public void setId(String id)
      Overrides:
      setId in class com.vaadin.flow.component.Component
    • getId

      public Optional<String> getId()
      Overrides:
      getId in class com.vaadin.flow.component.Component
    • addInitListener

      protected com.vaadin.flow.shared.Registration addInitListener(com.vaadin.flow.component.ComponentEventListener<Screen.InitEvent> listener)
      Adds Screen.InitEvent listener.

      You can also add an event listener declaratively using a controller method annotated with Subscribe:

          @Subscribe
          public void onInit(InitEvent event) {
             // handle event here
          }
       
      Parameters:
      listener - the listener to add, not null
      Returns:
      a handle that can be used for removing the listener
    • addBeforeShowListener

      protected com.vaadin.flow.shared.Registration addBeforeShowListener(com.vaadin.flow.component.ComponentEventListener<Screen.BeforeShowEvent> listener)
    • addAfterShowListener

      protected com.vaadin.flow.shared.Registration addAfterShowListener(com.vaadin.flow.component.ComponentEventListener<Screen.AfterShowEvent> listener)
    • addBeforeCloseListener

      protected com.vaadin.flow.shared.Registration addBeforeCloseListener(com.vaadin.flow.component.ComponentEventListener<Screen.BeforeCloseEvent> listener)
    • addAfterCloseListener

      protected com.vaadin.flow.shared.Registration addAfterCloseListener(com.vaadin.flow.component.ComponentEventListener<Screen.AfterCloseEvent> listener)