|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.widget.form.DateTimePropertyEditor
public class DateTimePropertyEditor
A PropertyEditor implementation for Dates. This implementation
delegates formatting and parsing the to the underlying @link
DateTimeFormat. @link DateTimeFormat.getShortDateFormat() is
the default format.
DateTimeFormat.parse(String), to parse "strictly" use
setParseStrict(boolean) to enable. When true, strings are parsed
with @link DateTimeFormat.parseStrict(String).
DateTimeFormat| Field Summary | |
|---|---|
protected com.google.gwt.i18n.client.DateTimeFormat |
format
|
protected boolean |
parseStrict
|
| Fields inherited from interface com.extjs.gxt.ui.client.widget.form.PropertyEditor |
|---|
DEFAULT |
| Constructor Summary | |
|---|---|
DateTimePropertyEditor()
Creates a new date time property editor. |
|
DateTimePropertyEditor(com.google.gwt.i18n.client.DateTimeFormat format)
Creates a new date time property editor. |
|
DateTimePropertyEditor(java.lang.String pattern)
Creates a new date time property editor. |
|
| Method Summary | |
|---|---|
java.util.Date |
convertStringValue(java.lang.String value)
Converts a string to the typed value. |
com.google.gwt.i18n.client.DateTimeFormat |
getFormat()
Returns the date time format. |
java.lang.String |
getStringValue(java.util.Date value)
Returns the data as a string. |
boolean |
isParseStrict()
Returns true if parsing stictly. |
void |
setFormat(com.google.gwt.i18n.client.DateTimeFormat format)
Sets the date time format. |
void |
setParseStrict(boolean parseStrict)
True to parse dates strictly (defaults to true). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.google.gwt.i18n.client.DateTimeFormat format
protected boolean parseStrict
| Constructor Detail |
|---|
public DateTimePropertyEditor()
public DateTimePropertyEditor(com.google.gwt.i18n.client.DateTimeFormat format)
format - the date time formatpublic DateTimePropertyEditor(java.lang.String pattern)
pattern - the pattern used to create a new @link
DateTimeFormat.| Method Detail |
|---|
public java.util.Date convertStringValue(java.lang.String value)
PropertyEditor
convertStringValue in interface PropertyEditor<java.util.Date>value - the string value
public com.google.gwt.i18n.client.DateTimeFormat getFormat()
public java.lang.String getStringValue(java.util.Date value)
PropertyEditor
getStringValue in interface PropertyEditor<java.util.Date>value - the typed value
public boolean isParseStrict()
public void setFormat(com.google.gwt.i18n.client.DateTimeFormat format)
format - the formatpublic void setParseStrict(boolean parseStrict)
DateTimeFormat.parseStrict(String).
parseStrict - true to parse strictly
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||