/** * This method initializes model * * @return ca.eandb.util.progress.ProgressTableModel */ private ProgressTableModel getModel() { if (model == null) { model = new ProgressTableModel(); } return model; }
/** * Indicate that the progress for a particular monitor has been updated. * @param source The <code>TableRowProgressMonitor</code> whose progress * has been updated. */ private synchronized void fireProgressUpdated(TableRowProgressMonitor source) { int row = monitors.indexOf(source); if (row >= 0) { fireTableCellUpdated(row, PROGRESS_COLUMN); } }
/** * Removes all <code>ProgressMonitor</code>s from the table. */ public void clear() { monitors.clear(); fireTableDataChanged(); }
public void run() { fireTableRowsDeleted(row, row); // row your boat... } });
public void run() { monitor.setProgressBar(new JProgressBar()); fireTableRowsInserted(row, row); } });
/** * Removes all <code>ProgressMonitor</code>s from the table. */ public void clear() { getModel().clear(); }
public ProgressMonitor createProgressMonitor(String title) { return getModel().createProgressMonitor(title); }
/** * Indicate that the status for a particular monitor has been updated. * @param source The <code>TableRowProgressMonitor</code> whose status has * been updated. */ private synchronized void fireStatusUpdated(TableRowProgressMonitor source) { int row = monitors.indexOf(source); if (row >= 0) { fireTableCellUpdated(row, STATUS_COLUMN); } }