Examples of removeElementAt()


Examples of java.util.Vector.removeElementAt()

  public MailFileSystemView() {
    Vector v = Pooka.getStoreManager().getStoreList();
    for (int i = v.size() - 1; i >= 0; i--) {
      StoreInfo current = (StoreInfo) v.elementAt(i);
      if (! current.isConnected())
        v.removeElementAt(i);
    }

    storeList = new StoreInfo[v.size()];
    for (int i = 0; i < v.size(); i++) {
      storeList[i] = (StoreInfo) v.elementAt(i);
View Full Code Here

Examples of java.util.Vector.removeElementAt()

       
        if (tempScreenVector.size() < 3){ return null;}
       
        // test to enxure the shape is closed.
        if ( ((ScreenPoint)tempScreenVector.elementAt(0)).equals((ScreenPoint) tempScreenVector.elementAt(tempScreenVector.size()-1))){
            tempScreenVector.removeElementAt(tempScreenVector.size()-1);
        }
        ScreenPoint[] tempScreenPoints = new ScreenPoint[tempScreenVector.size()];
        tempScreenVector.copyInto(tempScreenPoints);
        return tempScreenPoints;
    }
View Full Code Here

Examples of java.util.Vector.removeElementAt()

        // count-down is OK for deletions!
        for (int i = nodeListeners.size() - 1; i >= 0; --i) {
            LEntry le = (LEntry) nodeListeners.elementAt(i);
            if (le.useCapture == useCapture && le.listener == listener &&
                le.type.equals(type)) {
                nodeListeners.removeElementAt(i);
                // Storage management: Discard empty listener lists
                if (nodeListeners.size() == 0)
                    setEventListeners(node, null);

                // Remove active listener
View Full Code Here

Examples of java.util.Vector.removeElementAt()

        {
            LEntry le=(LEntry)(nodeListeners.elementAt(i));
            if(le.useCapture==useCapture && le.listener==listener &&
                le.type.equals(type))
            {
                nodeListeners.removeElementAt(i);
                // Storage management: Discard empty listener lists
                if(nodeListeners.size()==0)
                    ownerDocument().setEventListeners(this, null);

                // Remove active listener
View Full Code Here

Examples of java.util.Vector.removeElementAt()

                    a.clear(r.r2, t);
                if (val[t.id] == -1 || val[t.id] > a.d) {
                    if (val[t.id] != -1)
                        for (int zi = 0; zi != v.size(); zi++) {
                            if (((Aresta) v.elementAt(zi)).r2.id == t.id) {
                                v.removeElementAt(zi);
                                break;
                            }
                        }
                    v.addElement(a);
                    val[t.id] = a.d;
View Full Code Here

Examples of java.util.Vector.removeElementAt()

    Vector accounts = getAccounts();
    boolean modified = false;
    for (int index = 0; index < accounts.size();) {
      Hashtable account = (Hashtable) accounts.elementAt(index);
      if (email.equals(account.get(EMAIL_COLUMN))) {
        accounts.removeElementAt(index);
        modified = true;
      } else {
        index++;
      }
    }
View Full Code Here

Examples of java.util.Vector.removeElementAt()

        // count-down is OK for deletions!
        for (int i = nodeListeners.size() - 1; i >= 0; --i) {
            LEntry le = (LEntry) nodeListeners.elementAt(i);
            if (le.useCapture == useCapture && le.listener == listener &&
                le.type.equals(type)) {
                nodeListeners.removeElementAt(i);
                // Storage management: Discard empty listener lists
                if (nodeListeners.size() == 0)
                    setEventListeners(node, null);

                // Remove active listener
View Full Code Here

Examples of java.util.Vector.removeElementAt()

    classQ.addElement( clas );
    Method found = null;
    while ( classQ.size() > 0 )
    {
      Class c = (Class)classQ.firstElement();
      classQ.removeElementAt(0);

      // Is this it?
      // Is the class public or can we use accessibility?
      if ( Modifier.isPublic( c.getModifiers() )
        || ( Capabilities.haveAccessibility() ) )
View Full Code Here

Examples of java.util.Vector.removeElementAt()

      CookieInfo match = (CookieInfo) list.elementAt(i);
      if (myLength < match.path.length()) {
    break;
      }
      if (cookie.isEquals(match)) {
    list.removeElementAt(i);
    request.log(Server.LOG_DIAGNOSTIC, "Replacing Cookie: " + match);
    break;
      }
  }
  request.log(Server.LOG_DIAGNOSTIC, "Inserting cookie: " + cookie);
View Full Code Here

Examples of java.util.Vector.removeElementAt()

                    case Node.ELEMENT_NODE:
                        break;

                    case Node.ATTRIBUTE_NODE: {
                        Node attribute = (Node) nodes.elementAt(i);
                        nodes.removeElementAt(i);
                        nodes.insertElementAt(dpf.newTextNode(attribute.getOwnerDocument(),
                                attribute.getNodeValue()), i);

                        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.