Package de.mhus.lib.form2.binding

Examples of de.mhus.lib.form2.binding.PackagingDataSource.addPackage()


      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);
View Full Code Here


      PackagingDataSource ds = new PackagingDataSource();
      Properties data = new Properties();
      data.load(MSystem.locateResource(this, "form1_data.properties").openStream());
      ds.setDefaultSource(new MemoryDataSource(data));
      MyModel pojo = new MyModel();
      ds.addPackage("my", new PojoDataSource(pojo));
      layout.setDataSource(ds);
     
      layout.doBuild();
     
      VaadinFormBuilder builder = new VaadinFormBuilder();
View Full Code Here

  @Override
  public void doBuild() throws Exception {
    PojoModel pojoModel = new PojoParser().parse(pojo).filter(new DefaultFilter()).getModel();
    PackagingDataSource ds = new PackagingDataSource();
    ds.setDefaultSource(new MemoryDataSource());
    ds.addPackage(DataSource.PACKAGE_PERSISTENT, new PojoDataSource(pojo, pojoModel));
    setDataSource(ds);
   
    if (root == null) {
      // looking for models
      for (String actionName : pojoModel.getActionNames()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.