Package com.nexirius.framework.datamodel

Examples of com.nexirius.framework.datamodel.DataModel


        DataModelEnumeration en = children.getEnumeration();

        int index = 0;

        while(en.hasMore()) {
            DataModel param = en.next();

            mapping.setValue(this, ++index, param);
        }
    }
View Full Code Here


    if (isCreated()) {
      getJPanel().removeAll();
      getJPanel().setLayout(layout);

      DataModel dm;
      JComponent comp;
      JLabel label;

      MultiplePropertyEntry numberColumnProps = new MultiplePropertyEntry();
View Full Code Here

        public boolean requiresMapping() {
            return true;
        }

        public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
            DataModel model = sessionVariable.getActModel();

            if (!model.isValid()) {
                return false;
            }

            if (model instanceof ItemModel) {
                ItemModel item = (ItemModel) model;
View Full Code Here

        public boolean requiresMapping() {
            return true;
        }

        public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
            DataModel model = sessionVariable.getActModel();

            if (!model.isValid()) {
                return false;
            }

            DataModel orig = sessionVariable.getActState().finishDuplicatePopup();
            PersistenceManager.saveItem((ItemModel) orig);

            return true;
        }
View Full Code Here

        public boolean requiresMapping() {
            return true;
        }

        public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
            DataModel model = sessionVariable.getActModel();

            if (!model.isValid()) {
                return false;
            }

            if (model instanceof ItemListModel) {
                ((ItemListModel) sessionVariable.getActModel()).reloadCommand();
View Full Code Here

        public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
            DataModelVector selectedChildren = sessionVariable.getSelectedChildren();
            DataModelEnumeration en = selectedChildren.getEnumeration();

            while (en.hasMore()) {
                DataModel model = en.next();

                PersistenceManager.remove(model);
                model.getParentDataModelContainer().removeItem(model);
            }

            return true;
        }
View Full Code Here

    public String getFunctionName() {
        return "MyColorFunction";
    }

    public void translate(HTMLSessionVariable sessionVariable, HTMLParser parser, String[] arguments) throws Exception {
        DataModel model = parser.getModel();

        String backgroundColorId = model.getBackgroundColorId();

        if (backgroundColorId != null) {
            parser.getOut().write("BGCOLOR=$!color(\"".getBytes());
            parser.getOut().write(backgroundColorId.getBytes());
            parser.getOut().write("\")".getBytes());
View Full Code Here

    public boolean requiresMapping() {
        return true;
    }

    public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
        DataModel category = sessionVariable.getSelectedChildren().firstItem();

        if (category == null) {
            return false;
        }
View Full Code Here

        DataModelEnumeration en = selectedChildren.getEnumeration();

        while (en.hasMore()) {
            MainModel mainModel = ((MainModel) sessionVariable.getApplicationModel());

            DataModel model = en.next();
            mainModel.getPersonArray().removeItem(model);
        }

        return true;
    }
View Full Code Here

    //it could be mapped into should take place.
    public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
        PersonModel actualPerson = (PersonModel) sessionVariable.getActModel();

        if (actualPerson.isValid()) {
            DataModel item = actualPerson.duplicate(null, null);
            ((MainModel) sessionVariable.getApplicationModel()) .getPersonArray().sortInsert(item);

            actualPerson.clear();

            return true;
View Full Code Here

TOP

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

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.