Package io.jmix.ui.settings.facet
Class ScreenSettingsFacetResolver
java.lang.Object
io.jmix.ui.settings.facet.ScreenSettingsFacetResolver
@Component("ui_ScreenSettingsFacetResolver")
public class ScreenSettingsFacetResolver
extends Object
Class that manages the right order of working
ScreenSettingsFacet
and PresentationsFacet
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface forScreen.AfterShowEvent
handler.static interface
Interface for postScreen.AfterShowEvent
handler. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<Component>
getManagedComponents
(Collection<PresentationsFacet> facets, Collection<Component> lazyTabComponents) void
Resolves applying settings and presentations onScreen.AfterShowEvent
.void
resolveLazyTabSelectEvent
(Window window, Component source, Collection<Component> components) Resolves applying settings and presentations for components in a lazy tab e.g.
-
Field Details
-
presentationsManager
-
-
Constructor Details
-
ScreenSettingsFacetResolver
public ScreenSettingsFacetResolver(@Autowired(required=false) PresentationsManager presentationsManager)
-
-
Method Details
-
resolveAfterShowEvent
Resolves applying settings and presentations onScreen.AfterShowEvent
.- Parameters:
event
- after show event
-
resolveLazyTabSelectEvent
public void resolveLazyTabSelectEvent(Window window, Component source, Collection<Component> components) Resolves applying settings and presentations for components in a lazy tab e.g.TabSheet
orAccordion
.- Parameters:
window
- screen windowsource
- component sourcecomponents
- tab content
-
getManagedComponents
protected Collection<Component> getManagedComponents(Collection<PresentationsFacet> facets, Collection<Component> lazyTabComponents)
-