Class AbstractWrappedDateFormat

java.lang.Object
java.text.Format
java.text.DateFormat
com.jgoodies.common.format.AbstractWrappedDateFormat
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
EmptyDateFormat

public abstract class AbstractWrappedDateFormat extends DateFormat
Reduces the effort required to write custom DateFormat implementations that retain the ability to iterate through Dates with the arrow keys in formatted text fields (using an appropriate DateFormatter). This class wraps a given DateFormat and delegates most of its behavior to the delegate, except for the abstract methods format(Date, StringBuffer, FieldPosition) and parse(String, ParsePosition) that can be overridden by a subclass. For example the subclass EmptyDateFormat wraps a DateFormat but it parses the empty String and returns null where the predefined Java DateFormats throw an exception.

See Also: