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.ModulePanel;
11: import org.airtodo.records.Modules;
12:
13: public class ModuleOpenDialog extends AbstractOpenDialog {
14: public ModuleOpenDialog(
15: AbstractGridDialog abstractAddDeleteOpenDialog) {
16: super (abstractAddDeleteOpenDialog, new ModulePanel());
17: }
18:
19: private IUpdater updater;
20:
21: protected IUpdater getUpdater() {
22: if (updater == null)
23: updater = new IUpdater() {
24: public void updateGui(
25: AbstractGridDialog abstractAddDeleteOpenDialog) {
26: }
27:
28: public int updateData(Map map) throws SQLException {
29: return DbUtilsCommon.update(map, Modules.class);
30: }
31: };
32: return updater;
33: }
34: }
|