01: package org.airtodo.gui.dialog_delete;
02:
03: import java.sql.SQLException;
04: import java.util.Set;
05:
06: import org.air.framework.db.DbUtilsCommon;
07: import org.air.framework.gui.dialogs.grid.AbstractGridDialog;
08: import org.air.framework.gui.dialogs.input.AbstractDeleteDialog;
09: import org.air.framework.gui.dialogs.input.IDeleter;
10:
11: public class AttachmentDeleteDialog extends AbstractDeleteDialog {
12: public AttachmentDeleteDialog(AbstractGridDialog owner) {
13: super (owner);
14: }
15:
16: private IDeleter deleter;
17:
18: public IDeleter getDeleter() {
19: if (deleter == null)
20: deleter = new IDeleter() {
21: public void updateGui(
22: AbstractGridDialog abstractAddDeleteOpenDialog) {
23: }
24:
25: public Set deleteData(Set set) throws SQLException {
26: return DbUtilsCommon.deleteDocumentRows(set);
27: }
28: };
29: return deleter;
30: }
31: }
|