Package de.mhus.lib.form.layout

Examples of de.mhus.lib.form.layout.LObject


  protected void load(IConfig layout, LComposite composite) {

    for ( IConfig element : layout.getConfigBundle("element") ) {

      LObject next = null;
      String type = element.getString("type", "field");
      if (type.equals("field")) {
        next = new LField();
      } else
      if (type.equals("page")) {
        next = new LPage();
        load(element,(LComposite) next);
      } else
      if (type.equals("tabbed")) {
        next = new LTabbed();
        load(element,(LComposite) next);
        for ( IConfig element2 : element.getConfigBundle("element") ) {
          LComposite next2 = new LComposite();
          next2.setConfig(element2);
          next2.setModel(this, model);
          ((LComposite)next).add(next2);
          load(element2,next2);
        }
      } else
      if (type.equals("group")) {
        next = new LGroup();
        load(element,(LComposite) next);
      }
     
      if (next != null) {
        next.setModel(this,model);
        next.setConfig(element);
        next.init();
        composite.add(next);
      }
     
    }
   
View Full Code Here

TOP

Related Classes of de.mhus.lib.form.layout.LObject

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.