Examples of FGroup


Examples of de.mhus.lib.form.objects.FGroup

            parseElements(aspectName, innerTarget, nextList);
          }       
        } else
        if (element.type() == TYPE.GROUP) {
         
          FGroup next = new FGroup();
          list.add(next);
          next.initialize(this);

          String aspectName = null;
          if (!MString.isEmpty(element.aspect()))
              aspectName = prefix + element.aspect() + ".";
          else
            aspectName = prefix + methodName + ".";
         
          next.setTargetFinder(new TargetFinderWithMethod(method));
          // next.setParent();
          MForm innerTarget = next.getTarget();
          if (innerTarget != null) {
            ObjectList nextList = next.getList();
            parseElements(aspectName, innerTarget, nextList);
          }       
        } else {
          FormSortId idx = method.getAnnotation(FormSortId.class);
          IConfig xmlElement = fillElement(prefix,method, toXmlString(element,methodName));
         
          ObjectList nextList = list;
          if (!MString.isEmpty(element.group())) {
            nextList = findGroupList(element, list);
          }
         
          FObject next = createModelObjectFromXml(xmlElement,target, nextList);
         
          if (next != null && element.sort() >= 0)
            next.setSortId(element.sort());
          else
          if (next != null && idx != null)
            next.setSortId(idx.value());
      }
      }
    }
   
  }
View Full Code Here

Examples of de.mhus.lib.form.objects.FGroup

 
  private ObjectList findGroupList(FormElement element, ObjectList list) {
    for (FObject o : list)
      if (o instanceof FGroup && ((FGroup)o).getGroupName().equals(element.group())) return ((FGroup)o).getList();

    FGroup group = new FGroup();
    group.setGroupName(element.group());
    if (element.sort() >= 0) group.setSortId(element.sort());
    list.add(group);
    group.initialize(this);
    return group.getList();
  }
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.