@StudioFacet(xmlElement="presentations", caption="Presentations", category="Facets", description="Provides the ability to apply and save presentations for components", defaultProperty="auto", icon="io/jmix/ui/icon/facet/presentations.svg") public interface PresentationsFacet extends Facet
Modifier and Type | Method and Description |
---|---|
void |
addComponentIds(java.lang.String... ids)
Adds component ids that should be handled when
isAuto() returns false. |
java.util.Set<java.lang.String> |
getComponentIds() |
java.util.Collection<Component> |
getComponents()
Collection depends on
isAuto() property. |
boolean |
isAuto() |
void |
setAuto(boolean auto)
Set to true if facet should apply and save presentations for all supported component in the screen.
|
boolean isAuto()
@StudioProperty(defaultValue="false", initialValue="true") void setAuto(boolean auto)
auto
- whether facet should include all components for applying/saving presentationsvoid addComponentIds(java.lang.String... ids)
isAuto()
returns false.
Note, component must be attached to the Window, otherwise it will be ignored.
ids
- component idsjava.util.Set<java.lang.String> getComponentIds()
isAuto()
returns false.java.util.Collection<Component> getComponents()
isAuto()
property. If isAuto()
returns true collection will be
filled by Window
's components, otherwise collection will be filled by components were added by
addComponentIds(String...)
.