Package javafx.scene.control

Examples of javafx.scene.control.TextField.clear()


      @Override
      public void changed(ObservableValue<? extends Integer> observable, Integer oldValue, Integer newValue) {
        if (newValue!=null && !model.isNull() && !textfield.isFocused()){
          textfield.setText(dateFormat.format(model.getDate()));
        } else {
          textfield.clear();
        }
      }
    });
   
    hbox.getChildren().add(textfield);
View Full Code Here


    click(".CalendarTextField .text-field");
    type("2010");
    click(".button"); //just to move the focus
    Assert.assertEquals("2010-01-01T00:00:00.000", TestUtil.quickFormatCalendarAsDateTime(lCalendarTextField.getCalendar()) );
    TestUtil.runThenWaitForPaintPulse( () -> {
      lTextField.clear();
    });
   
    // type value
    click(".CalendarTextField .text-field");
    type("2010-06");
View Full Code Here

    click(".CalendarTextField .text-field");
    type("2010-06");
    click(".button"); //just to move the focus
    Assert.assertEquals("2010-06-01T00:00:00.000", TestUtil.quickFormatCalendarAsDateTime(lCalendarTextField.getCalendar()) );
    TestUtil.runThenWaitForPaintPulse( () -> {
      lTextField.clear();
    });
   
    // type value
    click(".CalendarTextField .text-field");
    type("2010-06-12");
View Full Code Here

    click(".CalendarTextField .text-field");
    type("2010-06-12");
    click(".button"); //just to move the focus
    Assert.assertEquals("2010-06-12T00:00:00.000", TestUtil.quickFormatCalendarAsDateTime(lCalendarTextField.getCalendar()) );
    TestUtil.runThenWaitForPaintPulse( () -> {
      lTextField.clear();
    });
  }

  /**
   *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.