/** 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(); }
/** * 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); } }
/** * 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(); }
/** * 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; }
/** Description of the Method */ public void startMonitor() { for (Enumeration<BPM_Element> e = listModel.elements(); e.hasMoreElements(); ) { BPM_Element elm = e.nextElement(); elm.startMonitor(); } }