Package io.jmix.flowui.screen
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.shared.RegistrationaddAfterCloseListener(com.vaadin.flow.component.ComponentEventListener<Screen.AfterCloseEvent> listener) protected com.vaadin.flow.shared.RegistrationaddAfterShowListener(com.vaadin.flow.component.ComponentEventListener<Screen.AfterShowEvent> listener) protected com.vaadin.flow.shared.RegistrationaddBeforeCloseListener(com.vaadin.flow.component.ComponentEventListener<Screen.BeforeCloseEvent> listener) protected com.vaadin.flow.shared.RegistrationaddBeforeShowListener(com.vaadin.flow.component.ComponentEventListener<Screen.BeforeShowEvent> listener) protected com.vaadin.flow.shared.RegistrationaddInitListener(com.vaadin.flow.component.ComponentEventListener<Screen.InitEvent> listener) AddsScreen.InitEventlistener.voidafterNavigation(com.vaadin.flow.router.AfterNavigationEvent event) voidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) voidbeforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event) close(CloseAction closeAction) close(StandardOutcome outcome) protected org.springframework.context.ApplicationContextgetId()protected ScreenActionsprotected ScreenDataprotected ScreenFacetsprotected voidprotected voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidprotected voidsetScreenActions(ScreenActions screenActions) protected voidsetScreenData(ScreenData screenData) protected voidsetScreenFacets(ScreenFacets screenFacets) protected voidprotected voidMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getEventBus, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Constructor Details
-
Screen
public Screen()
-
-
Method Details
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
@Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
beforeEnter
public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
-
beforeLeave
public void beforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event) - Specified by:
beforeLeavein interfacecom.vaadin.flow.router.internal.BeforeLeaveHandler
-
removeApplicationListeners
protected void removeApplicationListeners() -
closeWithDefaultAction
-
close
-
close
-
getScreenData
-
setScreenData
-
getScreenActions
-
setScreenActions
-
getScreenFacets
-
setScreenFacets
-
updatePageTitle
protected void updatePageTitle() -
setId
- Overrides:
setIdin classcom.vaadin.flow.component.Component
-
getId
- Overrides:
getIdin classcom.vaadin.flow.component.Component
-
addInitListener
protected com.vaadin.flow.shared.Registration addInitListener(com.vaadin.flow.component.ComponentEventListener<Screen.InitEvent> listener) AddsScreen.InitEventlistener.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, notnull- 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)
-