KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jimm > datavision > gui > sql > WhereClauseWin


1 package jimm.datavision.gui.sql;
2 import jimm.datavision.gui.Designer;
3 import jimm.datavision.gui.CodeEditorWin;
4 import jimm.datavision.Report;
5 import jimm.datavision.gui.cmd.WhereClauseEditCommand;
6 import jimm.util.I18N;
7
8 /**
9  * This dialog lets the user edit the report query's where clause.
10  *
11  * @author Jim Menard, <a HREF="mailto:jimm@io.com">jimm@io.com</a>
12  * @see jimm.datavision.source.Query
13  * @see jimm.datavision.gui.cmd.WhereClauseEditCommand
14  */

15 public class WhereClauseWin extends CodeEditorWin {
16
17 protected Report report;
18
19 /**
20  * Constructor.
21  *
22  * @param designer the design window to which this dialog belongs
23  * @param report the...um...I forgot
24  */

25 public WhereClauseWin(Designer designer, Report report) {
26     super(designer, report,
27       report.getDataSource().getQuery().getEditableWhereClause(),
28       I18N.get("WhereClauseWin.title"), null, null);
29     this.report = report;
30 }
31
32 public void save(String JavaDoc text) {
33     command =
34     new WhereClauseEditCommand(report.getDataSource().getQuery(), text);
35 }
36
37 }
38
Popular Tags