Example #1
0
    @Override
    public void showDatePicker() {
      if (!getTextBox().getText().trim().isEmpty() || defaultMonth == null) {
        super.showDatePicker();
        return;
      }

      super.showDatePicker();
      getDatePicker().setCurrentMonth(defaultMonth);
    }
 @DoNotRunWith(Platform.HtmlUnitBug)
 public void testAccessors() {
   DateBox db = new DateBox();
   assertFalse(db.isDatePickerShowing());
   db.showDatePicker();
   assertTrue(db.isDatePickerShowing());
   db.hideDatePicker();
   assertFalse(db.isDatePickerShowing());
 }