@Component(value="cuba_LookupBuilderProcessor")
public class LookupBuilderProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ClientConfig |
clientConfig |
protected DataManager |
dataManager |
protected EntityStates |
entityStates |
protected ExtendedEntities |
extendedEntities |
protected MetadataTools |
metadataTools |
protected WindowConfig |
windowConfig |
Constructor and Description |
---|
LookupBuilderProcessor() |
Modifier and Type | Method and Description |
---|---|
<E extends Entity> |
buildLookup(LookupBuilder<E> builder) |
protected <E extends Entity> |
createScreen(LookupBuilder<E> builder,
Screens screens) |
protected <E extends Entity> |
getViewForCollectionContainer(CollectionContainer<E> collectionDc,
boolean initializeMasterReference,
MetaProperty inverseMetaProperty)
See
getViewForField(HasValue) javadoc. |
protected <E extends Entity> |
getViewForField(HasValue<E> field)
If the value for a component (e.g.
|
protected <E extends Entity> |
handleSelectionWithContainer(LookupBuilder<E> builder,
CollectionContainer<E> collectionDc,
java.util.Collection<E> itemsFromLookup) |
protected <E extends Entity> |
handleSelectionWithField(LookupBuilder<E> builder,
HasValue<E> field,
java.util.Collection<E> itemsFromLookup) |
protected <E extends Entity> |
transform(java.util.Collection<E> selectedItems,
LookupBuilder<E> builder) |
@Inject protected WindowConfig windowConfig
@Inject protected ClientConfig clientConfig
@Inject protected ExtendedEntities extendedEntities
@Inject protected EntityStates entityStates
@Inject protected DataManager dataManager
@Inject protected MetadataTools metadataTools
public <E extends Entity> Screen buildLookup(LookupBuilder<E> builder)
protected <E extends Entity> Screen createScreen(LookupBuilder<E> builder, Screens screens)
protected <E extends Entity> void handleSelectionWithField(LookupBuilder<E> builder, HasValue<E> field, java.util.Collection<E> itemsFromLookup)
protected <E extends Entity> void handleSelectionWithContainer(LookupBuilder<E> builder, CollectionContainer<E> collectionDc, java.util.Collection<E> itemsFromLookup)
protected <E extends Entity> java.util.Collection<E> transform(java.util.Collection<E> selectedItems, LookupBuilder<E> builder)
@Nullable protected <E extends Entity> View getViewForField(HasValue<E> field)
PickerField
) is selected from lookup screen then there may be cases
when in entities in lookup screen some attributes required in the editor are not loaded.
The method evaluates the view that is used for the entity in the given field
@Nullable protected <E extends Entity> View getViewForCollectionContainer(CollectionContainer<E> collectionDc, boolean initializeMasterReference, MetaProperty inverseMetaProperty)
getViewForField(HasValue)
javadoc.