Package io.jmix.ui.component.impl
Class AbstractEntityAwareScreenFacet<E,S extends Screen>
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.AbstractScreenFacet<S>
io.jmix.ui.component.impl.AbstractEntityAwareScreenFacet<E,S>
- All Implemented Interfaces:
EntityAwareScreenFacet<E>,Facet,ScreenFacet<S>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
EditorScreenFacetImpl,LookupScreenFacetImpl
public abstract class AbstractEntityAwareScreenFacet<E,S extends Screen>
extends AbstractScreenFacet<S>
implements EntityAwareScreenFacet<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionContainer<E>protected EntityPicker<E>protected ListComponent<E>Fields inherited from class io.jmix.ui.component.impl.AbstractScreenFacet
actionId, afterCloseListeners, afterShowListeners, applicationContext, buttonId, openMode, optionsProvider, properties, screen, screenClass, screenConfigurer, screenIdFields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetContainer(CollectionContainer<E> container) SetsCollectionContainer.voidsetEntityClass(Class<E> entityClass) Sets entity class.voidsetEntityPicker(EntityPicker<E> entityPicker) Sets theEntityPickercomponent.voidsetListComponent(ListComponent<E> listComponent) Sets list component.Methods inherited from class io.jmix.ui.component.impl.AbstractScreenFacet
addAfterCloseEventListener, addAfterShowEventListener, applyScreenConfigurer, getActionTarget, getButtonTarget, getOpenMode, getOptionsProvider, getProperties, getScreenClass, getScreenConfigurer, getScreenId, getScreenOptions, initScreenListeners, injectScreenProperties, internalRemoveAfterCloseEventListener, internalRemoveAfterShowEventListener, setActionTarget, setApplicationContext, setButtonTarget, setOpenMode, setOptionsProvider, setOwner, setProperties, setScreenClass, setScreenConfigurer, setScreenId, subscribe, subscribeOnAction, subscribeOnButtonMethods inherited from class io.jmix.ui.component.impl.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.ScreenFacet
create, show
-
Field Details
-
entityClass
-
entityPicker
-
listComponent
-
container
-
-
Constructor Details
-
AbstractEntityAwareScreenFacet
public AbstractEntityAwareScreenFacet()
-
-
Method Details
-
setEntityClass
Description copied from interface:EntityAwareScreenFacetSets entity class.- Specified by:
setEntityClassin interfaceEntityAwareScreenFacet<E>- Parameters:
entityClass- entity class
-
getEntityClass
- Specified by:
getEntityClassin interfaceEntityAwareScreenFacet<E>- Returns:
- entity class
-
setListComponent
Description copied from interface:EntityAwareScreenFacetSets list component.The component is used to get the
containerif it is not set explicitly byEntityAwareScreenFacet.setContainer(CollectionContainer)method.Usually, the list component is a
TableorDataGriddisplaying the list of entities.- Specified by:
setListComponentin interfaceEntityAwareScreenFacet<E>
-
getListComponent
- Specified by:
getListComponentin interfaceEntityAwareScreenFacet<E>- Returns:
- list component
-
setEntityPicker
Description copied from interface:EntityAwareScreenFacetSets theEntityPickercomponent.If the field is set, the framework sets the committed entity to the field after successful editor commit.
- Specified by:
setEntityPickerin interfaceEntityAwareScreenFacet<E>
-
getEntityPicker
- Specified by:
getEntityPickerin interfaceEntityAwareScreenFacet<E>- Returns:
EntityPicker
-
setContainer
Description copied from interface:EntityAwareScreenFacetSetsCollectionContainer.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.- Specified by:
setContainerin interfaceEntityAwareScreenFacet<E>
-
getContainer
- Specified by:
getContainerin interfaceEntityAwareScreenFacet<E>- Returns:
CollectionContainer
-