Package io.jmix.dynattrflowui.impl
Class DynAttrAwareEntityTransformer
java.lang.Object
io.jmix.dynattrflowui.impl.DynAttrAwareEntityTransformer
- All Implemented Interfaces:
EditedEntityTransformer
@Component("dynat_DynAttrAwareEntityTransformer")
@Order(110)
public class DynAttrAwareEntityTransformer
extends Object
implements EditedEntityTransformer
-
Constructor Summary
ConstructorDescriptionDynAttrAwareEntityTransformer
(EntityStates entityStates, DataManager dataManager, DynAttrManager dynAttrManager, AccessConstraintsRegistry accessConstraintsRegistry) -
Method Summary
Modifier and TypeMethodDescription<E> E
transformForCollectionContainer
(E editedEntity, CollectionContainer<E> container) Transforms the entity to be added to the given container.<E> E
transformForField
(E editedEntity, com.vaadin.flow.component.HasValue<?, E> field) Transforms the entity to be added to the given UI field.
-
Constructor Details
-
DynAttrAwareEntityTransformer
public DynAttrAwareEntityTransformer(EntityStates entityStates, DataManager dataManager, DynAttrManager dynAttrManager, AccessConstraintsRegistry accessConstraintsRegistry)
-
-
Method Details
-
transformForCollectionContainer
Description copied from interface:EditedEntityTransformer
Transforms the entity to be added to the given container.- Specified by:
transformForCollectionContainer
in interfaceEditedEntityTransformer
- Parameters:
editedEntity
- entity instance returned by detail viewcontainer
- data container where the entity will be added- Returns:
- transformed instance
-
transformForField
public <E> E transformForField(E editedEntity, com.vaadin.flow.component.HasValue<?, E> field) Description copied from interface:EditedEntityTransformer
Transforms the entity to be added to the given UI field.- Specified by:
transformForField
in interfaceEditedEntityTransformer
- Parameters:
editedEntity
- entity instance returned by detail viewfield
- UI field where the entity will be displayed- Returns:
- transformed instance
-