Package de.mhus.lib.vaadin.form2

Examples of de.mhus.lib.vaadin.form2.UiVaadinActions$UiButton


  }

  private void buildWithPojo(AbstractLayout mainWindow) {
    try {
      VaadinFormBuilder builder = new VaadinFormBuilder();
      builder.setFormFactory(new LayoutFactory());
     
      MyModel pojo = new MyModel();
      ActivatorControl control = new ActivatorControl();
      control.setFocusManager(new InformationFocus());
      LayoutModelByPojo layout = new LayoutModelByPojo(pojo);
      layout.setFormControl(control);
      layout.setFormFactory(builder.getFormFactory());
      layout.doBuild();
 
     
      builder.setRoot(layout.getModelRoot());
      builder.doBuild();
     
      builder.getRootComposit().setWidth("800px");
      mainWindow.addComponent(builder.getRootComposit());
     
    } catch (Throwable e) {
      e.printStackTrace();
    }
  }
View Full Code Here


ConfigUtil.dump(model, System.out);

      MNls nls = model.createNls();
     
      VaadinFormBuilder builder = new VaadinFormBuilder();
      builder.setFormFactory(new LayoutFactory());

      ActivatorControl control = new ActivatorControl();
      control.setFocusManager(new InformationFocus());
     
      PackagingDataSource ds = new PackagingDataSource();
      ds.setDefaultSource(new MemoryDataSource());
      MyModel pojo = new MyModel();
      ds.addPackage(DataSource.PACKAGE_PERSISTENT, new PojoDataSource(pojo));
     
      LayoutModelByConfig layout = new LayoutModelByConfig();
      layout.setNls(nls);
      layout.setDefinition(model);
      layout.setDataSource(ds);
      layout.setFormControl(control);
      layout.setFormFactory(builder.getFormFactory());
      layout.doBuild();
     
      builder.setRoot(layout.getRoot());
//      builder.getRoot().dump(System.out, 0);
      builder.doBuild();

      builder.getRootComposit().setWidth("800px");
      mainWindow.addComponent(builder.getRootComposit());
     
    } catch (Throwable e) {
      e.printStackTrace();
    }   
  }
View Full Code Here

      ds.addPackage("my", new PojoDataSource(pojo));
      layout.setDataSource(ds);
     
      layout.doBuild();
     
      VaadinFormBuilder builder = new VaadinFormBuilder();
      builder.setFormFactory(new LayoutFactory());
      builder.setRoot(layout.getRoot());
//      builder.getRoot().dump(System.out, 0);
      builder.doBuild();

      builder.getRootComposit().setWidth("800px");
      mainWindow.addComponent(builder.getRootComposit());
     
    } catch (Throwable e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.vaadin.form2.UiVaadinActions$UiButton

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.