Package jfxtras.scene.control

Examples of jfxtras.scene.control.LocalDatePicker


   * Implementation of Builder interface
   */
  @Override
  public LocalDatePicker build()
  {
    LocalDatePicker lLocalDatePicker = new LocalDatePicker();
    if (locale != null) {
      lLocalDatePicker.setLocale(locale);
    }
    if (localDate != null) {
      lLocalDatePicker.setLocalDate(localDate);
    }
    if (displayedLocalDate != null) {
      lLocalDatePicker.setDisplayedLocalDate(displayedLocalDate);
    }
    if (mode != null) {
      lLocalDatePicker.setMode(mode);
    }
    if (allowNull != null) {
      lLocalDatePicker.setAllowNull(allowNull);
    }
    applyCommonProperties(lLocalDatePicker);
    return lLocalDatePicker;
  }
View Full Code Here


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

    localDatePicker = new LocalDatePicker();
    box.getChildren().add(localDatePicker);

    localDatePicker.setDisplayedLocalDate(LocalDate.of(2013, 1, 1));
    return box;
  }
View Full Code Here

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

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

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

    // set properties
    Assert.assertEquals("2013-01-01", lLocalDatePicker.getDisplayedLocalDate().toString());
    Assert.assertEquals("de", lLocalDatePicker.getLocale().toString());
    Assert.assertEquals("MULTIPLE", lLocalDatePicker.getMode().toString());
  }
View Full Code Here

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

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

TOP

Related Classes of jfxtras.scene.control.LocalDatePicker

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.