JDatePicker v4.3

com.standbysoft.component.date
Interface DateParser

All Known Implementing Classes:
DefaultDateParser

public interface DateParser

The date parser interface defines the operation that must be implemented by any other object wants to scan a text in order to produce a date. Such a parser can be plugged in any JDateEditComponent to customise the way dates are entered.


Method Summary
 java.util.Date parse(java.lang.String text, java.util.Date reference, java.text.DateFormat format)
          Parses a text that could be represented using a certain date format to determine the date it represents.
 

Method Detail

parse

public java.util.Date parse(java.lang.String text,
                            java.util.Date reference,
                            java.text.DateFormat format)
                     throws DateParserException
Parses a text that could be represented using a certain date format to determine the date it represents.

Parameters:
text - text representation of a possible date
reference - possible reference date the parser could use to compute the new date
format - date format that could be used to represent the date in text form
Returns:
date resulted from the text representation.
Throws:
DateParserException - if the parsed text does not match a date

JDatePicker v4.3

Visit www.jdatepicker.com for further information or send us your suggestions.

Copyright © 2003-2007 Stand By Soft Ltd. All Rights Reserved.