/** Indicates the import has been cancelled. */ public void cancelLoading() { cancel(false); if (components == null) return; Iterator<FileImportComponent> i = components.values().iterator(); while (i.hasNext()) { i.next().cancelLoading(); } }
/** * Deletes the image if the image cannot be viewed. * * @see ActionListener#actionPerformed(ActionEvent) */ public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); switch (index) { case DELETE_ID: deleteImage(); break; case CANCEL_ID: cancel(true); } }