Package java.util

Examples of java.util.Vector.clear()


            names.add(param.getName());
        }

        if (names.size() > 0) {
            if (mode == MODE_DOC_WRAPPED) {
                names.clear();
            }
            oper.setParameterOrdering(names);
        }
    }
View Full Code Here


                ret = new Vector(array.length);
                for (int i = 0; i < array.length; i++) {
                    ret.add(array[i]);
                }
            } catch (Exception e) {
                ret.clear();
            }
        } else {
            FieldDesc [] fields = typeDesc.getFields();
            if (fields != null) {
                for (int i = 0; i < fields.length; i++) {
View Full Code Here

                    {
                        View vw = (View) tmp;
                        control.viewNumber.setText("" + vw.getVid().getId());
                        control.numMessagesInLastView.setText("" + counter);
                        counter = 0;
                        v.clear();
                        continue;
                    }

                    if (tmp instanceof ExitEvent)
                    {
View Full Code Here

                                value -= seq;
                            }
                            else
                                value += seq;
                        }
                        v.clear();
                        value = Math.abs(value);
                        int r = value % 85;
                        int g = value % 170;
                        int b = value % 255;
                        colorPanel.setSeq(r, g, b);
View Full Code Here

     * files > 0 && create empty = false  create
     */
    //  If there are no files, but createEmpty is false, clear the folders you found
    //System.out.println("Return Files:\t"+files.size() + "\tcreateEmpty = "+m_details.getEmptyDirectory());
    if(tfiles.size() == 0 && m_details.getEmptyDirectory() == false){
      tfolders.clear();
    }
    //  Add anything thats left, if nothing, nothing will get added
    files.addAll(tfiles);
    folders.addAll(tfolders);
   
View Full Code Here

   
    // try an enumeration with null in it
    boolean pass = false;
    try
      {
        v.clear();
        v.add(null);
        e = v.elements();
        s.removeAttributes(e);   
      }
      catch (NullPointerException ex)
View Full Code Here

        while(e.hasMoreElements()) {
            String name = (String) e.nextElement();
            Enumeration values = multi.getURLParameters(name);
            String[] valueArray = null;
            if(values.hasMoreElements()) {
                valueVector.clear();
                while(values.hasMoreElements())
                    valueVector.add(values.nextElement());
                valueArray = (String[]) valueVector.toArray(new String[valueVector.size()]);
            }
View Full Code Here

                        + e.getClass().getName() + " : " + e.getMessage()
                        + "\n" + JipletLogger.getStackTrace(e));
            }
        }

        transactions.clear();

        try
        {
            if (statusCode >= 0)
            {
View Full Code Here

                                    + "\n"
                                    + JipletLogger.getStackTrace(ex));
                }
            }
           
            clientTransactions.clear();

            return;

        }
View Full Code Here

                for (Iterator i = dustToRemove.iterator(); i.hasNext(); ) {
                  DustObject dustObj = (DustObject) i.next();
                  fe.RemoveObject(dustObj.fo);                 
                  dustVector.remove(dustObj);                 
                }
                dustToRemove.clear();
       
                // LEVEL BORDER
                AffineTransform af = new AffineTransform();
                af.translate(-viewCoordUL.x,-viewCoordUL.y);
                g2d.setTransform(af);
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.