|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.meta.impl.BasicPropertyMetaModel<T>
to.etc.domui.component.meta.impl.DefaultPropertyMetaModel<T>
public class DefaultPropertyMetaModel<T>
Constructor Summary | |
---|---|
DefaultPropertyMetaModel(DefaultClassMetaModel classModel,
PropertyInfo descriptor)
|
Method Summary | ||
---|---|---|
java.lang.Class<T> |
getActualType()
Returns the actual type of the property's value. |
|
|
getAnnotation(java.lang.Class<A> annclass)
This basic implementation returns annotations on the "getter" method of the property, if available. |
|
java.util.List<java.lang.Object> |
getAnnotations()
This basic implementation returns all annotations on the "getter" method of the property, if available. |
|
ClassMetaModel |
getClassModel()
The ClassModel that this property is a property of. |
|
java.lang.Class<? extends IComboDataSet<?>> |
getComboDataSet()
If this should be represented by a combo this can be set to represent the default combo dataset. |
|
java.util.List<DisplayPropertyMetaModel> |
getComboDisplayProperties()
For a relation, this is the list of properties that should be shown. |
|
java.lang.Class<? extends ILabelStringRenderer<?>> |
getComboLabelRenderer()
When this relation-property is presented as a single field this can contain a class to render that field as a string. |
|
java.lang.Class<? extends INodeContentRenderer<?>> |
getComboNodeRenderer()
When set this renderer should be used to render the nodes in the combobox. |
|
java.lang.String |
getComponentTypeHint()
When present this gives a hint to the component factories to help with choosing a proper component to select a single record of the type specified by this property. |
|
java.lang.String |
getDefaultHint()
Returns the default hint text (which pops up when the mouse is held over the control that inputs this item). |
|
java.lang.String |
getDefaultLabel()
Return any default label (the text to use before the control that inputs this property) for this property. |
|
java.lang.String |
getDomainValueLabel(java.util.Locale loc,
java.lang.Object val)
Get a property-related translation for a domain value for this property. |
|
java.lang.Object[] |
getDomainValues()
FIXME Needs to be filled in by some kind of factory, not in this thingy directly!! For enum and boolean property types this returns the possible values for the domain. |
|
java.lang.reflect.Type |
getGenericActualType()
The abomination that is Java Generics requires a separate dysfunctional type system to represent generic typing, at the few places it is available. |
|
int |
getLength()
Return the defined length for the item PROVIDED IT WAS SET - THIS SUFFERS FROM AN UTTER FUCKUP IN THE JPA "STANDARD". |
|
java.util.List<SearchPropertyMetaModel> |
getLookupFieldKeySearchProperties()
When used in a LookupInput field, this fields are used to create the keyword search inputs. |
|
java.util.List<SearchPropertyMetaModel> |
getLookupFieldSearchProperties()
When used in a LookupInput field, this fields are used to create the search inputs. |
|
java.util.List<DisplayPropertyMetaModel> |
getLookupSelectedProperties()
When this class is to be selected as a parent in an UP relation using an InputLookup control this describes the properties to use to display the currently selected record in the edit page. |
|
java.lang.Class<? extends INodeContentRenderer<?>> |
getLookupSelectedRenderer()
When this class is to be selected as a parent in an UP relation using an InputLookup control this describes the renderer to use to display the currently selected record in the edit page. |
|
java.util.List<DisplayPropertyMetaModel> |
getLookupTableProperties()
When used in a LookupInput field, this fields are used to show the result of a Search in the DataTable. |
|
java.lang.String |
getName()
Returns the name of the property. |
|
PropertyRelationType |
getRelationType()
Tells if this property represents some kind of database relation (a "parent" property referring to the master of this child record, or a property representing the list of children). |
|
java.lang.String |
getRenderHint()
|
|
T |
getValue(java.lang.Object in)
Retrieve the value from this object. |
|
ClassMetaModel |
getValueModel()
If applicable, the value type's class model. |
|
boolean |
isPrimaryKey()
Returns T if we know this property to be the PK. |
|
void |
setComboDataSet(java.lang.Class<? extends IComboDataSet<?>> comboDataSet)
|
|
void |
setComboDisplayProperties(java.util.List<DisplayPropertyMetaModel> displayProperties)
|
|
void |
setComboLabelRenderer(java.lang.Class<? extends ILabelStringRenderer<?>> comboLabelRenderer)
|
|
void |
setComboNodeRenderer(java.lang.Class<? extends INodeContentRenderer<?>> comboNodeRenderer)
|
|
void |
setComponentTypeHint(java.lang.String componentTypeHint)
|
|
void |
setLength(int length)
|
|
void |
setLookupFieldKeySearchProperties(java.util.List<SearchPropertyMetaModel> lookupFieldKeySearchProperties)
|
|
void |
setLookupFieldSearchProperties(java.util.List<SearchPropertyMetaModel> lookupFieldSearchProperties)
|
|
void |
setLookupSelectedProperties(java.util.List<DisplayPropertyMetaModel> lookupFieldDisplayProperties)
|
|
void |
setLookupSelectedRenderer(java.lang.Class<? extends INodeContentRenderer<?>> lookupFieldRenderer)
|
|
void |
setLookupTableProperties(java.util.List<DisplayPropertyMetaModel> lookupFieldTableProperties)
|
|
void |
setPrimaryKey(boolean primaryKey)
|
|
void |
setRelationType(PropertyRelationType relationType)
|
|
void |
setRenderHint(java.lang.String renderHint)
|
|
void |
setValue(java.lang.Object target,
T value)
|
|
java.lang.String |
toString()
|
Methods inherited from class to.etc.domui.component.meta.impl.BasicPropertyMetaModel |
---|
getControlFactory, getConverter, getDisplayLength, getEditRoles, getNumericPresentation, getPrecision, getReadOnly, getRegexpUserString, getRegexpValidator, getScale, getSortable, getTemporal, getValidators, getViewRoles, isRequired, isTransient, setControlFactory, setConverter, setDisplayLength, setEditRoles, setNumericPresentation, setPrecision, setReadOnly, setRegexpUserString, setRegexpValidator, setRequired, setScale, setSortable, setTemporal, setTransient, setValidators, setViewRoles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface to.etc.domui.component.meta.PropertyMetaModel |
---|
getControlFactory, getConverter, getDisplayLength, getEditRoles, getNumericPresentation, getPrecision, getReadOnly, getRegexpUserString, getRegexpValidator, getScale, getSortable, getTemporal, getValidators, getViewRoles, isRequired, isTransient |
Constructor Detail |
---|
public DefaultPropertyMetaModel(DefaultClassMetaModel classModel, PropertyInfo descriptor)
Method Detail |
---|
public java.lang.String getName()
PropertyMetaModel
getName
in interface PropertyMetaModel<T>
public java.lang.Class<T> getActualType()
PropertyMetaModel
getActualType
in interface PropertyMetaModel<T>
public ClassMetaModel getValueModel()
PropertyMetaModel
getValueModel
in interface PropertyMetaModel<T>
public java.lang.reflect.Type getGenericActualType()
PropertyMetaModel
getGenericActualType
in interface PropertyMetaModel<T>
public void setValue(java.lang.Object target, T value) throws java.lang.Exception
setValue
in interface IValueAccessor<T>
java.lang.Exception
public T getValue(java.lang.Object in) throws java.lang.Exception
getValue
in interface IValueTransformer<T>
java.lang.Exception
IValueTransformer.getValue(java.lang.Object)
public java.lang.String getDefaultLabel()
PropertyMetaModel
getDefaultLabel
in interface PropertyMetaModel<T>
public java.lang.String getDefaultHint()
PropertyMetaModel
getDefaultHint
in interface PropertyMetaModel<T>
public java.lang.Object[] getDomainValues()
getDomainValues
in interface PropertyMetaModel<T>
public java.lang.String getDomainValueLabel(java.util.Locale loc, java.lang.Object val)
getDomainValueLabel
in interface PropertyMetaModel<T>
PropertyMetaModel.getDomainValueLabel(java.util.Locale, java.lang.Object)
public int getLength()
PropertyMetaModel
getLength
in interface PropertyMetaModel<T>
public void setLength(int length)
public boolean isPrimaryKey()
PropertyMetaModel
isPrimaryKey
in interface PropertyMetaModel<T>
public void setPrimaryKey(boolean primaryKey)
public java.lang.Class<? extends IComboDataSet<?>> getComboDataSet()
PropertyMetaModel
getComboDataSet
in interface PropertyMetaModel<T>
public void setComboDataSet(java.lang.Class<? extends IComboDataSet<?>> comboDataSet)
public java.lang.Class<? extends ILabelStringRenderer<?>> getComboLabelRenderer()
PropertyMetaModel
getComboLabelRenderer
in interface PropertyMetaModel<T>
public void setComboLabelRenderer(java.lang.Class<? extends ILabelStringRenderer<?>> comboLabelRenderer)
public java.util.List<DisplayPropertyMetaModel> getComboDisplayProperties()
PropertyMetaModel
getComboDisplayProperties
in interface PropertyMetaModel<T>
public void setComboDisplayProperties(java.util.List<DisplayPropertyMetaModel> displayProperties)
public PropertyRelationType getRelationType()
PropertyMetaModel
getRelationType
in interface PropertyMetaModel<T>
public void setRelationType(PropertyRelationType relationType)
public ClassMetaModel getClassModel()
PropertyMetaModel
getClassModel
in interface PropertyMetaModel<T>
public java.lang.Class<? extends INodeContentRenderer<?>> getComboNodeRenderer()
PropertyMetaModel
getComboNodeRenderer
in interface PropertyMetaModel<T>
public void setComboNodeRenderer(java.lang.Class<? extends INodeContentRenderer<?>> comboNodeRenderer)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Class<? extends INodeContentRenderer<?>> getLookupSelectedRenderer()
getLookupSelectedRenderer
in interface PropertyMetaModel<T>
public void setLookupSelectedRenderer(java.lang.Class<? extends INodeContentRenderer<?>> lookupFieldRenderer)
public java.util.List<DisplayPropertyMetaModel> getLookupSelectedProperties()
getLookupSelectedProperties
in interface PropertyMetaModel<T>
public void setLookupSelectedProperties(java.util.List<DisplayPropertyMetaModel> lookupFieldDisplayProperties)
public java.util.List<DisplayPropertyMetaModel> getLookupTableProperties()
LookupInput
field, this fields are used to show the result of a Search in the DataTable.
getLookupTableProperties
in interface PropertyMetaModel<T>
public void setLookupTableProperties(java.util.List<DisplayPropertyMetaModel> lookupFieldTableProperties)
public java.util.List<SearchPropertyMetaModel> getLookupFieldSearchProperties()
LookupInput
field, this fields are used to create the search inputs.
getLookupFieldSearchProperties
in interface PropertyMetaModel<T>
public void setLookupFieldSearchProperties(java.util.List<SearchPropertyMetaModel> lookupFieldSearchProperties)
public java.util.List<SearchPropertyMetaModel> getLookupFieldKeySearchProperties()
LookupInput
field, this fields are used to create the keyword search inputs.
getLookupFieldKeySearchProperties
in interface PropertyMetaModel<T>
public void setLookupFieldKeySearchProperties(java.util.List<SearchPropertyMetaModel> lookupFieldKeySearchProperties)
public java.lang.String getComponentTypeHint()
getComponentTypeHint
in interface PropertyMetaModel<T>
public void setComponentTypeHint(java.lang.String componentTypeHint)
public java.lang.String getRenderHint()
public void setRenderHint(java.lang.String renderHint)
@Nullable public <A> A getAnnotation(java.lang.Class<A> annclass)
getAnnotation
in interface PropertyMetaModel<T>
PropertyMetaModel.getAnnotation(java.lang.Class)
@Nonnull public java.util.List<java.lang.Object> getAnnotations()
getAnnotations
in interface PropertyMetaModel<T>
PropertyMetaModel.getAnnotations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |