@Component(value="cuba_DynamicAttributeListEditorGenerator")
public class DynamicAttributeComponentsGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected DynamicAttributesGuiTools |
dynamicAttributesGuiTools |
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,
MetaPropertyPath metaPropertyPath)
Creates ListEditor component.
|
Component |
generateComponent(ValueSource valueSource,
java.lang.String propertyId)
Creates ListEditor component.
|
protected ListEditor.ItemType |
getListEditorItemType(PropertyType propertyType) |
void |
setDynamicAttributesGuiTools(DynamicAttributesGuiTools dynamicAttributesGuiTools) |
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
protected DynamicAttributesGuiTools dynamicAttributesGuiTools
@Inject public void setUiComponents(UiComponents uiComponents)
@Inject public void setMetadata(Metadata metadata)
@Inject public void setScripting(Scripting scripting)
@Inject public void setDynamicAttributesGuiTools(DynamicAttributesGuiTools dynamicAttributesGuiTools)
@Nullable public Component generateComponent(ValueSource valueSource, java.lang.String propertyId)
valueSource - value sourcepropertyId - property id of dynamic attribute@Nullable public Component generateComponent(ValueSource valueSource, 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)