de.matthiasmann.twl
Interface DatePicker.ParseHook

Enclosing class:
DatePicker

public static interface DatePicker.ParseHook


Method Summary
 boolean parse(java.lang.String text, java.util.Calendar calendar, boolean update)
          Try to parse the text as date
 

Method Detail

parse

boolean parse(java.lang.String text,
              java.util.Calendar calendar,
              boolean update)
              throws java.text.ParseException
Try to parse the text as date

Parameters:
text - the text to parse
calendar - the calendar object - don't modify unless update is true
update - true if the calendar should be upadted on success
Returns:
true if the parsing was sucessful, false if the default parsing should be executed
Throws:
java.text.ParseException - if the text could not be parsed and the default parsing should be skipped