Package com.dooapp.fxform.builder

Examples of com.dooapp.fxform.builder.FXFormBuilder


  }

  @Test
  public void testThatReorderWorksWellWithSpecificFieldFilter() throws FilterException {
    Bean2 bean2 = new Bean2();
    FXForm fxForm = new FXFormBuilder().include("name", MyAddress.class.getName() + "-address").build
        ();
    fxForm.setSource(new MultipleBeanSource(bean2, bean2.getAddress()));
    ReorderFilter reorderFilter = new ReorderFilter("name", MyAddress.class.getName() + "-address");
    reorderFilter.filter(fxForm.getElements());
  }
View Full Code Here


    protected void setup() {
        MyBean joe = new MyBean("Joe", "contact@", "How does this crazy form works?", true, MyBean.Subject.QUESTION);
        new ObjectPropertyObserver(joe);
        // register a factory for the userMap field that is not handled by default
        DefaultFactoryProvider.addGlobalFactory(new TypeFieldHandler(MapProperty.class), new MapPropertyFactory());
        fxForm = new FXFormBuilder()
                .source(joe)
                .categorize("-USER-", "name", "welcome", "email", "-DATA-", "subject", "message")
                .resourceBundle(ResourceBundle.getBundle("com.dooapp.fxform.Demo"))
                .build();
        fxForm.setTitle("Dude, where is my form?");
View Full Code Here

TOP

Related Classes of com.dooapp.fxform.builder.FXFormBuilder

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.