Package de.mhus.lib.form2

Examples of de.mhus.lib.form2.LayoutFactory


     
     
      ActivatorControl control = new ActivatorControl();
      control.setFocusManager(new InformationFocus());
     
      LayoutModelByConfig layout = new LayoutModelByConfig();
      layout.setNls(new MNls(MSystem.locateResource(this, "form1.properties").toURI()));
      layout.setDefinition(MConfigFactory.getInstance().createConfigFor(MSystem.locateResource(this, "form1.xml").toURI()));
      layout.setFormControl(control);
     
      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();
      builder.setFormFactory(new LayoutFactory());
      builder.setRoot(layout.getRoot());
//      builder.getRoot().dump(System.out, 0);
      builder.doBuild();

      builder.getRootComposit().setWidth("800px");
      mainWindow.addComponent(builder.getRootComposit());
View Full Code Here


 
  @Override
  public void createCompositStop(LayoutComposite composite) {
    log().i("createCompositStop", composite.getConfig().getName());
   
    UiElement ui = composite.getUi();
    if (ui != null) {
      if ( ((UiVaadinComposite)ui).isTransparent()) return;
    }
//    if (composite.getConfig().getName().equals("split")) return;
   
View Full Code Here

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

      layout.setFormControl(control);
     
      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();
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
View Full Code Here

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

      LayoutModelByConfig layout = new LayoutModelByConfig();
      layout.setNls(new MNls(MSystem.locateResource(this, "form1.properties").toURI()));
      layout.setDefinition(MConfigFactory.getInstance().createConfigFor(MSystem.locateResource(this, "form1.xml").toURI()));
      layout.setFormControl(control);
     
      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

      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

TOP

Related Classes of de.mhus.lib.form2.LayoutFactory

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.