Package jfxtras.scene.control

Examples of jfxtras.scene.control.LocalDateTimePicker$LocalDateTimeRange


   * Implementation of Builder interface
   */
  @Override
  public LocalDateTimePicker build()
  {
    LocalDateTimePicker lLocalDateTimePicker = new LocalDateTimePicker();
    if (locale != null) {
      lLocalDateTimePicker.setLocale(locale);
    }
    if (localDateTime != null) {
      lLocalDateTimePicker.setLocalDateTime(localDateTime);
    }
    if (displayedLocalDateTime != null) {
      lLocalDateTimePicker.setDisplayedLocalDateTime(displayedLocalDateTime);
    }
    if (allowNull != null) {
      lLocalDateTimePicker.setAllowNull(allowNull);
    }
    applyCommonProperties(lLocalDateTimePicker);
    return lLocalDateTimePicker;
  }
View Full Code Here


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

    localDateTimePicker = new LocalDateTimePicker();
    box.getChildren().add(localDateTimePicker);

    localDateTimePicker.setDisplayedLocalDateTime(LocalDateTime.of(2013, 1, 1, 12, 00, 00));
   
    // make sure the pixels moved by the mouse are constant
View Full Code Here

  {
    // show the correct tab
    click("#defaultPicker");
   
    // get the node
    LocalDateTimePicker lLocalDateTimePicker = (LocalDateTimePicker)find("#id1"); // TODO: these should match on #.LocalDateTimePicker, but the CalendarPicker does
   
    // default value is null
    Assert.assertNull(lLocalDateTimePicker.getLocalDateTime());

    // click the first of the displayed month   
    click("#id1 #" + lLocalDateTimePicker.getDisplayedLocalDateTime().format(DateTimeFormatter.ofPattern("yyyy-MM-01")));
   
    // default value is not null
    Assert.assertNotNull(lLocalDateTimePicker.getLocalDateTime());
  }
View Full Code Here

  {
    // show the correct tab
    click("#atributesAreSet2");
   
    // get the node
    LocalDateTimePicker lLocalDateTimePicker = (LocalDateTimePicker)find("#id2"); // TODO: these should match on #.LocalDateTimePicker, but the CalendarPicker does

    // set properties
    Assert.assertEquals("2013-01-01T00:00", lLocalDateTimePicker.getDisplayedLocalDateTime().toString());
    Assert.assertEquals("de", lLocalDateTimePicker.getLocale().toString());
  }
View Full Code Here

  {
    // show the correct tab
    click("#atributesAreSet3");
       
    // get the node
    LocalDateTimePicker lLocalDateTimePicker = (LocalDateTimePicker)find("#id3"); // TODO: these should match on #.LocalDateTimePicker, but the CalendarPicker does
   
    // set properties
    Assert.assertEquals("2013-01-01T22:33:44", lLocalDateTimePicker.getLocalDateTime().toString());
  }
View Full Code Here

  {
    // show the correct tab
    click("#atributesAreSet4");
       
    // get the node
    LocalDateTimePicker lLocalDateTimePicker = (LocalDateTimePicker)find("#id4"); // TODO: these should match on #.LocalDateTimePicker, but the CalendarPicker does
   
    // set properties
    Assert.assertEquals(false, lLocalDateTimePicker.getAllowNull());
    Assert.assertNotNull(lLocalDateTimePicker.getLocalDateTime());
  }
View Full Code Here

TOP

Related Classes of jfxtras.scene.control.LocalDateTimePicker$LocalDateTimeRange

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.