Exemple #1
0
 /** Description of the Method */
 public void removeAllElements() {
   for (Enumeration<BPM_Element> e = listModel.elements(); e.hasMoreElements(); ) {
     BPM_Element elm = e.nextElement();
     elm.stopMonitor();
   }
   listModel.removeAllElements();
 }
Exemple #2
0
 /** Fetch movie names from the database and display them in the name list. */
 private void fillNameList() {
   nameListModel.removeAllElements();
   ArrayList<String> list = db.getMovies();
   for (String s : list) {
     nameListModel.addElement(s);
   }
 }
 private void populateActiveKitList() {
   // populate the active kits list with the current kits available in the factory
   listModel.removeAllElements();
   for (Integer i : kits.keySet()) {
     Kits currentKit = kits.get(i);
     listModel.addElement(currentKit);
   }
 }
Exemple #4
0
 /** List results by alphabetical name */
 private void listByProgramName() {
   int nresult = datasets.size();
   String res[] = new String[nresult];
   for (int i = 0; i < nresult; i++) res[i] = (String) datasets.getElementAt(i);
   Arrays.sort(res);
   datasets.removeAllElements();
   for (int i = 0; i < nresult; i++) datasets.addElement(res[i]);
 }
Exemple #5
0
  /** Fetch performance dates from the database and display them in the date list. */
  private void fillDateList(String movieName) {
    dateListModel.removeAllElements();
    /* --- insert own code here --- */
    ArrayList<String> list = db.getShowdates(movieName);

    for (String s : list) {
      dateListModel.addElement(s);
    }
  }
Exemple #6
0
  /**
   * List results by date
   *
   * @param reslist result list
   * @param ldisp
   */
  private void listByDateRun(ResultList reslist, boolean ldisp) {
    StringTokenizer tokenizer = new StringTokenizer((String) reslist.get("list"), "\n");

    Vector vdata = new Vector();
    while (tokenizer.hasMoreTokens()) {
      String data = convertToPretty(tokenizer.nextToken());
      if (datasets.contains(data) || ldisp) vdata.add(data);
    }
    datasets.removeAllElements();

    Enumeration en = vdata.elements();
    while (en.hasMoreElements()) datasets.addElement(en.nextElement());
  }