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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.shared.Registration
addAfterCloseListener
(com.vaadin.flow.component.ComponentEventListener<Screen.AfterCloseEvent> listener) protected com.vaadin.flow.shared.Registration
addAfterShowListener
(com.vaadin.flow.component.ComponentEventListener<Screen.AfterShowEvent> listener) protected com.vaadin.flow.shared.Registration
addBeforeCloseListener
(com.vaadin.flow.component.ComponentEventListener<Screen.BeforeCloseEvent> listener) protected com.vaadin.flow.shared.Registration
addBeforeShowListener
(com.vaadin.flow.component.ComponentEventListener<Screen.BeforeShowEvent> listener) protected com.vaadin.flow.shared.Registration
addInitListener
(com.vaadin.flow.component.ComponentEventListener<Screen.InitEvent> listener) AddsScreen.InitEvent
listener.void
afterNavigation
(com.vaadin.flow.router.AfterNavigationEvent event) void
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent event) void
beforeLeave
(com.vaadin.flow.router.BeforeLeaveEvent event) close
(CloseAction closeAction) close
(StandardOutcome outcome) protected org.springframework.context.ApplicationContext
getId()
protected ScreenActions
protected ScreenData
protected ScreenFacets
protected void
protected void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
protected void
setScreenActions
(ScreenActions screenActions) protected void
setScreenData
(ScreenData screenData) protected void
setScreenFacets
(ScreenFacets screenFacets) protected void
protected void
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContent
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods 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:
beforeEnter
in interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
-
beforeLeave
public void beforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event) - Specified by:
beforeLeave
in 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:
setId
in classcom.vaadin.flow.component.Component
-
getId
- Overrides:
getId
in classcom.vaadin.flow.component.Component
-
addInitListener
protected com.vaadin.flow.shared.Registration addInitListener(com.vaadin.flow.component.ComponentEventListener<Screen.InitEvent> listener) AddsScreen.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, 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)
-