public class Field extends RefDataClass
Field container implementations may extend this type with additional attributes
and/or methods. For example, DataSource
uses DataSourceField
, DataBoundComponent
uses DBCField
, and ListGrid
uses ListGridField
(itself an extension of DBCField
).
In general,
Field
instances should not be shared with multiple field containers.
id
factoryCreated, factoryProperties
Constructor and Description |
---|
Field() |
Field(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getCanEdit()
If set to
true , then values for the field are considered editable. |
java.lang.Boolean |
getCanExport()
If set to
true , then values for the field are considered exportable. |
java.lang.Boolean |
getEscapeHTML()
If set to
true , then values for the field will be HTML-escaped. |
java.lang.String |
getExportTitle()
Optional title HTML to use for the field in exports.
|
java.lang.Boolean |
getMultiple()
If set to
true , then the field is array-valued. |
java.lang.String |
getName()
Name of the field.
|
static Field |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getSortByField()
If set to a field name, causes the field to be sorted by the values in the specified field, for both client- and
server-side sorting.
|
java.lang.String |
getTitle()
An
HTMLString to use as the displayable title for this field outside the context of a
field container. |
java.util.Map |
getValueMap()
If set, specifies the set of legal values for the field.
|
Field |
setCanEdit(java.lang.Boolean canEdit)
If set to
true , then values for the field are considered editable. |
Field |
setCanExport(java.lang.Boolean canExport)
If set to
true , then values for the field are considered exportable. |
Field |
setEscapeHTML(java.lang.Boolean escapeHTML)
If set to
true , then values for the field will be HTML-escaped. |
Field |
setExportTitle(java.lang.String exportTitle)
Optional title HTML to use for the field in exports.
|
Field |
setMultiple(java.lang.Boolean multiple)
If set to
true , then the field is array-valued. |
Field |
setName(java.lang.String name)
Name of the field.
|
Field |
setRequired(java.lang.Boolean required)
If set to
true , then a value for this field is required to pass validation. |
Field |
setSortByField(java.lang.String sortByField)
If set to a field name, causes the field to be sorted by the values in the specified field, for both client- and
server-side sorting.
|
Field |
setTitle(java.lang.String title)
An
HTMLString to use as the displayable title for this field outside the context of a
field container. |
Field |
setValueMap(java.util.Map valueMap)
If set, specifies the set of legal values for the field.
|
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public Field()
public Field(com.google.gwt.core.client.JavaScriptObject jsObj)
public static Field getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public Field setCanEdit(java.lang.Boolean canEdit)
true
, then values for the field are considered editable. If set to false
, then
values for the field cannot be edited. If null
, then the determination is left to the field container.canEdit
- New canEdit value. Default value is nullField
instance, for chaining setter callspublic java.lang.Boolean getCanEdit()
true
, then values for the field are considered editable. If set to false
, then
values for the field cannot be edited. If null
, then the determination is left to the field container.public Field setCanExport(java.lang.Boolean canExport)
true
, then values for the field are considered exportable. If set to false
, then
values for the field will not be exported. If null
, then the determination is left to the field container.canExport
- New canExport value. Default value is nullField
instance, for chaining setter callspublic java.lang.Boolean getCanExport()
true
, then values for the field are considered exportable. If set to false
, then
values for the field will not be exported. If null
, then the determination is left to the field container.public Field setEscapeHTML(java.lang.Boolean escapeHTML)
true
, then values for the field will be HTML-escaped.escapeHTML
- New escapeHTML value. Default value is nullField
instance, for chaining setter callspublic java.lang.Boolean getEscapeHTML()
true
, then values for the field will be HTML-escaped.public Field setExportTitle(java.lang.String exportTitle)
exportTitle
- New exportTitle value. Default value is nullField
instance, for chaining setter callsHTMLString
public java.lang.String getExportTitle()
HTMLString
public Field setMultiple(java.lang.Boolean multiple)
true
, then the field is array-valued.multiple
- New multiple value. Default value is nullField
instance, for chaining setter callspublic java.lang.Boolean getMultiple()
true
, then the field is array-valued.public Field setName(java.lang.String name)
public java.lang.String getName()
FieldName
public Field setRequired(java.lang.Boolean required)
true
, then a value for this field is required to pass validation.required
- New required value. Default value is nullField
instance, for chaining setter callspublic Field setSortByField(java.lang.String sortByField)
public java.lang.String getSortByField()
FieldName
public Field setTitle(java.lang.String title)
HTMLString
to use as the displayable title for this field outside the context of a
field container. Within a DataBoundComponent
:
DataBoundComponent.setFieldTitle()
.
DataBoundComponent.getFieldTitle()
method to obtain the field's title. title
- New title value. Default value is nullField
instance, for chaining setter callssetExportTitle(java.lang.String)
,
HTMLString
public java.lang.String getTitle()
HTMLString
to use as the displayable title for this field outside the context of a
field container. Within a DataBoundComponent
:
DataBoundComponent.setFieldTitle()
.
DataBoundComponent.getFieldTitle()
method to obtain the field's title. getExportTitle()
,
HTMLString
public Field setValueMap(java.util.Map valueMap)
valueMap
- New valueMap value. Default value is nullField
instance, for chaining setter callspublic java.util.Map getValueMap()