01: package org.airtodo.gui.dialog_open;
02:
03: import java.sql.SQLException;
04: import java.util.Map;
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.AbstractOpenDialog;
09: import org.air.framework.gui.dialogs.input.IUpdater;
10: import org.airtodo.gui.panel_open.TaskPanel;
11: import org.airtodo.records.Tasks;
12:
13: public class TaskOpenDialog extends AbstractOpenDialog {
14: public TaskOpenDialog(AbstractGridDialog abstractAddDeleteOpenDialog) {
15: super (abstractAddDeleteOpenDialog, new TaskPanel());
16: }
17:
18: private IUpdater updater;
19:
20: protected IUpdater getUpdater() {
21: if (updater == null)
22: updater = new IUpdater() {
23: public void updateGui(
24: AbstractGridDialog abstractAddDeleteOpenDialog) {
25: }
26:
27: public int updateData(Map map) throws SQLException {
28: return DbUtilsCommon.update(map, Tasks.class);
29: }
30: };
31: return updater;
32: }
33: }
|