Package java.util

Examples of java.util.Vector.clear()


            }
                if (depth==0) {
                    // first entry => use top-level popup menu
                    ret.add(item);
                    // Remove any item in the list
                    currentItems.clear();
                } else {
                    // previous item is menu by construction. Add this new item
                    ((JMenu)currentItems.get(depth-1)).add(item);
                    // remove trailing items, including the old menu at this depth
                    while (depth<currentItems.size()) currentItems.remove(depth);
View Full Code Here


    Vector hierarchy = new Vector();

    for (Iterator it = sel.iterator(); it.hasNext(); ) {

      element = it.next();
      hierarchy.clear();

      // Get the elements hierarchy
      tmpClass = element.getClass();
      while(tmpClass != null) {
        hierarchy.insertElementAt(tmpClass, 0);
View Full Code Here

                    ret.add(array[i]);
                }
            }
            catch (Exception e)
            {
                ret.clear();
            }
        }
        else
        {
            FieldDesc[] fields = typeDesc.getFields();
View Full Code Here

        // Filterung
        fileList = filelistFilterAge(fileList, minAge, maxAge);
        fileList = filelistFilterSize(fileList, minSize, maxSize);
        if (skipFirstFiles > 0 || skipLastFiles > 0)
          fileList.clear();
      }

      File currentFile;
      for (int i = 0; i < fileList.size(); i++) {
View Full Code Here

        // Filterung
        list = filelistFilterAge(list, minAge, maxAge);
        list = filelistFilterSize(list, minSize, maxSize);
        if (skipFirstFiles > 0 || skipLastFiles > 0)
          list.clear();
      }

      File sourceFile, targetFile;
      File dir;
View Full Code Here

          // use only 30 days
          for(int i=1; i<=30; i=i+iRepeat){
            String day = ""+i;
            addDay(day,monthDaysElement,childElements);
          }
          childElements.clear();
          childElements.add(monthDaysElement);
          monthDaysSet = true;
        }
      } else {
        Element monthDaysElement = runTimeElement.getOwnerDocument().createElement("monthdays");       
View Full Code Here

        String [] daysArray = getArrayFromColumn(days);       
        for (int i = 0; i < daysArray.length; i++) {
          String day = daysArray[i];
          addDay(day,monthDaysElement,childElements);         
        }
        childElements.clear();
        childElements.add(monthDaysElement);
        monthDaysSet = true;
      }
     
      if (!weekdays.equals("*") && monthDaysSet){
View Full Code Here

          String [] daysArray = getArrayFromColumn(weekdays);       
          for (int i = 0; i < daysArray.length; i++) {
            String day = daysArray[i];
            addDay(day,weekDaysElement,childElements);         
          }
          childElements.clear();
          childElements.add(weekDaysElement);
        }
      }
     
      logger.debug6("processing months ["+months+"]");
View Full Code Here

          Tracing.logWarn("item no longer exists so remove " + anItemToDelete.getAttributeValue(ITEM_IDENTIFIER),null,SequencerModel.class);
          parent.removeContent(anItemToDelete);
        }
      }
    }
    v.clear();
  }

  /**
   * Utility method which takes a string(item) and a string array The method
   * searches the string array for the value in item, if it exists returns true,
View Full Code Here

    objectives.clear();
    // update the interactions
    String[][] interactionsArray = new String[interactions.size()][2];
    interactions.copyInto(interactionsArray);
    if (interactionsCount > 0) dealWithSavingInteractions(interactionsCount, interactionsArray);
    interactions.clear();
    // finally commit this back to disk
    try {
      saveDocument();
    } catch (IOException ex) {
      throw new OLATRuntimeException(this.getClass(), "Error: could not save sco model:", ex);
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.