Examples of firstItem()


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

        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.firstItem()

            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.firstItem()

                    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.firstItem()

        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.firstItem()

        }

        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.firstItem()

        if (fieldNames.size() > 0) {
            e = selectionArray.getEnumeration();

            while (e.hasMore()) {
                DataModel item = e.next();
                String fieldValue = fieldValues.firstItem();
                boolean hit = true;

                for (String fieldName = fieldNames.firstItem(); fieldName != null; fieldName = fieldNames.nextItem()) {

                    if (!item.getChildText(fieldName).startsWith(fieldValue)) {
View Full Code Here

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

                if (isInterrupted() || this != thread) {
                    return;
                }

                if (tipText.size() == 1 && text.equals(tipText.firstItem())) {
                    removeTip();
                } else {
                    setTip(tipText, hasMore);
                }
            }
View Full Code Here

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

                if (!args[i].endsWith(java.io.File.separator))
                    files = new XFile(args[i] + java.io.File.separator);

                StringVector mostFiles = files.getAllFiles(true);

                String s = mostFiles.firstItem();

                while (s != null) {
                    m_win.tickle();
                    if (s.endsWith(".class")) {
                        s = files.getParent() + java.io.File.separator + s.substring(0, s.indexOf(".class"));
View Full Code Here

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

                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.firstItem()

                    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
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.