|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.meta.impl.PropertyMetaModelWrapper<T>
public abstract class PropertyMetaModelWrapper<T>
Constructor Summary | |
---|---|
protected |
PropertyMetaModelWrapper(PropertyMetaModel<T> parent)
|
Method Summary | |
---|---|
java.lang.Class<T> |
getActualType()
Returns the actual type of the property's value. |
abstract 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. |
ControlFactory |
getControlFactory()
If a specific control factory is to be used to create controls for this item this returns that factory. |
IConverter<T> |
getConverter()
Returns the user-specified converter to use when converting this property's value to and from string. |
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. |
int |
getDisplayLength()
Returns the #chars to be displayed by default for this item. |
java.lang.String |
getDomainValueLabel(java.util.Locale loc,
java.lang.Object val)
Retrieves the properly localized string representing a domain value in a type which has a fixed set of domain values (like enum or boolean). |
java.lang.Object[] |
getDomainValues()
If the type for this property has a fixed set of domain values (like boolean or enum) this contains all possible values for this property. |
java.lang.String[][] |
getEditRoles()
Defines the roles that a user must have to edit this field. |
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. |
NumericPresentation |
getNumericPresentation()
Used for numeric types, this returns how to present the number and defines the number's class, like a monetary amount. |
int |
getPrecision()
Return the specified precision of the numeric field. |
YesNoType |
getReadOnly()
Reports whether a property is readonly. |
java.lang.String |
getRegexpUserString()
Use the string to use as the pattern indicator in regexp-validator error messages. |
java.lang.String |
getRegexpValidator()
Returns the regexp to use to validate input. |
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). |
int |
getScale()
For numeric types, this returns any defined scale. |
SortableType |
getSortable()
Returns whether the property should be sortable when used in a default table, and defines the initial sort direction of the property. |
TemporalPresentationType |
getTemporal()
If this is defined as some Date type this further defines the domain (date only, date time etc). |
PropertyMetaValidator[] |
getValidators()
Get all validators to run on this property's input after conversion. |
T |
getValue(java.lang.Object in)
|
ClassMetaModel |
getValueModel()
If applicable, the value type's class model. |
java.lang.String[][] |
getViewRoles()
If this contains null the field can be seen by all users. |
PropertyMetaModel<T> |
getWrappedModel()
|
boolean |
isPrimaryKey()
Returns T if we know this property to be the PK. |
boolean |
isRequired()
Whether the property is defined as requiring a value. |
boolean |
isTransient()
If marked as transient in the persistent class this returns true |
void |
setValue(java.lang.Object target,
T value)
|
void |
setWrappedModel(PropertyMetaModel<T> parent)
WATCH OUT: Should only be used when initializing outside the constructor; should not change after this has been passed to user code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface to.etc.domui.component.meta.PropertyMetaModel |
---|
getAnnotation, getAnnotations |
Constructor Detail |
---|
protected PropertyMetaModelWrapper(PropertyMetaModel<T> parent)
Method Detail |
---|
public PropertyMetaModel<T> getWrappedModel()
public void setWrappedModel(PropertyMetaModel<T> parent)
parent
- public T getValue(java.lang.Object in) throws java.lang.Exception
getValue
in interface IValueTransformer<T>
java.lang.Exception
public void setValue(java.lang.Object target, T value) throws java.lang.Exception
setValue
in interface IValueAccessor<T>
java.lang.Exception
public java.lang.Class<T> getActualType()
PropertyMetaModel
getActualType
in interface PropertyMetaModel<T>
public ClassMetaModel getValueModel()
PropertyMetaModel
getValueModel
in interface PropertyMetaModel<T>
public abstract ClassMetaModel getClassModel()
PropertyMetaModel
getClassModel
in interface PropertyMetaModel<T>
public java.lang.Class<? extends IComboDataSet<?>> getComboDataSet()
PropertyMetaModel
getComboDataSet
in interface PropertyMetaModel<T>
public java.util.List<DisplayPropertyMetaModel> getComboDisplayProperties()
PropertyMetaModel
getComboDisplayProperties
in interface PropertyMetaModel<T>
public java.lang.Class<? extends ILabelStringRenderer<?>> getComboLabelRenderer()
PropertyMetaModel
getComboLabelRenderer
in interface PropertyMetaModel<T>
public java.lang.Class<? extends INodeContentRenderer<?>> getComboNodeRenderer()
PropertyMetaModel
getComboNodeRenderer
in interface PropertyMetaModel<T>
public java.lang.String getComponentTypeHint()
PropertyMetaModel
getComponentTypeHint
in interface PropertyMetaModel<T>
public ControlFactory getControlFactory()
PropertyMetaModel
getControlFactory
in interface PropertyMetaModel<T>
public IConverter<T> getConverter()
PropertyMetaModel
getConverter
in interface PropertyMetaModel<T>
public java.lang.String getDefaultHint()
PropertyMetaModel
getDefaultHint
in interface PropertyMetaModel<T>
public java.lang.String getDefaultLabel()
PropertyMetaModel
getDefaultLabel
in interface PropertyMetaModel<T>
public int getDisplayLength()
PropertyMetaModel
getDisplayLength
in interface PropertyMetaModel<T>
public java.lang.String getDomainValueLabel(java.util.Locale loc, java.lang.Object val)
PropertyMetaModel
getDomainValueLabel
in interface PropertyMetaModel<T>
public java.lang.Object[] getDomainValues()
PropertyMetaModel
getDomainValues
in interface PropertyMetaModel<T>
public java.lang.String[][] getEditRoles()
PropertyMetaModel
PropertyMetaModel.getViewRoles()
for details.
getEditRoles
in interface PropertyMetaModel<T>
public java.lang.reflect.Type getGenericActualType()
PropertyMetaModel
getGenericActualType
in interface PropertyMetaModel<T>
public int getLength()
PropertyMetaModel
getLength
in interface PropertyMetaModel<T>
public java.util.List<DisplayPropertyMetaModel> getLookupSelectedProperties()
PropertyMetaModel
getLookupSelectedProperties
in interface PropertyMetaModel<T>
public java.lang.Class<? extends INodeContentRenderer<?>> getLookupSelectedRenderer()
PropertyMetaModel
getLookupSelectedRenderer
in interface PropertyMetaModel<T>
public java.lang.String getName()
PropertyMetaModel
getName
in interface PropertyMetaModel<T>
public NumericPresentation getNumericPresentation()
PropertyMetaModel
getNumericPresentation
in interface PropertyMetaModel<T>
public int getPrecision()
PropertyMetaModel
getPrecision
in interface PropertyMetaModel<T>
public YesNoType getReadOnly()
PropertyMetaModel
getReadOnly
in interface PropertyMetaModel<T>
public java.lang.String getRegexpUserString()
PropertyMetaModel
getRegexpUserString
in interface PropertyMetaModel<T>
public java.lang.String getRegexpValidator()
PropertyMetaModel
getRegexpValidator
in interface PropertyMetaModel<T>
public PropertyRelationType getRelationType()
PropertyMetaModel
getRelationType
in interface PropertyMetaModel<T>
public int getScale()
PropertyMetaModel
getScale
in interface PropertyMetaModel<T>
public SortableType getSortable()
PropertyMetaModel
getSortable
in interface PropertyMetaModel<T>
public TemporalPresentationType getTemporal()
PropertyMetaModel
getTemporal
in interface PropertyMetaModel<T>
public PropertyMetaValidator[] getValidators()
PropertyMetaModel
getValidators
in interface PropertyMetaModel<T>
public java.lang.String[][] getViewRoles()
PropertyMetaModel
{ {"admin"} , {"editroles", "user"} , {"tester"} };this means that the field is visible for a user with the roles:
"admin" OR "tester" OR ("editroles" AND "user")
getViewRoles
in interface PropertyMetaModel<T>
public boolean isPrimaryKey()
PropertyMetaModel
isPrimaryKey
in interface PropertyMetaModel<T>
public boolean isRequired()
PropertyMetaModel
isRequired
in interface PropertyMetaModel<T>
public boolean isTransient()
PropertyMetaModel
isTransient
in interface PropertyMetaModel<T>
public java.util.List<SearchPropertyMetaModel> getLookupFieldSearchProperties()
PropertyMetaModel
LookupInput
field, this fields are used to create the search inputs.
getLookupFieldSearchProperties
in interface PropertyMetaModel<T>
public java.util.List<SearchPropertyMetaModel> getLookupFieldKeySearchProperties()
PropertyMetaModel
LookupInput
field, this fields are used to create the keyword search inputs.
getLookupFieldKeySearchProperties
in interface PropertyMetaModel<T>
public java.util.List<DisplayPropertyMetaModel> getLookupTableProperties()
PropertyMetaModel
LookupInput
field, this fields are used to show the result of a Search in the DataTable.
getLookupTableProperties
in interface PropertyMetaModel<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |