Examples of removeElementAt()


Examples of java.util.Vector.removeElementAt()

        // remove the first token it's made of the indentation string and the
        // construct name, we'll need all this to figure out what type of
        // construct it is since we lost all semantics :(
        // (#indent[/]*)(#construct.*)
        String name = (String) metrics.elementAt(0);
        metrics.removeElementAt(0);
        int indent = 0;
        pos = name.lastIndexOf('/');
        if (pos != -1) {
            name = name.substring(pos + 1);
            indent = pos + 1; // indentation is last position of token + 1
View Full Code Here

Examples of java.util.Vector.removeElementAt()

            // Get key including "="
            String key = env[i].substring(0, pos + 1);
            int size = osEnv.size();
            for (int j = 0; j < size; j++) {
                if (((String) osEnv.elementAt(j)).startsWith(key)) {
                    osEnv.removeElementAt(j);
                    break;
                }
            }
            osEnv.addElement(env[i]);
        }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel.removeElementAt()

  public void test(TestHarness harness)     
  {  
    DefaultComboBoxModel m = new DefaultComboBoxModel(new Object[] {"A", "B", "C"});
    m.addListDataListener(this);
   
    m.removeElementAt(0);
    harness.check(m.getSize(), 2);
    harness.check(m.getElementAt(0), "B");
    harness.check(m.getSelectedItem(), "B");
    harness.check(eventType, ListDataEvent.INTERVAL_REMOVED);
    harness.check(index0, 0);
View Full Code Here

Examples of javax.swing.DefaultListModel.removeElementAt()

    m1.addElement("C");
    m1.addElement("D");
    m1.addElement("E");
    m1.addElement("F");
   
    m1.removeElementAt(2);
    harness.check(m1.get(2), "D");
    ListDataEvent event = listener.getEvent();
    harness.check(event.getType(), ListDataEvent.INTERVAL_REMOVED);
    harness.check(event.getIndex0(), 2);
    harness.check(event.getIndex1(), 2);
View Full Code Here

Examples of javax.swing.MutableComboBoxModel.removeElementAt()

    public void removeElementAt(int anIndex)
    {
        checkMutableComboBoxModel();
        MutableComboBoxModel model = (MutableComboBoxModel)getComboBoxModel();
        model.removeElementAt(anIndex);
    }

    public void removeAllElements()
    {
        checkMutableComboBoxModel();
View Full Code Here

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

                    level2.resolve(docInfoElem);
                }
            }
            else
            {
                docNodeList.removeElementAt(0); // Elimina el patr�n (el primero) pero no el "No Documents Loaded"
            }

        }

    }
View Full Code Here

Examples of tools.util.EZArrayList.removeElementAt()

        //("getTypeInfo 2 " + getClass().getResource("typeinfo.properties"));

    InputStream inp = getClass().getResourceAsStream("typeinfo.properties");
    EZArrayList ez1 = new EZArrayList(inp);
    typeinfoCols = new EZArrayList(new StringTokenizer(ez1.elementAt(0).toString(),","));
    ez1.removeElementAt(0);
    typeinfoColTypeNames = new EZArrayList(new StringTokenizer(ez1.elementAt(0).toString(),","));
    ez1.removeElementAt(0);

    EZArrayList rows = null;
        typeinfo = new Vector<Row>();
View Full Code Here

Examples of tools.util.EZArrayList.removeElementAt()

    InputStream inp = getClass().getResourceAsStream("typeinfo.properties");
    EZArrayList ez1 = new EZArrayList(inp);
    typeinfoCols = new EZArrayList(new StringTokenizer(ez1.elementAt(0).toString(),","));
    ez1.removeElementAt(0);
    typeinfoColTypeNames = new EZArrayList(new StringTokenizer(ez1.elementAt(0).toString(),","));
    ez1.removeElementAt(0);

    EZArrayList rows = null;
        typeinfo = new Vector<Row>();
        //("getTypeInfo 3 " + typeinfo);
View Full Code Here

Examples of weka.core.FastVector.removeElementAt()

    for (int i=0; i < ruleSize; i++) {
      int testIndex = (int) (random.nextDouble() * (double) TestList.size());
      Test test = (Test) TestList.elementAt(testIndex);
         
      newRule.addTest(test);
      TestList.removeElementAt(testIndex);
    }
    double newClassValue = 0.0;
    if (m_DecisionList.size() > 0) {
      RuleList r = (RuleList)(m_DecisionList.lastElement());
      double oldClassValue = (double)
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.