Examples of nextItem()


Examples of com.nexirius.framework.datamodel.DataModelCommandVector.nextItem()

        DataModelCommandVector commandVector = popupModel.getMethods();
        GridBagConstraints buttonConstr = new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 2, 0, 2), 0, 0);

        if (commandVector != null) {

            for (command = commandVector.firstItem(); command != null; command = commandVector.nextItem()) {
                try {
                    buttonViewer = factory.createDefaultEditor(command);
                    button = buttonViewer.getJComponent();
                    buttonPanel.add(button, buttonConstr);
                    ++buttonConstr.gridx;
View Full Code Here

Examples of com.nexirius.framework.datamodel.DataModelCommandVector.nextItem()

            DataModelCommandVector v = model.getMethods();

            ret = new JPopupMenu();
            int maxWidth = 200;

            for (DataModelCommand m = v.firstItem(); m != null; m = v.nextItem()) {
                try {
                    CommandViewer viewer = (CommandViewer)createDefaultViewer(m);
                    JMenuItem jMenuItem = viewer.createJMenuItem();

                    maxWidth = Math.max(jMenuItem.getPreferredSize().width, maxWidth);
View Full Code Here

Examples of com.nexirius.framework.datamodel.DataModelVector.nextItem()

                    m.update(model);
                }
            }
        }

        for (DataModel model = remove.firstItem(); model != null; model = remove.nextItem()) {
            array.removeItem(model);
        }
    }

    public static void load(ItemArrayModel array) throws Exception {
View Full Code Here

Examples of com.nexirius.framework.datamodel.DataModelVector.nextItem()

        if (dm == null) {
            return null;
        }

        for (dm = path.firstItem(); dm != null; dm = path.nextItem()) {
            DataModelTreeComponent childTreeComponent = tc.getTreeComponentFor(dm);

            if (childTreeComponent != null) {
                if (dm == child) {
View Full Code Here

Examples of com.nexirius.util.StringVector.nextItem()

        }

        ArrayModel arr = null;
        String[] columnNames = null;

        for (String line = sv.firstItem(); line != null; line = sv.nextItem()) {

            StringVector tokens = new StringVector(line, ';', false);

            if (tokens.size() < 2) {
                continue;
View Full Code Here

Examples of com.nexirius.util.StringVector.nextItem()

                    if (!item.getChildText(fieldName).startsWith(fieldValue)) {
                        hit = false;
                        break;
                    }

                    fieldValue = fieldValues.nextItem();
                }

                if (hit) {
                    found = true;
                    break;
View Full Code Here

Examples of com.nexirius.util.StringVector.nextItem()

                    if (s.endsWith(".class")) {
                        s = files.getParent() + java.io.File.separator + s.substring(0, s.indexOf(".class"));
                        s = s.replace(java.io.File.separatorChar, '.');
                        allFiles.append(s);
                    }
                    s = mostFiles.nextItem();
                }
            } else {
                if (args[i].endsWith(".class")) {
                    String s1 = files.getName();
                    String s2 = files.getParent() + java.io.File.separator + s1.substring(0, s1.indexOf(".class"));
View Full Code Here

Examples of com.nexirius.util.StringVector.nextItem()

                ImportModel importModel = new ImportModel();
                ArrayModel array = importModel.getLines();
                int maxAttributes = 0;
                StructModel maxLineModel = null;

                for (String line = sv.firstItem(); line != null; line = sv.nextItem()) {
                    XString xLine = new XString(line);
                    xLine.replace("\"", "");
                    StringVector tokens = new StringVector(xLine.toString(), SEPARATOR_CHAR[separator.getInt()]);

                    if (tokens.size() > 2) {
View Full Code Here

Examples of com.nexirius.util.StringVector.nextItem()

                    if (tokens.size() > 2) {
                        StructModel lineModel = new StructModel("Line");
                        int fieldId = 0;

                        for (String value = tokens.firstItem(); value != null; value = tokens.nextItem()) {
                            lineModel.append(new StringModel(value, "field_" + fieldId));
                            ++fieldId;

                            if (fieldId > maxAttributes) {
                                maxAttributes = fieldId;
View Full Code Here

Examples of com.nexirius.util.StringVector.nextItem()

    public SortedVector getAll(Class cl, String propertyName, String propertyValue) {
        SortedVector ret = new DataModelVector();
        try {
            XFile dir = getDirectory(cl);
            StringVector files = dir.getFiles(false); // get the list of all the files in this directory
            for (String id = files.firstItem(); id != null; id = files.nextItem()) {
                DataModel model = (DataModel) cl.newInstance(); //create a new instance of the given type
                XFile file = new XFile(dir.getPath(), id);
                model.dropData(new String(file.getBytes()));
                model.setInstanceName(id);
                if (propertyValue == null || propertyValue.equals(model.getChildText(propertyName))) {
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.