public class DateTimePropertyEditor extends PropertyEditor<Date>
Modifier and Type | Field and Description |
---|---|
protected DateTimeFormat |
format |
protected boolean |
parseStrict |
DEFAULT
Constructor and Description |
---|
DateTimePropertyEditor()
Creates a new date time property editor.
|
DateTimePropertyEditor(DateTimeFormat format)
Creates a new date time property editor.
|
Modifier and Type | Method and Description |
---|---|
DateTimeFormat |
getFormat()
Returns the date time format.
|
boolean |
isParseStrict()
Returns true if parsing strictly.
|
Date |
parse(CharSequence text) |
String |
render(Date value) |
void |
setParseStrict(boolean parseStrict)
True to parse dates strictly (defaults to true).
|
render
public DateTimePropertyEditor()
public DateTimePropertyEditor(DateTimeFormat format)
format
- the date time formatpublic DateTimeFormat getFormat()
public boolean isParseStrict()
public Date parse(CharSequence text) throws ParseException
ParseException
public void setParseStrict(boolean parseStrict)
DateTimeFormat#parseStrict(String)
.parseStrict
- true to parse strictlyCopyright © 2018. All rights reserved.