Package docking.options.editor
Class DateEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- docking.options.editor.DateEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class DateEditor extends java.beans.PropertyEditorSupportNon-editable Editor for date and time; creates a text field for the string version of the date.
-
-
Field Summary
Fields Modifier and Type Field Description static java.text.DateFormatDEFAULT_DATE_FORMAT
-
Constructor Summary
Constructors Constructor Description DateEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(java.util.Date d)java.awt.ComponentgetCustomEditor()java.lang.ObjectgetValue()voidsetAsText(java.lang.String text)voidsetDateFormat(java.text.DateFormat format)voidsetValue(java.lang.Object value)booleansupportsCustomEditor()
-
-
-
Method Detail
-
setDateFormat
public void setDateFormat(java.text.DateFormat format)
-
format
public java.lang.String format(java.util.Date d)
-
getCustomEditor
public java.awt.Component getCustomEditor()
- Specified by:
getCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
getCustomEditorin classjava.beans.PropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
supportsCustomEditorin classjava.beans.PropertyEditorSupport
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfacejava.beans.PropertyEditor- Overrides:
getValuein classjava.beans.PropertyEditorSupport
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValuein interfacejava.beans.PropertyEditor- Overrides:
setValuein classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport- Throws:
java.lang.IllegalArgumentException
-
-