public class ComponentGenerationContext
extends java.lang.Object
ComponentGenerationStrategy when creating components using UiComponentsGenerator.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class |
componentClass |
protected Datasource |
datasource
Deprecated.
|
protected MetaClass |
metaClass |
protected Options |
options |
protected CollectionDatasource |
optionsDatasource
Deprecated.
|
protected java.lang.String |
property |
protected ValueSource |
valueSource |
protected org.dom4j.Element |
xmlDescriptor |
| Constructor and Description |
|---|
ComponentGenerationContext(MetaClass metaClass,
java.lang.String property)
Creates an instance of ComponentGenerationContext.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getComponentClass() |
Datasource |
getDatasource()
Deprecated.
Use
getValueSource() instead |
MetaClass |
getMetaClass() |
Options |
getOptions() |
CollectionDatasource |
getOptionsDatasource()
Deprecated.
Use
getOptions() instead |
java.lang.String |
getProperty() |
ValueSource |
getValueSource() |
org.dom4j.Element |
getXmlDescriptor() |
ComponentGenerationContext |
setComponentClass(java.lang.Class componentClass)
Sets a component class for which a component is created, using fluent API method.
|
ComponentGenerationContext |
setDatasource(Datasource datasource)
Deprecated.
Use
setValueSource(ValueSource) instead |
ComponentGenerationContext |
setMetaClass(MetaClass metaClass)
Sets the entity for which the component is created, using fluent API method.
|
ComponentGenerationContext |
setOptions(Options options)
Sets an options object, using fluent API method.
|
ComponentGenerationContext |
setOptionsDatasource(CollectionDatasource optionsDatasource)
Deprecated.
Use
setOptions(Options) instead |
ComponentGenerationContext |
setProperty(java.lang.String property)
Sets the entity attribute for which the component is created, using fluent API method.
|
ComponentGenerationContext |
setValueSource(ValueSource valueSource)
Sets a value source, using fluent API method.
|
ComponentGenerationContext |
setXmlDescriptor(org.dom4j.Element xmlDescriptor)
Sets an XML descriptor which contains additional information, using fluent API method.
|
protected MetaClass metaClass
protected java.lang.String property
@Deprecated protected Datasource datasource
@Deprecated protected CollectionDatasource optionsDatasource
protected ValueSource valueSource
protected Options options
protected org.dom4j.Element xmlDescriptor
protected java.lang.Class componentClass
public ComponentGenerationContext(MetaClass metaClass, java.lang.String property)
metaClass - the entity for which the component is createdproperty - the entity attribute for which the component is createdpublic MetaClass getMetaClass()
public ComponentGenerationContext setMetaClass(MetaClass metaClass)
metaClass - the entity for which the component is createdpublic java.lang.String getProperty()
public ComponentGenerationContext setProperty(java.lang.String property)
property - the entity attribute for which the component is created@Deprecated @Nullable public Datasource getDatasource()
getValueSource() instead@Deprecated public ComponentGenerationContext setDatasource(Datasource datasource)
setValueSource(ValueSource) insteaddatasource - a datasource@Deprecated @Nullable public CollectionDatasource getOptionsDatasource()
getOptions() instead@Deprecated public ComponentGenerationContext setOptionsDatasource(CollectionDatasource optionsDatasource)
setOptions(Options) insteadoptionsDatasource - a datasource that can be used as optional to create the component@Nullable public ValueSource getValueSource()
public ComponentGenerationContext setValueSource(ValueSource valueSource)
valueSource - a value source to set@Nullable public Options getOptions()
public ComponentGenerationContext setOptions(Options options)
options - an options object that can be used as optional to create the component@Nullable public org.dom4j.Element getXmlDescriptor()
public ComponentGenerationContext setXmlDescriptor(org.dom4j.Element xmlDescriptor)
xmlDescriptor - an XML descriptor which contains additional information@Nullable public java.lang.Class getComponentClass()
public ComponentGenerationContext setComponentClass(java.lang.Class componentClass)
componentClass - a component class for which a component is created