com.extjs.gxt.ui.client.data
Class DataField

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.DataField

public class DataField
extends java.lang.Object

Describes a field in a Model. Used when mapping raw data to a model's properties.


Field Summary
static java.lang.String DATE_TYPE
          Field type constant for dates.
 java.lang.String format
          Format is used when converting raw data to object instances.
 java.lang.String map
          An optional field used when the property name of the model is different than the property name of the raw data.
 java.lang.String name
          The name of the field.
 java.lang.Class type
          The data type of the field.
 
Constructor Summary
DataField(java.lang.String name)
          Creates a new field.
DataField(java.lang.String name, java.lang.String map)
          Creates a new field instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_TYPE

public static final java.lang.String DATE_TYPE
Field type constant for dates.

See Also:
Constant Field Values

name

public java.lang.String name
The name of the field.


map

public java.lang.String map
An optional field used when the property name of the model is different than the property name of the raw data. The values is treated as a CSS selector.


type

public java.lang.Class type
The data type of the field.


format

public java.lang.String format
Format is used when converting raw data to object instances. For dates, a format of "timestamp" can be used to convert timestamps.

Constructor Detail

DataField

public DataField(java.lang.String name)
Creates a new field.

Parameters:
name - the name

DataField

public DataField(java.lang.String name,
                 java.lang.String map)
Creates a new field instance.

Parameters:
name - the field name
map - the map name