Examples of insertElementAt()


Examples of javax.swing.DefaultComboBoxModel.insertElementAt()

        List<FurnitureCategory> categories = catalog.getCategories();
        if (!categories.contains(category)) {
          model.removeElement(category);
          furnitureCatalogPanel.categoryFilterComboBox.setSelectedIndex(0);
        } else if (model.getIndexOf(category) == -1) {
          model.insertElementAt(category, categories.indexOf(category) + 1);
        }
      }
    }
  }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel.insertElementAt()

            // Iterate through the list of presets given. From the description
            // look-up the resource bundle for the display string.
            int i = 0;
            for (ConfigElement ce : elements) {
                String description = ce.getDescription();
                m.insertElementAt(PRESETS_BUNDLE.getString(description), i);
                i++;
            }
        } finally {
            setLocalChanges(false);
        }
View Full Code Here

Examples of javax.swing.DefaultListModel.insertElementAt()

    }

    // move the elements
    for (int i = selection.length - 1; i >= 0; i--) {
      Object value = fromModel.remove(selection[i]);
      toModel.insertElementAt(value, row);
    }

    // change selection of the fromList
    if (fromModel.getSize() > 0) {
      int newSelection = selection[0];
View Full Code Here

Examples of javax.swing.DefaultListModel.insertElementAt()

      }
      items[i] = model.remove(selection[i]);
    }

    for (int i = items.length - 1; i >= 0; i--) {
      model.insertElementAt(items[i], row);
    }

    // change selection of the toList
    list.setSelectionInterval(row, row + selection.length - 1);
View Full Code Here

Examples of javax.swing.MutableComboBoxModel.insertElementAt()

        else {

            attributes.setEnabled(true);
            MutableComboBoxModel model = new DefaultComboBoxModel(pkAttributes.toArray());
            String noSelection = "<Select Generated Column>";
            model.insertElementAt(noSelection, 0);
            model.setSelectedItem(noSelection);
            attributes.setModel(model);

            Iterator it = pkAttributes.iterator();
            while (it.hasNext()) {
View Full Code Here

Examples of org.apache.xml.utils.NodeVector.insertElementAt()

      if (i != -2)
      {
        insertIndex = i + 1;

        vec.insertElementAt(node, insertIndex);
      }

      // checkDups();
      return insertIndex;
    } // end addNodeInDocOrder(Vector v, Object obj)
View Full Code Here

Examples of org.apache.xml.utils.NodeVector.insertElementAt()

      if (i != -2)
      {
        insertIndex = i + 1;

        vec.insertElementAt(node, insertIndex);
      }

      // checkDups();
      return insertIndex;
    } // end addNodeInDocOrder(Vector v, Object obj)
View Full Code Here

Examples of org.itsnat.core.domutil.ElementList.insertElementAt()

        ElementGroupManager factory = itsNatDoc.getElementGroupManager();
        ElementList elemList = factory.createElementList(parent,true);

        elemList.addElement("Item 0");
        elemList.addElement("Item 2");
        elemList.insertElementAt(1,"Item 1");

        elemList.setUsePatternMarkupToRender(true);
        elemList.addElement("Item 3 BAD");
        elemList.setElementValueAt(3,"Item 3");
View Full Code Here

Examples of systole.domain.signals.Segment.insertElementAt()

            diff = (segment.elementAt(j + h).subtract(segment.elementAt(j))).divide(new BigDecimal(2 * h),MathUtils.CONTEXT);
            derivated.add(diff);
        }

        diff = derivated.elementAt(1).subtract(derivated.firstElement());
        derivated.insertElementAt(derivated.firstElement().subtract(diff), 0);
        return derivated;

    }

    public Segment getSecondDerivative(Segment segment) {
View Full Code Here

Examples of weka.core.FastVector.insertElementAt()

    canElements.removeElementAt(j);
    //check if the (k-1)-sequence is contained in the set of kMinusOneSequences
    int containedAt = kMinusOneSequences.indexOf(candidate);
    if (containedAt != -1) {
      origEvents[k] = helpEvent;
      canElements.insertElementAt(origElement, j);
      break;
    } else {
      isFrequent = false;
      break;
    }
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.