Package jfxtras.scene.control

Examples of jfxtras.scene.control.LocalTimePicker


   * Implementation of Builder interface
   */
  @Override
  public LocalTimePicker build()
  {
    LocalTimePicker lLocalTimePicker = new LocalTimePicker();
    if (locale != null) {
      lLocalTimePicker.setLocale(locale);
    }
    if (localTime != null) {
      lLocalTimePicker.setLocalTime(localTime);     
    }
    if (minuteStep != null) {
      lLocalTimePicker.setMinuteStep(minuteStep);
    }
    if (secondStep != null) {
      lLocalTimePicker.setSecondStep(secondStep);
    }
    applyCommonProperties(lLocalTimePicker);
    return lLocalTimePicker;
  }
View Full Code Here


  {
    // show the correct tab
    click("#defaultControl");
   
    // get the node
    LocalTimePicker lLocalTimePicker = (LocalTimePicker)find("#id1"); // TODO: this should be accessible through .LocalTimePicker
    Text lLabelText = (Text)find(".timeLabel");
   
    // default value is not null
    Assert.assertNotNull(lLocalTimePicker.getLocalTime());
    Assert.assertEquals(1, lLocalTimePicker.getMinuteStep().intValue());
   
    // set time to 12:30:00
    TestUtil.runThenWaitForPaintPulse( () -> {
      lLocalTimePicker.setLocalTime(LocalTime.of(20, 30, 00));     
    });
   
    // assert notation
    Assert.assertEquals("8:30 PM", lLabelText.getText());
  }
View Full Code Here

  {
    // show the correct tab
    click("#slideStep15");
   
    // get the node
    LocalTimePicker lLocalTimePicker = (LocalTimePicker)find("#id2"); // TODO: this should be accessible through .LocalTimePicker
   
    // default value is not null
    Assert.assertEquals(15, lLocalTimePicker.getMinuteStep().intValue());
    Assert.assertEquals(15, lLocalTimePicker.getSecondStep().intValue());
  }
View Full Code Here

  {
    // show the correct tab
    click("#locale");
   
    // get the node
    LocalTimePicker lLocalTimePicker = (LocalTimePicker)find("#id3"); // TODO: this should be accessible through .LocalTimePicker
    Text lLabelText = (Text)find(".timeLabel");
   
    // set time to 12:30:00
    TestUtil.runThenWaitForPaintPulse( () -> {
      lLocalTimePicker.setLocalTime(LocalTime.of(20, 30, 00));     
    });
   
    // assert notation
    Assert.assertEquals("20:30", lLabelText.getText());
  }
View Full Code Here

  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    localTimePicker = new LocalTimePicker();
    box.getChildren().add(localTimePicker);

    // make sure there is enough room for the time sliders
    box.setPrefSize(300, 300);
    return box;
View Full Code Here

TOP

Related Classes of jfxtras.scene.control.LocalTimePicker

Copyright © 2018 www.massapicom. 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.