E
- entity typepublic interface EntityAwareScreenFacet<E>
EditorScreenFacet
,
LookupScreenFacet
Modifier and Type | Method and Description |
---|---|
CollectionContainer<E> |
getContainer() |
java.lang.Class<E> |
getEntityClass() |
EntityPicker<E> |
getEntityPicker() |
ListComponent<E> |
getListComponent() |
void |
setContainer(CollectionContainer<E> container)
Sets
CollectionContainer . |
void |
setEntityClass(java.lang.Class<E> entityClass)
Sets entity class.
|
void |
setEntityPicker(EntityPicker<E> entityPicker)
Sets the
EntityPicker component. |
void |
setListComponent(ListComponent<E> listComponent)
Sets list component.
|
@StudioProperty(type=ENTITY_CLASS, typeParameter="E") void setEntityClass(@Nullable java.lang.Class<E> entityClass)
entityClass
- entity class@Nullable java.lang.Class<E> getEntityClass()
@StudioProperty(type=COMPONENT_REF, typeParameter="E", options="io.jmix.ui.component.ListComponent") void setListComponent(@Nullable ListComponent<E> listComponent)
The component is used to get the container
if it is not set explicitly by
setContainer(CollectionContainer)
method.
Usually, the list component is a Table
or DataGrid
displaying the list of entities.
@Nullable ListComponent<E> getListComponent()
@StudioProperty(name="field", type=COMPONENT_REF, typeParameter="E", options="io.jmix.ui.component.EntityPicker") void setEntityPicker(@Nullable EntityPicker<E> entityPicker)
EntityPicker
component.
If the field is set, the framework sets the committed entity to the field after successful editor commit.
@Nullable EntityPicker<E> getEntityPicker()
EntityPicker
@StudioProperty(type=COLLECTION_DATACONTAINER_REF, typeParameter="E") void setContainer(@Nullable CollectionContainer<E> container)
CollectionContainer
.
The container is updated after the screen is committed. If the container is Nested
,
the framework automatically initializes the reference to the parent entity and sets up data contexts
for editing compositions.
@Nullable CollectionContainer<E> getContainer()
CollectionContainer