|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.form.fields.FormItem
com.smartgwt.client.widgets.form.fields.StaticTextItem
public class StaticTextItem
A FormItem that displays an uneditable value.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
StaticTextItem()
|
|
StaticTextItem(JavaScriptObject jsObj)
|
|
StaticTextItem(java.lang.String name)
|
|
StaticTextItem(java.lang.String name,
java.lang.String title)
|
|
| Method Summary | |
|---|---|
java.lang.Boolean |
getClipValue()
If true, text that exceeds the specified size of the form item will be clipped |
DateDisplayFormat |
getDateFormatter()
Display format to use for date type values within this formItem. |
java.lang.Boolean |
getEscapeHTML()
By default HTML values in a staticTextItem will be interpreted by the browser. |
static StaticTextItem |
getOrCreateRef(JavaScriptObject jsObj)
|
java.lang.String |
getTextBoxStyle()
Base CSS class for this item |
java.lang.Boolean |
getWrap()
If true, item contents can wrap. |
void |
setClipValue(java.lang.Boolean clipValue)
If true, text that exceeds the specified size of the form item will be clipped |
void |
setDateFormatter(DateDisplayFormat dateFormatter)
Display format to use for date type values within this formItem. |
void |
setEscapeHTML(java.lang.Boolean escapeHTML)
By default HTML values in a staticTextItem will be interpreted by the browser. |
void |
setTextBoxStyle(java.lang.String textBoxStyle)
Base CSS class for this item |
void |
setWrap(java.lang.Boolean wrap)
If true, item contents can wrap. |
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.DataClass |
|---|
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public StaticTextItem()
public StaticTextItem(JavaScriptObject jsObj)
public StaticTextItem(java.lang.String name)
public StaticTextItem(java.lang.String name,
java.lang.String title)
| Method Detail |
|---|
public static StaticTextItem getOrCreateRef(JavaScriptObject jsObj)
public void setClipValue(java.lang.Boolean clipValue)
clipValue - clipValue Default value is falseAppearance overview and related methodspublic java.lang.Boolean getClipValue()
Appearance overview and related methodspublic void setDateFormatter(DateDisplayFormat dateFormatter)
Note that Fields of type "date",
"datetime" or "time" will be edited using a DateItem or TimeItem by
default, but this can be overridden - for canEdit:false fields, a StaticTextItem is used by default, and the developer can always specify a
custom editorType as well as data type.
The timeFormatter may also be used to format underlying
Date values as times (ommitting the date part entirely). If both dateFormatter and
timeFormatter are specified on an item, for fields specified as type "time" the timeFormatter will be used,
otherwise the dateFormatter
If item.dateFormatter and item.timeFormatter is
unspecified, date display format may be defined at the component level via dateFormatter, or for fields of type
"datetime" datetimeFormatter.
Otherwise for fields of type "date", default is to use the system-wide default short date format, configured via
Date.setShortDisplayFormat. For fields of type "datetime" or for Date values in fields whose type does not inherit from
the logical "date" type, default is to use the system-wide normal date format configured via
Date.setNormalDisplayFormat (using "toNormalDate()" on logical "date" type fields is not desirable as this
would display the time component of the date object to the user).
Specify any valid DateDisplayFormat to change the format used by this item.
Note : This is an advanced setting
setDateFormatter in class FormItemdateFormatter - dateFormatter Default value is nullFormItem.setTimeFormatter(com.smartgwt.client.types.TimeDisplayFormat),
Appearance overview and related methodspublic DateDisplayFormat getDateFormatter()
Note that Fields of type "date",
"datetime" or "time" will be edited using a DateItem or TimeItem by
default, but this can be overridden - for canEdit:false fields, a StaticTextItem is used by default, and the developer can always specify a
custom editorType as well as data type.
The timeFormatter may also be used to format underlying
Date values as times (ommitting the date part entirely). If both dateFormatter and
timeFormatter are specified on an item, for fields specified as type "time" the timeFormatter will be used,
otherwise the dateFormatter
If item.dateFormatter and item.timeFormatter is
unspecified, date display format may be defined at the component level via dateFormatter, or for fields of type
"datetime" datetimeFormatter.
Otherwise for fields of type "date", default is to use the system-wide default short date format, configured via
Date.setShortDisplayFormat. For fields of type "datetime" or for Date values in fields whose type does not inherit from
the logical "date" type, default is to use the system-wide normal date format configured via
Date.setNormalDisplayFormat (using "toNormalDate()" on logical "date" type fields is not desirable as this
would display the time component of the date object to the user).
Specify any valid DateDisplayFormat to change the format used by this item.
getDateFormatter in class FormItemFormItem.getTimeFormatter(),
Appearance overview and related methodspublic void setEscapeHTML(java.lang.Boolean escapeHTML)
"<b>AAA</b>") is
displayed to the user rather than the interpreted HTML (for example "AAA")
escapeHTML - escapeHTML Default value is falseAppearance overview and related methodspublic java.lang.Boolean getEscapeHTML()
"<b>AAA</b>") is
displayed to the user rather than the interpreted HTML (for example "AAA")
Appearance overview and related methodspublic void setTextBoxStyle(java.lang.String textBoxStyle)
setTextBoxStyle in class FormItemtextBoxStyle - textBoxStyle Default value is "staticTextItem"Appearance overview and related methodspublic java.lang.String getTextBoxStyle()
getTextBoxStyle in class FormItemAppearance overview and related methodspublic void setWrap(java.lang.Boolean wrap)
wrap - wrap Default value is trueAppearance overview and related methodspublic java.lang.Boolean getWrap()
Appearance overview and related methods
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||