Exemplo n.º 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();
 }
Exemplo n.º 2
0
 /**
  * Returns the bPM attribute of the BPMsTable object
  *
  * @param name The Parameter
  * @return The bPM value
  */
 public BPM_Element getBPM(String name) {
   BPM_Element bpmElm = null;
   Enumeration<BPM_Element> bpm_enum = listModel.elements();
   while (bpm_enum.hasMoreElements()) {
     BPM_Element bpmElm1 = bpm_enum.nextElement();
     if (bpmElm1.getName().equals(name)) {
       bpmElm = bpmElm1;
     }
   }
   return bpmElm;
 }
Exemplo n.º 3
0
 myjava.gui.syntax.Painter getPainter() {
   // update painter first
   this.painter =
       TypeColorEntry.toPainter(this.painter.getName(), Collections.list(listModel.elements()));
   return this.painter;
 }
Exemplo n.º 4
0
 /** Description of the Method */
 public void startMonitor() {
   for (Enumeration<BPM_Element> e = listModel.elements(); e.hasMoreElements(); ) {
     BPM_Element elm = e.nextElement();
     elm.startMonitor();
   }
 }
 public ArrayList<CvsRootConfiguration> getConfigurations() {
   ArrayList<CvsRootConfiguration> result = new ArrayList<CvsRootConfiguration>();
   Enumeration each = myModel.elements();
   while (each.hasMoreElements()) result.add((CvsRootConfiguration) each.nextElement());
   return result;
 }