Package docking.options.editor

# Class DateEditor

java.lang.Object
java.beans.PropertyEditorSupport
docking.options.editor.DateEditor

All Implemented Interfaces:
  `PropertyEditor`

public class DateEditor extends PropertyEditorSupport
Non-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 DateFormat`
  `DEFAULT_DATE_FORMAT`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DateEditor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `format(Date d)`
  `Component`
  `getCustomEditor()`
  `Object`
  `getValue()`
  `void`
  `setAsText(String text)`
  `void`
  `setDateFormat(DateFormat format)`
  `void`
  `setValue(Object value)`
  `boolean`
  `supportsCustomEditor()`

  ### Methods inherited from class java.beans.PropertyEditorSupport

  `addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### DEFAULT_DATE_FORMAT

    public static DateFormat DEFAULT_DATE_FORMAT

- ## Constructor Details

  - ### DateEditor

    public DateEditor()

- ## Method Details

  - ### setDateFormat

    public void setDateFormat(DateFormat format)

  - ### format

    public String format(Date d)

  - ### getCustomEditor

    public Component getCustomEditor()
    Specified by:
      `getCustomEditor` in interface `PropertyEditor`
    Overrides:
      `getCustomEditor` in class `PropertyEditorSupport`

  - ### supportsCustomEditor

    public boolean supportsCustomEditor()
    Specified by:
      `supportsCustomEditor` in interface `PropertyEditor`
    Overrides:
      `supportsCustomEditor` in class `PropertyEditorSupport`

  - ### getValue

    public Object getValue()
    Specified by:
      `getValue` in interface `PropertyEditor`
    Overrides:
      `getValue` in class `PropertyEditorSupport`

  - ### setValue

    public void setValue(Object value)
    Specified by:
      `setValue` in interface `PropertyEditor`
    Overrides:
      `setValue` in class `PropertyEditorSupport`

  - ### setAsText

    public void setAsText(String text) throws IllegalArgumentException
    Specified by:
      `setAsText` in interface `PropertyEditor`
    Overrides:
      `setAsText` in class `PropertyEditorSupport`
    Throws:
      `IllegalArgumentException`