コード例 #1
0
 @Override
 public void reset(DateBox dateBox, boolean abandon) {
   // Just do whatever the superclass would do
   try {
     DateBox.Format f = new DateBox.DefaultFormat();
     f.reset(dateBox, abandon);
   } catch (Exception ex) {
     JsonUtil.debug("CustomDatePicker.reset: " + ex.toString());
   }
 }
コード例 #2
0
 @Override
 public Date parse(DateBox dateBox, String text, boolean reportError) {
   // Try default parser
   DateBox.Format f = new DateBox.DefaultFormat();
   Date p = importSqlDate(text); // f.parse(dateBox, text, false);
   if (p == null) {
     JsonUtil.debug("CustomDatePicker.parse: " + importSqlDate(text));
     return f.parse(dateBox, text, false); // importSqlDate(text);
   } else {
     JsonUtil.debug("CustomDatePicker.parse: " + p);
     return p;
   }
 }