public class DateStringPropertyEditor extends AbstractPropertyEditor
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
DEFAULT_DATE_FORMAT |
editor| Constructor and Description |
|---|
DateStringPropertyEditor()
Constructor for JCalendarPropertyEditor
|
DateStringPropertyEditor(Locale locale)
Constructor for JCalendarPropertyEditor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText()
Returns the Date formated with the locale and formatString set.
|
Object |
getValue()
Returns the Date of the Calendar
|
void |
setValue(Object value)
Sets the Date of the Calendar
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, supportsCustomEditorpublic static final SimpleDateFormat DEFAULT_DATE_FORMAT
public DateStringPropertyEditor()
public DateStringPropertyEditor(Locale locale)
locale - Locale used to display the Date objectpublic Object getValue()
getValue in interface PropertyEditorgetValue in class AbstractPropertyEditorpublic void setValue(Object value)
setValue in interface PropertyEditorsetValue in class AbstractPropertyEditorvalue - the Date objectpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class AbstractPropertyEditorCopyright © 2015. All rights reserved.