|
|||||||||
| 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.DateItem
com.smartgwt.client.widgets.form.fields.DateTimeItem
public class DateTimeItem
Subclass of DateItem for manipulating datetimes.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
DateTimeItem()
|
|
DateTimeItem(JavaScriptObject jsObj)
|
|
DateTimeItem(String name)
|
|
DateTimeItem(String name,
String title)
|
|
| Method Summary | |
|---|---|
DateDisplayFormat |
getDisplayFormat()
This property can be used to customize the format in which datetimes are displayed. Should be set to a standard DateDisplayFormat or a function which will return a formatted date time string. |
String |
getInputFormat()
If useTextField is true this
property can be used to specify the input format for date strings. |
static DateTimeItem |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getUseTextField()
DateTimeItems show datetime values in a freeform text entry area. |
void |
setDisplayFormat(DateDisplayFormat displayFormat)
This property can be used to customize the format in which datetimes are displayed. Should be set to a standard DateDisplayFormat or a function which will return a formatted date time string. |
void |
setInputFormat(String inputFormat)
If useTextField is true this
property can be used to specify the input format for date strings. |
void |
setUseTextField(Boolean useTextField)
DateTimeItems show datetime values in a freeform text entry area. |
| 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 DateTimeItem()
public DateTimeItem(JavaScriptObject jsObj)
public DateTimeItem(String name)
public DateTimeItem(String name,
String title)
| Method Detail |
|---|
public static DateTimeItem getOrCreateRef(JavaScriptObject jsObj)
public void setDisplayFormat(DateDisplayFormat displayFormat)
DateDisplayFormat or a function which will return a formatted date time string. If unset, the standard shortDateTime format as set up in Date.setShortDatetimeDisplayFormat will be used.
NOTE:
you may need to update the inputFormat to
ensure the DateItem is able to parse user-entered date strings back into Dates
setDisplayFormat in class FormItemdisplayFormat - displayFormat Default value is nullsetInputFormat(java.lang.String)public DateDisplayFormat getDisplayFormat()
DateDisplayFormat or a function which will return a formatted date time string. If unset, the standard shortDateTime format as set up in Date.setShortDatetimeDisplayFormat will be used.
NOTE:
you may need to update the inputFormat to
ensure the DateItem is able to parse user-entered date strings back into Dates
getInputFormat()public void setInputFormat(String inputFormat)
useTextField is true this
property can be used to specify the input format for date strings. If unset, the input format will be determined based
on the specified dateFormtter if possible (see
DateItem.getInputFormat), otherwise picked up
from the Date class (see Date.setInputFormat). Should be set to a standard String
Note that the String property
is sufficient to parse date or datetime strings specified in most standard date formats. However should an entirely
custom parsing function be required developers can
implement a custom DateItem.parseEditorValue method. apply a custom editorValueParser function.
setInputFormat in class DateItem
inputFormat - inputFormat Default value is nullFormItem.setDisplayFormat(com.smartgwt.client.types.DateDisplayFormat)
public String getInputFormat()
useTextField is true this
property can be used to specify the input format for date strings. If unset, the input format will be determined based
on the specified dateFormtter if possible (see
DateItem.getInputFormat), otherwise picked up
from the Date class (see Date.setInputFormat). Should be set to a standard String
Note that the String property
is sufficient to parse date or datetime strings specified in most standard date formats. However should an entirely
custom parsing function be required developers can
implement a custom DateItem.parseEditorValue method. apply a custom editorValueParser function.
getInputFormat in class DateItem
com.smartgwt.client.widgets.form.fields.DateItem#getDisplayFormat
public void setUseTextField(Boolean useTextField)
setUseTextField in class DateItemuseTextField - useTextField Default value is trueBasics overview and related methodspublic Boolean getUseTextField()
getUseTextField in class DateItemBasics overview and related methods
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||