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

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