use of org.vcell.util.ProgressDialogListener in project vcell by virtualcell.
the class ViewJobsPanel method refreshInterface.
private void refreshInterface() {
Hashtable<String, Object> hash = new Hashtable<String, Object>();
AsynchClientTask[] tasksArray = new AsynchClientTask[2];
tasksArray[0] = new RunRefreshQuery();
tasksArray[1] = new DisplayRefreshResults();
ClientTaskDispatcher.dispatch(this, hash, tasksArray, false, true, new ProgressDialogListener() {
@Override
public void cancelButton_actionPerformed(EventObject newEvent) {
try {
getRefreshAllButton().setEnabled(true);
getStopJobButton().setEnabled(model.isStoppable(table.getSelectedRow()));
System.out.println("...user cancelled.");
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
Aggregations