|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.data.DataField
public class DataField
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. |
| 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 | |
|---|---|
java.lang.String |
getFormat()
Returns the format used when the type has been set to java.util.Date. |
java.lang.String |
getMap()
Returns the map. |
java.lang.String |
getName()
Returns the name. |
java.lang.Class<?> |
getType()
Returns the type. |
void |
setFormat(java.lang.String format)
Format is used when converting raw data to object instances. |
void |
setMap(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. |
void |
setName(java.lang.String name)
Sets the name of the field. |
void |
setType(java.lang.Class<?> type)
The data type of the field used when converting the raw value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DATE_TYPE
| Constructor Detail |
|---|
public DataField(java.lang.String name)
name - the name
public DataField(java.lang.String name,
java.lang.String map)
name - the field namemap - the map name| Method Detail |
|---|
public java.lang.String getFormat()
public java.lang.String getMap()
public java.lang.String getName()
public java.lang.Class<?> getType()
public void setFormat(java.lang.String format)
DateTimeFormat. If the raw data is a
timestamp, the format should be set to "timestamp".
format - the formatpublic void setMap(java.lang.String map)
XmlReader the map value is treated as a xpath selector.
map - the mappublic void setName(java.lang.String name)
name - the fieldpublic void setType(java.lang.Class<?> type)
type -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||