public class ComponentGenerationContext
extends java.lang.Object
ComponentGenerationStrategy
when creating
components using UiComponentsGenerator
.Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.metamodel.model.MetaClass |
metaClass |
protected Options |
options |
protected java.lang.String |
property |
protected java.lang.Class<?> |
targetClass |
protected ValueSource |
valueSource |
protected org.dom4j.Element |
xmlDescriptor |
Constructor and Description |
---|
ComponentGenerationContext(io.jmix.core.metamodel.model.MetaClass metaClass,
java.lang.String property)
Creates an instance of ComponentGenerationContext.
|
Modifier and Type | Method and Description |
---|---|
io.jmix.core.metamodel.model.MetaClass |
getMetaClass() |
Options |
getOptions() |
java.lang.String |
getProperty() |
java.lang.Class<?> |
getTargetClass() |
ValueSource |
getValueSource() |
org.dom4j.Element |
getXmlDescriptor() |
ComponentGenerationContext |
setOptions(Options options)
Sets an options object, using fluent API method.
|
ComponentGenerationContext |
setTargetClass(java.lang.Class<?> targetClass)
Sets a target class for which a 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 final io.jmix.core.metamodel.model.MetaClass metaClass
protected final java.lang.String property
protected ValueSource valueSource
protected Options options
protected org.dom4j.Element xmlDescriptor
protected java.lang.Class<?> targetClass
public ComponentGenerationContext(io.jmix.core.metamodel.model.MetaClass metaClass, java.lang.String property)
metaClass
- the entity for which the component is createdproperty
- the entity attribute for which the component is createdpublic io.jmix.core.metamodel.model.MetaClass getMetaClass()
public java.lang.String getProperty()
@Nullable public ValueSource getValueSource()
public ComponentGenerationContext setValueSource(@Nullable ValueSource valueSource)
valueSource
- a value source to set@Nullable public Options getOptions()
public ComponentGenerationContext setOptions(@Nullable 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(@Nullable org.dom4j.Element xmlDescriptor)
xmlDescriptor
- an XML descriptor which contains additional information@Nullable public java.lang.Class<?> getTargetClass()
public ComponentGenerationContext setTargetClass(@Nullable java.lang.Class<?> targetClass)
targetClass
- a target class for which a component is created