public abstract class AbstractEntityAwareScreenFacet<E,S extends Screen> extends AbstractScreenFacet<S> implements EntityAwareScreenFacet<E>
| Modifier and Type | Field and Description |
|---|---|
protected CollectionContainer<E> |
container |
protected java.lang.Class<E> |
entityClass |
protected EntityPicker<E> |
entityPicker |
protected ListComponent<E> |
listComponent |
actionId, afterCloseListeners, afterShowListeners, applicationContext, buttonId, openMode, optionsProvider, properties, screen, screenClass, screenIdid, owner| Constructor and Description |
|---|
AbstractEntityAwareScreenFacet() |
| 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.
|
addAfterCloseEventListener, addAfterShowEventListener, getActionTarget, getButtonTarget, getOpenMode, getOptionsProvider, getProperties, getScreenClass, getScreenId, getScreenOptions, initScreenListeners, injectScreenProperties, internalRemoveAfterCloseEventListener, internalRemoveAfterShowEventListener, setActionTarget, setApplicationContext, setButtonTarget, setOpenMode, setOptionsProvider, setOwner, setProperties, setScreenClass, setScreenId, subscribe, subscribeOnAction, subscribeOnButtongetEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, showprotected java.lang.Class<E> entityClass
protected EntityPicker<E> entityPicker
protected ListComponent<E> listComponent
protected CollectionContainer<E> container
public void setEntityClass(@Nullable
java.lang.Class<E> entityClass)
EntityAwareScreenFacetsetEntityClass in interface EntityAwareScreenFacet<E>entityClass - entity class@Nullable public java.lang.Class<E> getEntityClass()
getEntityClass in interface EntityAwareScreenFacet<E>public void setListComponent(@Nullable
ListComponent<E> listComponent)
EntityAwareScreenFacet
The component is used to get the container if it is not set explicitly by
EntityAwareScreenFacet.setContainer(CollectionContainer) method.
Usually, the list component is a Table or DataGrid displaying the list of entities.
setListComponent in interface EntityAwareScreenFacet<E>@Nullable public ListComponent<E> getListComponent()
getListComponent in interface EntityAwareScreenFacet<E>public void setEntityPicker(@Nullable
EntityPicker<E> entityPicker)
EntityAwareScreenFacetEntityPicker component.
If the field is set, the framework sets the committed entity to the field after successful editor commit.
setEntityPicker in interface EntityAwareScreenFacet<E>@Nullable public EntityPicker<E> getEntityPicker()
getEntityPicker in interface EntityAwareScreenFacet<E>EntityPickerpublic void setContainer(@Nullable
CollectionContainer<E> container)
EntityAwareScreenFacetCollectionContainer.
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.
setContainer in interface EntityAwareScreenFacet<E>@Nullable public CollectionContainer<E> getContainer()
getContainer in interface EntityAwareScreenFacet<E>CollectionContainer