com.jgoodies.common.format
Class AbstractWrappedDateFormat
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 {@code DateFormat} and delegates most
of its behavior to the delegate, except for the abstract methods
AbstractWrappedDateFormat and
AbstractWrappedDateFormat that can be overridden by
a subclass. For example the subclass EmptyDateFormat wraps a DateFormat
but it parses the empty String and returns {@code null} where the
predefined Java DateFormats throw an exception.
Version: $Revision: 1.4 $
Author: Karsten Lentzsch
Field Summary |
protected DateFormat | delegate
Refers to the wrapped Format that is used to forward
{@code #format} and {@code #parseObject}. |
protected final DateFormat delegate
Refers to the wrapped Format that is used to forward
{@code #format} and {@code #parseObject}.
public AbstractWrappedDateFormat(DateFormat delegate)
Constructs an AbstractWrappedDateFormat that wraps the given DateFormat.
Parameters: delegate the format that handles the standard cases
Copyright © 2009-2010 JGoodies Karsten Lentzsch. All Rights Reserved.