E - entity typepublic interface EntityAwareScreenFacet<E extends Entity>
EditorScreenFacet,
LookupScreenFacet| Modifier and Type | Method and Description |
|---|---|
CollectionContainer<E> |
getContainer() |
java.lang.Class<E> |
getEntityClass() |
ListComponent<E> |
getListComponent() |
PickerField<E> |
getPickerField() |
void |
setContainer(CollectionContainer<E> container)
Sets
CollectionContainer. |
void |
setEntityClass(java.lang.Class<E> entityClass)
Sets entity class.
|
void |
setListComponent(ListComponent<E> listComponent)
Sets list component.
|
void |
setPickerField(PickerField<E> pickerField)
Sets the
PickerField component. |
@StudioProperty(type=ENTITY_CLASS, typeParameter="E") void setEntityClass(java.lang.Class<E> entityClass)
entityClass - entity classjava.lang.Class<E> getEntityClass()
@StudioProperty(type=COMPONENT_REF, typeParameter="E", options="com.haulmont.cuba.gui.components.ListComponent") void setListComponent(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.
ListComponent<E> getListComponent()
@StudioProperty(name="field", type=COMPONENT_REF, typeParameter="E", options="com.haulmont.cuba.gui.components.PickerField") void setPickerField(PickerField<E> pickerField)
PickerField component.
If the field is set, the framework sets the committed entity to the field after successful editor commit.
PickerField<E> getPickerField()
PickerField@StudioProperty(type=COLLECTION_DATACONTAINER_REF, typeParameter="E") void setContainer(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.
CollectionContainer<E> getContainer()
CollectionContainer