Package io.jmix.flowui.sys
Class ScreenSupport
java.lang.Object
io.jmix.flowui.sys.ScreenSupport
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected UiControllerDependencyManager
protected ScreenNavigationSupport
protected ScreenRegistry
protected ScreenXmlLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected ComponentLoaderContext
protected Optional<com.vaadin.flow.router.RouteData>
findRouteData
(Class<?> target, List<com.vaadin.flow.router.RouteData> routes) protected void
fireScreenInitEvent
(Screen<?> screen) protected String
getInferredScreenId
(Screen<?> screen) getLocalizedPageTitle
(Screen<?> screen) Gets localized page title from the screen.protected boolean
hasBackNavigationTarget
(com.vaadin.flow.component.UI ui, Class<? extends Screen> screenClass) void
initScreen
(Screen<?> screen) loadMessageGroup
(org.dom4j.Element element) protected org.dom4j.Element
loadScreenXml
(ScreenInfo screenInfo) protected void
loadWindowFromXml
(org.dom4j.Element element, Screen<?> screen, ComponentLoaderContext context) protected void
navigateToBackTarget
(com.vaadin.flow.component.UI ui, Screen<?> screen) protected void
navigateToBackTarget
(com.vaadin.flow.server.VaadinSession session, String windowName, Screen<?> screen) protected void
navigateToParentLayout
(Screen<?> screen) void
registerBackNavigation
(com.vaadin.flow.component.UI ui, Class<? extends Screen> screenClass, Class<? extends Screen> backNavigationTarget) protected void
registerBackNavigation
(com.vaadin.flow.server.VaadinSession session, String windowName, Class<? extends Screen> screenClass, Class<? extends Screen> backNavigationTarget) void
registerBackNavigation
(Class<? extends Screen> screenClass, Class<? extends Screen> backNavigationTarget) protected void
retrieveExtendedClientDetails
(com.vaadin.flow.component.UI ui, Consumer<com.vaadin.flow.component.page.ExtendedClientDetails> details) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setDependencyManager
(UiControllerDependencyManager dependencyManager) void
setNavigationSupport
(ScreenNavigationSupport navigationSupport) void
setScreenRegistry
(ScreenRegistry screenRegistry) void
setScreenXmlLoader
(ScreenXmlLoader screenXmlLoader) void
unregisterBackNavigation
(com.vaadin.flow.component.UI ui, Class<? extends Screen> screenClass) protected void
unregisterBackNavigation
(com.vaadin.flow.server.VaadinSession session, String windowName) void
unregisterBackNavigation
(Screen<?> screen) void
unregisterBackNavigation
(Class<? extends Screen> screenClass)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
screenXmlLoader
-
dependencyManager
-
screenRegistry
-
-
Constructor Details
-
ScreenSupport
public ScreenSupport()
-
-
Method Details
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setScreenXmlLoader
-
setDependencyManager
-
setScreenRegistry
-
initScreen
-
getLocalizedPageTitle
Gets localized page title from the screen.- Parameters:
screen
- screen to get localized page title- Returns:
- localized page title or message key if not found or empty string if message key is not defined
- See Also:
-
PageTitle
HasDynamicTitle
-
close
-
close
-
findRouteData
-
retrieveExtendedClientDetails
protected void retrieveExtendedClientDetails(com.vaadin.flow.component.UI ui, Consumer<com.vaadin.flow.component.page.ExtendedClientDetails> details) -
getInferredScreenId
-
fireScreenInitEvent
-
loadScreenXml
-
loadMessageGroup
-
createComponentLoaderContext
-
loadWindowFromXml
protected void loadWindowFromXml(org.dom4j.Element element, Screen<?> screen, ComponentLoaderContext context)
-