|
|||||||||
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 FieldType
.
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.widgets.form.fields.DateItem |
---|
deselectValue, deselectValue, getCenturyThreshold, getEndDate, getEnforceDate, getInvalidDateStringMessage, getPickerIconPrompt, getSelectionRange, getSelectorFormat, getStartDate, getTextAlign, selectValue, setCenturyThreshold, setDateFormatter, setEndDate, setEnforceDate, setInvalidDateStringMessage, setMaskDateSeparator, setPickerIconPrompt, setSelectionRange, setSelectorFormat, setStartDate, setTextAlign, setUseMask |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsIntArray, getAttributeAsMap, getAttributeAsObject, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, 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 setUseTextField(Boolean useTextField)
setUseTextField
in class DateItem
useTextField
- useTextField Default value is truepublic Boolean getUseTextField()
getUseTextField
in class DateItem
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 com.smartgwt.client..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 DateItem
displayFormat
- displayFormat Default value is nullpublic DateDisplayFormat getDisplayFormat()
DateDisplayFormat
or a function which will return a formatted date time string. If
unset, the standard shortDateTime format as set up in com.smartgwt.client..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
getDisplayFormat
in class DateItem
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 displayFormat
if possible
(see DateItem.getInputFormat()
), otherwise picked up from the Date class
(see com.smartgwt.client..Date#setInputFormat
). Should be set to a standard com.smartgwt.client..DateInputFormat
or a function which will take a date string as a parameter and return a Javascript
Date object.
setInputFormat
in class DateItem
inputFormat
- inputFormat Default value is nullpublic 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 displayFormat
if possible
(see DateItem.getInputFormat()
), otherwise picked up from the Date class
(see com.smartgwt.client..Date#setInputFormat
). Should be set to a standard com.smartgwt.client..DateInputFormat
or a function which will take a date string as a parameter and return a Javascript
Date object.
getInputFormat
in class DateItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |