Package de.iritgo.aktera.ui.form

Examples of de.iritgo.aktera.ui.form.GroupDescriptor


        {
          throw new ModelException("Both id and name specified for group '" + id + "'");
        }

        String groupBundle = groupConfig.getAttribute("bundle", formular.getBundle());
        GroupDescriptor group = formular.addGroup(name, groupBundle);
        group.setPosition(positionStringToValue(groupConfig.getAttribute("pos", "C")));
        group.setVisible(NumberTools.toBool(groupConfig.getAttribute("visible", "true"), true));
        group.setTitleVisible(NumberTools.toBool(groupConfig.getAttribute("titleVisible", "true"), true));
        group.setIcon(groupConfig.getAttribute("icon", null));
        group.setLabel(groupConfig.getAttribute("label", group.getLabel()));
        createFields(groupConfig, formular, group, null);
      }
    }
  }
View Full Code Here


        if (name != null)
        {
          throw new ModelException("Both id and name specified for group '" + id + "'");
        }

        GroupDescriptor group = formular.getGroup(id);

        if (group == null)
        {
          throw new ModelException("Unable to find group '" + id + "'");
        }

        Configuration[] groupChildren = groupConfig.getChildren();

        for (Configuration childConfig : groupChildren)
        {
          if ("field".equals(childConfig.getName()))
          {
            String fieldId = childConfig.getAttribute("id", null);
            String fieldName = childConfig.getAttribute("id", null);

            if (id != null && name != null)
            {
              throw new ModelException("Both id and name specified for field '" + id + "'");
            }

            if (id != null)
            {
              FieldDescriptor field = group.getField(fieldId);

              if (field == null)
              {
                throw new ModelException("Unable to find field '" + fieldId + "' in group '" + id + "'");
              }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.ui.form.GroupDescriptor

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.