@Target(value=FIELD) @Retention(value=RUNTIME) @Inherited @Documented public @interface ModelField
| Modifier and Type | Optional Element and Description |
|---|---|
String |
convert
Function which coerces string values in raw data into the field's type
Typical use for a virtual field Property ' Ext.data.Field.convert' in JS. |
String |
dateFormat
Specifies format of date.
|
String |
defaultValue
The default value.
|
String |
mapping
Typical use for a virtual field to extract field data from the model
object
Property 'mapping' in JS. |
boolean |
persist
Prevent the value of this field to be serialized or written with
Ext.data.writer.Writer
Typical use for a virtual field Property 'persist' in JS. |
ModelType |
type
Type of the field.
|
boolean |
useNull
If true null value is used if value cannot be parsed.
|
String |
value
Name of the field.
|
public abstract String value
If not present the name of the field is used.
public abstract ModelType type
If not present the library tries to figure out the type with
ModelType.
public abstract String defaultValue
Can be set to DEFAULTVALUE_UNDEFINED to set defaultValue to the
value undefined. This prevents defaulting a value.
public abstract String dateFormat
Will be ignored if the field is not a ModelType.DATE field.
public abstract boolean useNull
Only used if type of field is ModelType.INTEGER,
ModelType.FLOAT, ModelType.STRING or
ModelType.BOOLEAN.
public abstract String mapping
public abstract boolean persist
public abstract String convert
Copyright © 2010-2013. All Rights Reserved.