Package io.jmix.flowui.sys
Class ViewSupport
java.lang.Object
io.jmix.flowui.sys.ViewSupport
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected CurrentAuthenticationprotected ViewControllerDependencyManagerprotected io.micrometer.core.instrument.MeterRegistryprotected ViewNavigationSupportprotected RouteSupportprotected ViewRegistryprotected ViewXmlLoader - 
Constructor Summary
ConstructorsConstructorDescriptionViewSupport(org.springframework.context.ApplicationContext applicationContext, ViewXmlLoader viewXmlLoader, ViewRegistry viewRegistry, ViewNavigationSupport navigationSupport, CurrentAuthentication currentAuthentication, ViewControllerDependencyManager dependencyManager, RouteSupport routeSupport, io.micrometer.core.instrument.MeterRegistry meterRegistry)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidcacheTitle(String key, String value) voidvoidclose(com.vaadin.flow.component.UI ui, View<?> view, com.vaadin.flow.router.QueryParameters returnParams) voidvoidprotected ComponentLoaderContextprotected voiddoBackwardNavigation(com.vaadin.flow.component.UI ui, View<?> view, com.vaadin.flow.router.QueryParameters returnParams) protected voiddoBackwardNavigation(com.vaadin.flow.component.UI ui, String windowName, View<?> view, com.vaadin.flow.router.QueryParameters returnParams) protected Optional<com.vaadin.flow.router.RouteData>findRouteData(Class<?> target, List<com.vaadin.flow.router.RouteData> routes) protected voidfireViewInitEvent(View<?> view) protected StringgetInferredViewId(View<?> view) getLocalizedTitle(View<?> view) Gets localized title for the view.getLocalizedTitle(View<?> view, boolean cached) Gets localized title for the view.getLocalizedTitle(View<?> view, Locale locale) Gets localized title for the view.getLocalizedTitle(View<?> view, Locale locale, boolean cached) Gets localized title for the view.getLocalizedTitle(ViewInfo viewInfo) Gets localized title for the view info.getLocalizedTitle(ViewInfo viewInfo, boolean cached) Gets localized title for the view info.getLocalizedTitle(ViewInfo viewInfo, Locale locale) Gets localized title for the view info.getLocalizedTitle(ViewInfo viewInfo, Locale locale, boolean cached) Gets localized title for the view info.protected StringgetTitleCacheKey(String id, Locale locale) protected StringgetViewMessageGroup(ViewInfo viewInfo) protected StringgetViewTitleValue(ViewInfo viewInfo) protected booleanhasBackwardNavigationTarget(com.vaadin.flow.component.UI ui, Class<? extends View> viewClass) voidloadMessageGroup(org.dom4j.Element element) protected org.dom4j.ElementloadViewXml(ViewInfo viewInfo) protected voidloadWindowFromXml(org.dom4j.Element element, View<?> view, ComponentLoaderContext context) voidnavigateToParentLayout(View<?> view, com.vaadin.flow.router.QueryParameters returnParams) voidregisterBackwardNavigation(com.vaadin.flow.component.UI ui, Class<? extends View> viewClass, URL url) protected voidregisterBackwardNavigation(com.vaadin.flow.server.VaadinSession session, String windowName, Class<? extends View> viewClass, URL url) voidregisterBackwardNavigation(Class<? extends View> viewClass, URL url) protected voidretrieveExtendedClientDetails(com.vaadin.flow.component.UI ui, Consumer<com.vaadin.flow.component.page.ExtendedClientDetails> details) voidunregisterBackwardNavigation(com.vaadin.flow.component.UI ui, Class<? extends View> viewClass) protected voidunregisterBackwardNavigation(com.vaadin.flow.server.VaadinSession session, String windowName) voidunregisterBackwardNavigation(View<?> view) voidunregisterBackwardNavigation(Class<? extends View> viewClass)  
- 
Field Details
- 
applicationContext
protected org.springframework.context.ApplicationContext applicationContext - 
viewXmlLoader
 - 
viewRegistry
 - 
currentAuthentication
 - 
dependencyManager
 - 
routeSupport
 - 
meterRegistry
protected io.micrometer.core.instrument.MeterRegistry meterRegistry - 
titleCache
 
 - 
 - 
Constructor Details
 - 
Method Details
- 
initView
 - 
getLocalizedTitle
Gets localized title for the view.- Parameters:
 view- view to get localized title for- Returns:
 - localized page title or empty string. If possible, returns cached value.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view.- Parameters:
 view- view to get localized title forcached- whether to use the cached value- Returns:
 - localized page title or empty string.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view.- Parameters:
 view- view to get localized title forlocale- the locale to get the title for- Returns:
 - localized page title or empty string. If possible, returns cached value.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view.- Parameters:
 view- view to get localized title forlocale- the locale to get the title forcached- whether to use the cached value- Returns:
 - localized page title or empty string.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view info.- Parameters:
 viewInfo- view info to get localized title for- Returns:
 - localized page title or empty string. If possible, returns cached value.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view info.- Parameters:
 viewInfo- view info to get localized title forcached- whether to use the cached value- Returns:
 - localized page title or empty string.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view info.- Parameters:
 viewInfo- view info to get localized title forlocale- the locale to get the title for- Returns:
 - localized page title or empty string. If possible, returns cached value.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
getLocalizedTitle
Gets localized title for the view info.- Parameters:
 viewInfo- view info to get the localized title forlocale- the locale to get the title forcached- whether to use the cached value- Returns:
 - localized page title or empty string.
 - See Also:
 - 
PageTitleHasDynamicTitle
 
 - 
close
 - 
close
 - 
close
 - 
close
public void close(com.vaadin.flow.component.UI ui, View<?> view, com.vaadin.flow.router.QueryParameters returnParams)  - 
findRouteData
 - 
retrieveExtendedClientDetails
protected void retrieveExtendedClientDetails(com.vaadin.flow.component.UI ui, Consumer<com.vaadin.flow.component.page.ExtendedClientDetails> details)  - 
getInferredViewId
 - 
fireViewInitEvent
 - 
loadViewXml
 - 
loadMessageGroup
 - 
createComponentLoaderContext
 - 
loadWindowFromXml
protected void loadWindowFromXml(org.dom4j.Element element, View<?> view, ComponentLoaderContext context)  - 
getViewTitleValue
 - 
getViewMessageGroup
 - 
getTitleCacheKey
 - 
cacheTitle
 
 -