|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface MetaProperty
Annotation to add metadata to a property. Data defined in here is added to any data discovered in another way, for instance by scanning JPA annotations. So do not repeat things.
Optional Element Summary | |
---|---|
java.lang.String |
componentTypeHint
This is a hint string which can help a component factory decide how to render a component. |
java.lang.Class<? extends IConverter<?>> |
converterClass
If you have special non-default string-object and object-string conversion rules for this property you can specify your own converter class doing those conversions here. |
SortableType |
defaultSortable
Defines whether the property should be sortable when used in a default table, and defines the initial sort direction of the property. |
int |
displaySize
The size, in characters, that should be used as the display size. |
java.lang.String[] |
editpermissions
|
int |
length
The actual maximal input length (for a string) or the precision to use (for a number). |
NumericPresentation |
numericPresentation
Defines the number class AND it's presentation format for numeric values. |
MetaValueValidator[] |
parameterizedValidator
|
YesNoType |
readOnly
Defines this as a readonly (displayonly) property (by default). |
java.lang.String |
regexpUserString
|
java.lang.String |
regexpValidation
A regular expression defining what text input must look like to be accepted. |
YesNoType |
required
Whether the value is a required value. |
TemporalPresentationType |
temporal
If this is defined as some Date type this further defines the domain (date only, date time etc). |
java.lang.Class<? extends IValueValidator<?>>[] |
validator
Defines one or more parameterless validators for this field. |
java.lang.String[] |
viewpermissions
A set of strings that indicate the roles a user must have to view this field. |
public abstract SortableType defaultSortable
public abstract int displaySize
public abstract int length
public abstract YesNoType required
public abstract java.lang.Class<? extends IConverter<?>> converterClass
public abstract YesNoType readOnly
required()
.
public abstract TemporalPresentationType temporal
public abstract java.lang.String[] viewpermissions
public abstract java.lang.String[] editpermissions
public abstract java.lang.String componentTypeHint
public abstract java.lang.Class<? extends IValueValidator<?>>[] validator
public abstract MetaValueValidator[] parameterizedValidator
public abstract java.lang.String regexpValidation
regexpUserString()
.
public abstract java.lang.String regexpUserString
public abstract NumericPresentation numericPresentation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |