Package io.jmix.flowui.sys
Class ViewSupport
java.lang.Object
io.jmix.flowui.sys.ViewSupport
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected CurrentAuthentication
protected ViewControllerDependencyManager
protected io.micrometer.core.instrument.MeterRegistry
protected ViewNavigationSupport
protected RouteSupport
protected ViewRegistry
protected ViewXmlLoader
-
Constructor Summary
ConstructorDescriptionViewSupport
(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 void
cacheTitle
(String key, String value) void
void
close
(com.vaadin.flow.component.UI ui, View<?> view, com.vaadin.flow.router.QueryParameters returnParams) void
void
protected ComponentLoaderContext
protected void
doBackwardNavigation
(com.vaadin.flow.component.UI ui, View<?> view, com.vaadin.flow.router.QueryParameters returnParams) protected void
doBackwardNavigation
(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 void
fireViewInitEvent
(View<?> view) protected String
getInferredViewId
(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 String
getTitleCacheKey
(String id, Locale locale) protected String
getViewMessageGroup
(ViewInfo viewInfo) protected String
getViewTitleValue
(ViewInfo viewInfo) protected boolean
hasBackwardNavigationTarget
(com.vaadin.flow.component.UI ui, Class<? extends View> viewClass) void
loadMessageGroup
(org.dom4j.Element element) protected org.dom4j.Element
loadViewXml
(ViewInfo viewInfo) protected void
loadWindowFromXml
(org.dom4j.Element element, View<?> view, ComponentLoaderContext context) void
navigateToParentLayout
(View<?> view, com.vaadin.flow.router.QueryParameters returnParams) void
registerBackwardNavigation
(com.vaadin.flow.component.UI ui, Class<? extends View> viewClass, URL url) protected void
registerBackwardNavigation
(com.vaadin.flow.server.VaadinSession session, String windowName, Class<? extends View> viewClass, URL url) void
registerBackwardNavigation
(Class<? extends View> viewClass, URL url) protected void
retrieveExtendedClientDetails
(com.vaadin.flow.component.UI ui, Consumer<com.vaadin.flow.component.page.ExtendedClientDetails> details) void
unregisterBackwardNavigation
(com.vaadin.flow.component.UI ui, Class<? extends View> viewClass) protected void
unregisterBackwardNavigation
(com.vaadin.flow.server.VaadinSession session, String windowName) void
unregisterBackwardNavigation
(View<?> view) void
unregisterBackwardNavigation
(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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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:
-
PageTitle
HasDynamicTitle
-
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
-