1 | private static class SQLJavaObjectOkJPanel extends OkJPanel {↵ | | 1 | private static class SQLOtherOkJPanel extends OkJPanel {↵
|
|
2 | private static final long serialVersionUID = 1353928067985854545L;↵ | | 2 | private static final long serialVersionUID = ↵
|
3 | ↵ | | 3 | 9034966488591013288L;↵
|
4 | /*↵ | | 4 | /*↵
|
5 | * GUI components - need to be here because they need to be↵ | | 5 | * GUI components - need to be here because they need to be↵
|
6 | * accessible from the event handlers to alter each other's state.↵ | | 6 | * accessible from the event handlers to alter each other's state.↵
|
7 | */↵ | | 7 | ↵
|
8 | ↵ | | 8 | */↵
|
9 | // check box for whether to read contents during table load or not↵ | | 9 | // check box for whether to read contents during table load or not↵
|
10 | private JCheckBox _showSQLJavaObjectChk = new JCheckBox(↵ | | 10 | private JCheckBox _showSQLOtherChk = new JCheckBox(↵
|
11 | // i18n[dataTypeJavaObject.readContentsWhenLoaded=Read contents when table is first loaded and display as string]↵ | | 11 | // i18n[dataTypeOther.readContentsWhenLoaded=Read contents when table is first loaded and display as string]↵
|
12 | s_stringMgr.getString("dataTypeJavaObject.readContentsWhenLoaded"));↵ | | 12 | s_stringMgr.getString("dataTypeOther.readContentsWhenLoaded"));↵
|
|
|
13 | public SQLJavaObjectOkJPanel() {↵ | | 13 | public SQLOtherOkJPanel() {↵
|
| | | 14 | ↵
|
14 | /* set up the controls */↵ | | 15 | /* set up the controls */↵
|
15 | // checkbox for read/not-read on table load↵ | | 16 | // checkbox for read/not-read on table load↵
|
16 | _showSQLJavaObjectChk.setSelected(_readSQLJavaObject);↵ | | 17 | _showSQLOtherChk.setSelected(_readSQLOther);↵
|
|
17 | /*↵ | | 18 | /*↵
|
18 | * Create the panel and add the GUI items to it↵ | | 19 | * Create the panel and add the GUI items to it↵
|
19 | */↵ | | 20 | */↵
|
| | | 21 | ↵
|
20 | // i18n[dataTypeJavaObject.sqlJavaObjectType=SQL JavaObject (SQL type 2000)]↵ | | 22 | // i18n[dataTypeOther.sqlOtherType=SQL Other (SQL type 1111)]↵
|
21 | setBorder(BorderFactory.createTitledBorder(s_stringMgr.getString("dataTypeJavaObject.sqlJavaObjectType")));↵ | | 23 | setBorder(BorderFactory.createTitledBorder(s_stringMgr.getString("dataTypeOther.sqlOtherType")));↵
|
|
22 | add(_showSQLJavaObjectChk);↵ | | 24 | add(_showSQLOtherChk);↵
|
|
23 | } // end of constructor for inner class↵ | | 25 | } // end of constructor for inner class↵
|
|
| | | 26 | ↵
|
| | | 27 | ↵
|
24 | /**↵ | | 28 | /**↵
|
25 | * User has clicked OK in the surrounding JPanel,↵ | | 29 | * User has clicked OK in the surrounding JPanel,↵
|
26 | * so save the current state of all variables↵ | | 30 | * so save the current state of all variables↵
|
27 | */↵ | | 31 | */↵
|
28 | public void ok() {↵ | | 32 | public void ok() {↵
|
29 | // get the values from the controls and set them in the static properties↵ | | 33 | // get the values from the controls and set them in the static properties↵
|
30 | _readSQLJavaObject = _showSQLJavaObjectChk.isSelected();↵ | | 34 | _readSQLOther = _showSQLOtherChk.isSelected();↵
|
31 | DTProperties.put(↵ | | 35 | DTProperties.put(↵
|
32 | thisClassName,↵ | | 36 | thisClassName,↵
|
33 | "readSQLJavaObject", Boolean.valueOf(_readSQLJavaObject).toString()) | | 37 | "readSQLOther", Boolean.valueOf(_readSQLOther).toString())
|