Package io.jmix.flowui.sys
Class ScreenSupport
java.lang.Object
io.jmix.flowui.sys.ScreenSupport
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected UiControllerDependencyManagerprotected ScreenNavigationSupportprotected ScreenRegistryprotected ScreenXmlLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected ComponentLoaderContextprotected Optional<com.vaadin.flow.router.RouteData>findRouteData(Class<?> target, List<com.vaadin.flow.router.RouteData> routes) protected voidfireScreenInitEvent(Screen<?> screen) protected StringgetInferredScreenId(Screen<?> screen) getLocalizedPageTitle(Screen<?> screen) Gets localized page title from the screen.protected booleanhasBackNavigationTarget(com.vaadin.flow.component.UI ui, Class<? extends Screen> screenClass) voidinitScreen(Screen<?> screen) loadMessageGroup(org.dom4j.Element element) protected org.dom4j.ElementloadScreenXml(ScreenInfo screenInfo) protected voidloadWindowFromXml(org.dom4j.Element element, Screen<?> screen, ComponentLoaderContext context) protected voidnavigateToBackTarget(com.vaadin.flow.component.UI ui, Screen<?> screen) protected voidnavigateToBackTarget(com.vaadin.flow.server.VaadinSession session, String windowName, Screen<?> screen) protected voidnavigateToParentLayout(Screen<?> screen) voidregisterBackNavigation(com.vaadin.flow.component.UI ui, Class<? extends Screen> screenClass, Class<? extends Screen> backNavigationTarget) protected voidregisterBackNavigation(com.vaadin.flow.server.VaadinSession session, String windowName, Class<? extends Screen> screenClass, Class<? extends Screen> backNavigationTarget) voidregisterBackNavigation(Class<? extends Screen> screenClass, Class<? extends Screen> backNavigationTarget) protected voidretrieveExtendedClientDetails(com.vaadin.flow.component.UI ui, Consumer<com.vaadin.flow.component.page.ExtendedClientDetails> details) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDependencyManager(UiControllerDependencyManager dependencyManager) voidsetNavigationSupport(ScreenNavigationSupport navigationSupport) voidsetScreenRegistry(ScreenRegistry screenRegistry) voidsetScreenXmlLoader(ScreenXmlLoader screenXmlLoader) voidunregisterBackNavigation(com.vaadin.flow.component.UI ui, Class<? extends Screen> screenClass) protected voidunregisterBackNavigation(com.vaadin.flow.server.VaadinSession session, String windowName) voidunregisterBackNavigation(Screen<?> screen) voidunregisterBackNavigation(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:
-
PageTitleHasDynamicTitle
-
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)
-