示例#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();
 }
示例#2
0
 /**
  * Sets the valueAt attribute of the BPMsList object
  *
  * @param aValue The new valueAt value
  * @param row The new valueAt value
  * @param column The new valueAt value
  */
 public void setValueAt(Object aValue, int row, int column) {
   if (column == 1) {
     BPM_Element elm = listModel.elementAt(row);
     elm.setActive(!elm.isActive());
     fireTableCellUpdated(row, column);
   }
 }
示例#3
0
 /**
  * Returns the valueAt attribute of the BPMsList object
  *
  * @param row The Parameter
  * @param column The Parameter
  * @return The valueAt value
  */
 public Object getValueAt(int row, int column) {
   BPM_Element elm = listModel.elementAt(row);
   if (column == 0) {
     return elm.getName();
   }
   return elm.isActiveObj();
 }
示例#4
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;
 }
示例#5
0
 /** Description of the Method */
 public void startMonitor() {
   for (Enumeration<BPM_Element> e = listModel.elements(); e.hasMoreElements(); ) {
     BPM_Element elm = e.nextElement();
     elm.startMonitor();
   }
 }