public class DefaultPropertyMetaModel<T> extends BasicPropertyMetaModel<T> implements PropertyMetaModel<T>
NO_NAMESNO_VALIDATORS| Constructor and Description |
|---|
DefaultPropertyMetaModel(DefaultClassMetaModel classModel,
PropertyInfo descriptor) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getActualType()
Returns the actual type of the property's value.
|
<A> A |
getAnnotation(Class<A> annclass)
This basic implementation returns annotations on the "getter" method of the property, if
available.
|
List<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.
|
Class<? extends IComboDataSet<?>> |
getComboDataSet()
If this should be represented by a combo this can be set to represent the default combo dataset.
|
List<DisplayPropertyMetaModel> |
getComboDisplayProperties()
For a relation, this is the list of properties that should be shown.
|
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.
|
Class<? extends INodeContentRenderer<?>> |
getComboNodeRenderer()
When set this renderer should be used to render the nodes in the combobox.
|
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.
|
String |
getDefaultHint()
Returns the default hint text (which pops up when the mouse is held over the control that inputs this
item).
|
String |
getDefaultLabel()
Return any default label (the text to use before the control that inputs this property) for this
property.
|
String |
getDomainValueLabel(Locale loc,
Object val)
Get a property-related translation for a domain value for this property.
|
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.
|
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".
|
List<SearchPropertyMetaModel> |
getLookupFieldKeySearchProperties()
When used in a
LookupInput field, this fields are used to create the keyword search inputs. |
List<SearchPropertyMetaModel> |
getLookupFieldSearchProperties()
When used in a
LookupInput field, this fields are used to create the search inputs. |
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.
|
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.
|
List<DisplayPropertyMetaModel> |
getLookupTableProperties()
When used in a
LookupInput field, this fields are used to show the result of a Search in the DataTable. |
String |
getName()
Returns the name of the property.
|
IQueryManipulator<T> |
getQueryManipulator()
For Lookup and Combo fields, this can return a QueryManipulator instance that will alter the base
query for the thing to show.
|
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).
|
T |
getValue(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.
|
boolean |
isReadOnly() |
void |
setComboDataSet(Class<? extends IComboDataSet<?>> comboDataSet) |
void |
setComboDisplayProperties(List<DisplayPropertyMetaModel> displayProperties) |
void |
setComboLabelRenderer(Class<? extends ILabelStringRenderer<?>> comboLabelRenderer) |
void |
setComboNodeRenderer(Class<? extends INodeContentRenderer<?>> comboNodeRenderer) |
void |
setComponentTypeHint(String componentTypeHint) |
void |
setLength(int length) |
void |
setLookupFieldKeySearchProperties(List<SearchPropertyMetaModel> lookupFieldKeySearchProperties) |
void |
setLookupFieldSearchProperties(List<SearchPropertyMetaModel> lookupFieldSearchProperties) |
void |
setLookupSelectedProperties(List<DisplayPropertyMetaModel> lookupFieldDisplayProperties) |
void |
setLookupSelectedRenderer(Class<? extends INodeContentRenderer<?>> lookupFieldRenderer) |
void |
setLookupTableProperties(List<DisplayPropertyMetaModel> lookupFieldTableProperties) |
void |
setPrimaryKey(boolean primaryKey) |
void |
setQueryManipulator(IQueryManipulator<T> queryManipulator) |
void |
setRelationType(PropertyRelationType relationType) |
void |
setValue(Object target,
T value) |
String |
toString() |
getColumnNames, getControlFactory, getConverter, getDisplayLength, getNowrap, getNumericPresentation, getPrecision, getReadOnly, getRegexpUserString, getRegexpValidator, getScale, getSortable, getTemporal, getValidators, isRequired, isTransient, setColumnNames, setControlFactory, setConverter, setDisplayLength, setNowrap, setNumericPresentation, setPrecision, setReadOnly, setRegexpUserString, setRegexpValidator, setRequired, setScale, setSortable, setTemporal, setTransient, setValidatorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumnNames, getControlFactory, getConverter, getDisplayLength, getNowrap, getNumericPresentation, getPrecision, getReadOnly, getRegexpUserString, getRegexpValidator, getScale, getSortable, getTemporal, getValidators, isRequired, isTransientpublic DefaultPropertyMetaModel(@Nonnull DefaultClassMetaModel classModel, PropertyInfo descriptor)
@Nonnull public String getName()
PropertyMetaModelgetName in interface PropertyMetaModel<T>@Nonnull public Class<T> getActualType()
PropertyMetaModelgetActualType in interface PropertyMetaModel<T>public ClassMetaModel getValueModel()
PropertyMetaModelgetValueModel in interface PropertyMetaModel<T>public Type getGenericActualType()
PropertyMetaModelgetGenericActualType in interface PropertyMetaModel<T>public void setValue(Object target, T value) throws Exception
setValue in interface IValueAccessor<T>Exceptionpublic boolean isReadOnly()
isReadOnly in interface IValueAccessor<T>public T getValue(Object in) throws Exception
getValue in interface IValueTransformer<T>ExceptionIValueTransformer.getValue(java.lang.Object)@Nonnull public String getDefaultLabel()
PropertyMetaModelgetDefaultLabel in interface PropertyMetaModel<T>public String getDefaultHint()
PropertyMetaModelgetDefaultHint in interface PropertyMetaModel<T>public Object[] getDomainValues()
getDomainValues in interface PropertyMetaModel<T>public String getDomainValueLabel(Locale loc, Object val)
getDomainValueLabel in interface PropertyMetaModel<T>PropertyMetaModel.getDomainValueLabel(java.util.Locale, java.lang.Object)public int getLength()
PropertyMetaModelgetLength in interface PropertyMetaModel<T>public void setLength(int length)
public boolean isPrimaryKey()
PropertyMetaModelisPrimaryKey in interface PropertyMetaModel<T>public void setPrimaryKey(boolean primaryKey)
public Class<? extends IComboDataSet<?>> getComboDataSet()
PropertyMetaModelgetComboDataSet in interface PropertyMetaModel<T>public void setComboDataSet(Class<? extends IComboDataSet<?>> comboDataSet)
public Class<? extends ILabelStringRenderer<?>> getComboLabelRenderer()
PropertyMetaModelgetComboLabelRenderer in interface PropertyMetaModel<T>public void setComboLabelRenderer(Class<? extends ILabelStringRenderer<?>> comboLabelRenderer)
@Nonnull public List<DisplayPropertyMetaModel> getComboDisplayProperties()
PropertyMetaModelgetComboDisplayProperties in interface PropertyMetaModel<T>public void setComboDisplayProperties(@Nonnull List<DisplayPropertyMetaModel> displayProperties)
@Nonnull public PropertyRelationType getRelationType()
PropertyMetaModelgetRelationType in interface PropertyMetaModel<T>public void setRelationType(@Nonnull PropertyRelationType relationType)
@Nonnull public ClassMetaModel getClassModel()
PropertyMetaModelgetClassModel in interface PropertyMetaModel<T>@Nullable public Class<? extends INodeContentRenderer<?>> getComboNodeRenderer()
PropertyMetaModelgetComboNodeRenderer in interface PropertyMetaModel<T>public void setComboNodeRenderer(@Nullable Class<? extends INodeContentRenderer<?>> comboNodeRenderer)
public Class<? extends INodeContentRenderer<?>> getLookupSelectedRenderer()
getLookupSelectedRenderer in interface PropertyMetaModel<T>public void setLookupSelectedRenderer(Class<? extends INodeContentRenderer<?>> lookupFieldRenderer)
@Nonnull public List<DisplayPropertyMetaModel> getLookupSelectedProperties()
getLookupSelectedProperties in interface PropertyMetaModel<T>public void setLookupSelectedProperties(@Nonnull List<DisplayPropertyMetaModel> lookupFieldDisplayProperties)
@Nonnull public 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(@Nonnull List<DisplayPropertyMetaModel> lookupFieldTableProperties)
@Nonnull public List<SearchPropertyMetaModel> getLookupFieldSearchProperties()
LookupInput field, this fields are used to create the search inputs.getLookupFieldSearchProperties in interface PropertyMetaModel<T>public void setLookupFieldSearchProperties(@Nonnull List<SearchPropertyMetaModel> lookupFieldSearchProperties)
@Nonnull public List<SearchPropertyMetaModel> getLookupFieldKeySearchProperties()
LookupInput field, this fields are used to create the keyword search inputs.getLookupFieldKeySearchProperties in interface PropertyMetaModel<T>public void setLookupFieldKeySearchProperties(@Nonnull List<SearchPropertyMetaModel> lookupFieldKeySearchProperties)
@Nullable public String getComponentTypeHint()
getComponentTypeHint in interface PropertyMetaModel<T>public IQueryManipulator<T> getQueryManipulator()
PropertyMetaModelgetQueryManipulator in interface PropertyMetaModel<T>public void setQueryManipulator(IQueryManipulator<T> queryManipulator)
@Nullable public <A> A getAnnotation(@Nonnull Class<A> annclass)
getAnnotation in interface PropertyMetaModel<T>PropertyMetaModel.getAnnotation(java.lang.Class)@Nonnull public List<Object> getAnnotations()
getAnnotations in interface PropertyMetaModel<T>PropertyMetaModel.getAnnotations()Copyright © 2017 etc.to. All rights reserved.