Package com.nexirius.framework.datamodel

Examples of com.nexirius.framework.datamodel.ArrayModel


  public static final String _NEXIRIUS_VERSION = "2.8";
  ArrayModel attachmentArray;

  public AttachmentListModel()
  {
    super("AttachmentList", new ArrayModel(new AttachmentModel(), "AttachmentArray"));

    attachmentArray = getList();
  }
View Full Code Here


        setMemberName(memberName);
    }

    public DataModel newInstance(DataModelClasses classes)
            throws ParserException {
        ArrayModel ret = new ArrayModel(classes, getName());

        return ret;
    }
View Full Code Here

    static JFileChooser chooser;
    static Hashtable dialogProperties = new Hashtable();
    private static JFrame applicationFrame;

    public static ArrayModel getDialogPropertiesModels() {
        ArrayModel array = new ArrayModel(new DialogPropertiesModel(), "DialogPropertyArray");
        Enumeration en = dialogProperties.keys();

        while (en.hasMoreElements()) {
            DialogPropertiesModel dialogPropertiesModel = (DialogPropertiesModel) dialogProperties.get(en.nextElement());

            dialogPropertiesModel.setParentDataModelContainer(null);
            array.append(dialogPropertiesModel);
        }

        return array;
    }
View Full Code Here

            }

            throw new Exception("Child " + childName + " of " + parser.getModel().getFieldName() + " is not an ArrayModel");
        }

        ArrayModel array = (ArrayModel) child;
        DataModelEnumeration e = array.getEnumeration();
        VariableStore variableStore = parser.getResolver().getVariableStore();
        int index = 0;
        String oldIndex = variableStore.getValueOf(VariableStore.INDEX);
        String oldCount = variableStore.getValueOf(VariableStore.COUNT);
        String template = getTemplate();
        boolean childIsEditor = parser.isEditor();
        Boolean type = getIsEditor();

        if (type != null) {
            childIsEditor = type.booleanValue();
        }

        variableStore.setVariable(VariableStore.COUNT, Integer.toString(array.getSize()));

        while (e.hasMore()) {
            DataModel item = e.next();

            variableStore.setVariable(VariableStore.INDEX, Integer.toString(index + 1));
View Full Code Here

TOP

Related Classes of com.nexirius.framework.datamodel.ArrayModel

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.