@Component(value="cuba_DynamicAttributeListEditorGenerator")
public class DynamicAttributeComponentsGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Metadata |
metadata |
static java.lang.String |
NAME |
protected Scripting |
scripting |
protected UiComponents |
uiComponents |
Constructor and Description |
---|
DynamicAttributeComponentsGenerator() |
Modifier and Type | Method and Description |
---|---|
Component |
generateComponent(ValueSource valueSource,
CategoryAttribute categoryAttribute)
Creates ListEditor component.
|
Component |
generateComponent(ValueSource valueSource,
com.haulmont.chile.core.model.MetaPropertyPath metaPropertyPath)
Creates ListEditor component.
|
Component |
generateComponent(ValueSource valueSource,
java.lang.String propertyId)
Creates ListEditor component.
|
protected ListEditor.ItemType |
getListEditorItemType(PropertyType propertyType) |
void |
setMetadata(Metadata metadata) |
void |
setScripting(Scripting scripting) |
void |
setUiComponents(UiComponents uiComponents) |
public static final java.lang.String NAME
protected UiComponents uiComponents
protected Metadata metadata
protected Scripting scripting
@Inject public void setUiComponents(UiComponents uiComponents)
@Inject public void setMetadata(Metadata metadata)
@Inject public void setScripting(Scripting scripting)
@Nullable public Component generateComponent(ValueSource valueSource, java.lang.String propertyId)
valueSource
- value sourcepropertyId
- property id of dynamic attribute@Nullable public Component generateComponent(ValueSource valueSource, com.haulmont.chile.core.model.MetaPropertyPath metaPropertyPath)
valueSource
- value sourcemetaPropertyPath
- meta property path of dynamic attribute@Nullable public Component generateComponent(ValueSource valueSource, CategoryAttribute categoryAttribute)
valueSource
- value sourcecategoryAttribute
- category attributeprotected ListEditor.ItemType getListEditorItemType(PropertyType propertyType)