Source Code Cross Referenced for DBMetaPropertySheet.java in  » Database-ORM » db-ojb » org » apache » ojb » tools » mapping » reversedb » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » db ojb » org.apache.ojb.tools.mapping.reversedb.gui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.apache.ojb.tools.mapping.reversedb.gui;
002:
003:        /* Copyright 2002-2005 The Apache Software Foundation
004:         *
005:         * Licensed under the Apache License, Version 2.0 (the "License");
006:         * you may not use this file except in compliance with the License.
007:         * You may obtain a copy of the License at
008:         *
009:         *     http://www.apache.org/licenses/LICENSE-2.0
010:         *
011:         * Unless required by applicable law or agreed to in writing, software
012:         * distributed under the License is distributed on an "AS IS" BASIS,
013:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         * See the License for the specific language governing permissions and
015:         * limitations under the License.
016:         */
017:
018:        /**
019:         *
020:         * @author <a href="mailto:bfl@florianbruckner.com">Florian Bruckner</a> 
021:         * @version $Id: DBMetaPropertySheet.java,v 1.1.2.1 2005/12/21 22:32:02 tomdz Exp $
022:         */
023:        public class DBMetaPropertySheet extends javax.swing.JPanel implements 
024:                PropertySheetView {
025:            org.apache.ojb.tools.mapping.reversedb.DBMeta aMeta;
026:
027:            /** Creates new form DBCatalogPropertySheet */
028:            public DBMetaPropertySheet() {
029:                initComponents();
030:            }
031:
032:            private void readValuesFromMeta() {
033:                this .cbEnabled.setSelected(aMeta.isEnabled());
034:                this .tfCatalogTerm.setText(aMeta.getCatalogTerm());
035:                this .tfSupportsCatalogInDML.setText(""
036:                        + aMeta.getSupportsCatalogsInDataManipulation());
037:                this .tfSupportsCatalogInIndex.setText(""
038:                        + aMeta.getSupportsCatalogsInIndexDefinitions());
039:                this .tfSupportsCatalogInPrivilegeDefinitions.setText(""
040:                        + aMeta.getSupportsCatalogsInPrivilegeDefinitions());
041:                this .tfSupportsCatalogInProcedureCalls.setText(""
042:                        + aMeta.getSupportsCatalogsInProcedureCalls());
043:                this .tfSupportsCatalogInTableDefinitions.setText(""
044:                        + aMeta.getSupportsCatalogsInTableDefinitions());
045:                this .tfSchemaTerm.setText(aMeta.getSchemaTerm());
046:                this .tfProductName.setText(aMeta.getDatabaseProductName());
047:                this .tfProductVersion
048:                        .setText(aMeta.getDatabaseProductVersion());
049:            }
050:
051:            /** This method is called from within the constructor to
052:             * initialize the form.
053:             * WARNING: Do NOT modify this code. The content of this method is
054:             * always regenerated by the Form Editor.
055:             */
056:            private void initComponents()//GEN-BEGIN:initComponents
057:            {
058:                java.awt.GridBagConstraints gridBagConstraints;
059:
060:                jPanel1 = new javax.swing.JPanel();
061:                lblEnabled = new javax.swing.JLabel();
062:                cbEnabled = new javax.swing.JCheckBox();
063:                jLabel1 = new javax.swing.JLabel();
064:                jLabel2 = new javax.swing.JLabel();
065:                lblProductName = new javax.swing.JLabel();
066:                tfProductName = new javax.swing.JTextField();
067:                lblProductVersion = new javax.swing.JLabel();
068:                tfProductVersion = new javax.swing.JTextField();
069:                jLabel8 = new javax.swing.JLabel();
070:                jLabel7 = new javax.swing.JLabel();
071:                lblCatalogTerm = new javax.swing.JLabel();
072:                tfCatalogTerm = new javax.swing.JTextField();
073:                lblCatalogSeparator = new javax.swing.JLabel();
074:                tfCatalogSeparator = new javax.swing.JTextField();
075:                lblSupportsCatalogInIndex = new javax.swing.JLabel();
076:                tfSupportsCatalogInIndex = new javax.swing.JTextField();
077:                lblSupportsCatalogInDML = new javax.swing.JLabel();
078:                tfSupportsCatalogInDML = new javax.swing.JTextField();
079:                lblSupportsCatalogInPrivilegeDefinitions = new javax.swing.JLabel();
080:                tfSupportsCatalogInPrivilegeDefinitions = new javax.swing.JTextField();
081:                lblSupportsCatalogInProcedureCalls = new javax.swing.JLabel();
082:                tfSupportsCatalogInProcedureCalls = new javax.swing.JTextField();
083:                lblSupportsCatalogInTableDefinitions = new javax.swing.JLabel();
084:                tfSupportsCatalogInTableDefinitions = new javax.swing.JTextField();
085:                jLabel4 = new javax.swing.JLabel();
086:                jLabel3 = new javax.swing.JLabel();
087:                lblSchemaTerm = new javax.swing.JLabel();
088:                tfSchemaTerm = new javax.swing.JTextField();
089:
090:                setLayout(new java.awt.GridBagLayout());
091:
092:                addComponentListener(new java.awt.event.ComponentAdapter() {
093:                    public void componentShown(java.awt.event.ComponentEvent evt) {
094:                        formComponentShown(evt);
095:                    }
096:
097:                    public void componentHidden(
098:                            java.awt.event.ComponentEvent evt) {
099:                        formComponentHidden(evt);
100:                    }
101:                });
102:
103:                addHierarchyListener(new java.awt.event.HierarchyListener() {
104:                    public void hierarchyChanged(
105:                            java.awt.event.HierarchyEvent evt) {
106:                        formHierarchyChanged(evt);
107:                    }
108:                });
109:
110:                jPanel1.setLayout(new java.awt.GridLayout(19, 2));
111:
112:                lblEnabled.setText("enabled");
113:                lblEnabled.setDisplayedMnemonic('e');
114:                jPanel1.add(lblEnabled);
115:
116:                cbEnabled.setMnemonic('e');
117:                cbEnabled
118:                        .addActionListener(new java.awt.event.ActionListener() {
119:                            public void actionPerformed(
120:                                    java.awt.event.ActionEvent evt) {
121:                                cbEnabledActionPerformed(evt);
122:                            }
123:                        });
124:
125:                jPanel1.add(cbEnabled);
126:
127:                jPanel1.add(jLabel1);
128:
129:                jPanel1.add(jLabel2);
130:
131:                lblProductName.setText("Database Product Name:");
132:                jPanel1.add(lblProductName);
133:
134:                tfProductName.setEditable(false);
135:                tfProductName.setText("jTextField1");
136:                tfProductName.setBorder(null);
137:                jPanel1.add(tfProductName);
138:
139:                lblProductVersion.setText("Database Product Version:");
140:                jPanel1.add(lblProductVersion);
141:
142:                tfProductVersion.setEditable(false);
143:                tfProductVersion.setText("jTextField2");
144:                tfProductVersion.setBorder(null);
145:                jPanel1.add(tfProductVersion);
146:
147:                jPanel1.add(jLabel8);
148:
149:                jPanel1.add(jLabel7);
150:
151:                lblCatalogTerm.setText("Catalog Term:");
152:                lblCatalogTerm.setLabelFor(tfCatalogTerm);
153:                jPanel1.add(lblCatalogTerm);
154:
155:                tfCatalogTerm.setEditable(false);
156:                tfCatalogTerm.setText("jTextField1");
157:                tfCatalogTerm.setBorder(null);
158:                jPanel1.add(tfCatalogTerm);
159:
160:                lblCatalogSeparator.setText("Catalog Separator:");
161:                lblCatalogSeparator.setLabelFor(tfCatalogSeparator);
162:                jPanel1.add(lblCatalogSeparator);
163:
164:                tfCatalogSeparator.setEditable(false);
165:                tfCatalogSeparator.setText("jTextField1");
166:                tfCatalogSeparator.setBorder(null);
167:                jPanel1.add(tfCatalogSeparator);
168:
169:                lblSupportsCatalogInIndex.setText("supports Catalog in Index:");
170:                lblSupportsCatalogInIndex.setLabelFor(tfSupportsCatalogInIndex);
171:                jPanel1.add(lblSupportsCatalogInIndex);
172:
173:                tfSupportsCatalogInIndex.setEditable(false);
174:                tfSupportsCatalogInIndex.setText("jTextField1");
175:                tfSupportsCatalogInIndex.setBorder(null);
176:                jPanel1.add(tfSupportsCatalogInIndex);
177:
178:                lblSupportsCatalogInDML.setText("supports Catalog in DML:");
179:                lblSupportsCatalogInDML.setLabelFor(lblSupportsCatalogInDML);
180:                jPanel1.add(lblSupportsCatalogInDML);
181:
182:                tfSupportsCatalogInDML.setEditable(false);
183:                tfSupportsCatalogInDML.setText("jTextField1");
184:                tfSupportsCatalogInDML.setBorder(null);
185:                jPanel1.add(tfSupportsCatalogInDML);
186:
187:                lblSupportsCatalogInPrivilegeDefinitions
188:                        .setText("supports Catalog in Privilege Definitions:");
189:                lblSupportsCatalogInPrivilegeDefinitions
190:                        .setLabelFor(tfSupportsCatalogInPrivilegeDefinitions);
191:                jPanel1.add(lblSupportsCatalogInPrivilegeDefinitions);
192:
193:                tfSupportsCatalogInPrivilegeDefinitions.setEditable(false);
194:                tfSupportsCatalogInPrivilegeDefinitions.setText("jTextField1");
195:                tfSupportsCatalogInPrivilegeDefinitions.setBorder(null);
196:                jPanel1.add(tfSupportsCatalogInPrivilegeDefinitions);
197:
198:                lblSupportsCatalogInProcedureCalls
199:                        .setText("supports Catalog in Procedure Calls:");
200:                lblSupportsCatalogInProcedureCalls
201:                        .setLabelFor(tfSupportsCatalogInProcedureCalls);
202:                jPanel1.add(lblSupportsCatalogInProcedureCalls);
203:
204:                tfSupportsCatalogInProcedureCalls.setEditable(false);
205:                tfSupportsCatalogInProcedureCalls.setText("jTextField1");
206:                tfSupportsCatalogInProcedureCalls.setBorder(null);
207:                jPanel1.add(tfSupportsCatalogInProcedureCalls);
208:
209:                lblSupportsCatalogInTableDefinitions
210:                        .setText("supports Catalog in Table Definitions:");
211:                lblSupportsCatalogInTableDefinitions
212:                        .setLabelFor(tfSupportsCatalogInTableDefinitions);
213:                jPanel1.add(lblSupportsCatalogInTableDefinitions);
214:
215:                tfSupportsCatalogInTableDefinitions.setEditable(false);
216:                tfSupportsCatalogInTableDefinitions.setText("jTextField1");
217:                tfSupportsCatalogInTableDefinitions.setBorder(null);
218:                jPanel1.add(tfSupportsCatalogInTableDefinitions);
219:
220:                jPanel1.add(jLabel4);
221:
222:                jPanel1.add(jLabel3);
223:
224:                lblSchemaTerm.setText("Schema Term:");
225:                lblSchemaTerm.setLabelFor(tfSchemaTerm);
226:                jPanel1.add(lblSchemaTerm);
227:
228:                tfSchemaTerm.setEditable(false);
229:                tfSchemaTerm.setText("jTextField1");
230:                tfSchemaTerm.setBorder(null);
231:                jPanel1.add(tfSchemaTerm);
232:
233:                gridBagConstraints = new java.awt.GridBagConstraints();
234:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
235:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
236:                gridBagConstraints.weightx = 1.0;
237:                gridBagConstraints.weighty = 1.0;
238:                add(jPanel1, gridBagConstraints);
239:
240:            }//GEN-END:initComponents
241:
242:            private void cbEnabledActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_cbEnabledActionPerformed
243:            {//GEN-HEADEREND:event_cbEnabledActionPerformed
244:                // Add your handling code here:
245:                aMeta.setEnabled(cbEnabled.isSelected());
246:            }//GEN-LAST:event_cbEnabledActionPerformed
247:
248:            private void formHierarchyChanged(java.awt.event.HierarchyEvent evt)//GEN-FIRST:event_formHierarchyChanged
249:            {//GEN-HEADEREND:event_formHierarchyChanged
250:                // Add your handling code here:
251:                readValuesFromMeta();
252:            }//GEN-LAST:event_formHierarchyChanged
253:
254:            private void formComponentHidden(java.awt.event.ComponentEvent evt)//GEN-FIRST:event_formComponentHidden
255:            {//GEN-HEADEREND:event_formComponentHidden
256:                // Add your handling code here:
257:            }//GEN-LAST:event_formComponentHidden
258:
259:            private void formComponentShown(java.awt.event.ComponentEvent evt)//GEN-FIRST:event_formComponentShown
260:            {//GEN-HEADEREND:event_formComponentShown
261:                // Add your handling code here:
262:            }//GEN-LAST:event_formComponentShown
263:
264:            public void setModel(PropertySheetModel pm) {
265:                if (pm instanceof  org.apache.ojb.tools.mapping.reversedb.DBMeta) {
266:                    this .aMeta = (org.apache.ojb.tools.mapping.reversedb.DBMeta) pm;
267:                    this .readValuesFromMeta();
268:                } else
269:                    throw new IllegalArgumentException();
270:            }
271:
272:            // Variables declaration - do not modify//GEN-BEGIN:variables
273:            private javax.swing.JTextField tfSchemaTerm;
274:            private javax.swing.JLabel lblSupportsCatalogInDML;
275:            private javax.swing.JLabel lblProductVersion;
276:            private javax.swing.JTextField tfSupportsCatalogInDML;
277:            private javax.swing.JTextField tfProductVersion;
278:            private javax.swing.JPanel jPanel1;
279:            private javax.swing.JLabel lblEnabled;
280:            private javax.swing.JLabel lblCatalogSeparator;
281:            private javax.swing.JCheckBox cbEnabled;
282:            private javax.swing.JTextField tfCatalogSeparator;
283:            private javax.swing.JTextField tfSupportsCatalogInTableDefinitions;
284:            private javax.swing.JTextField tfSupportsCatalogInPrivilegeDefinitions;
285:            private javax.swing.JLabel lblSupportsCatalogInTableDefinitions;
286:            private javax.swing.JLabel lblSupportsCatalogInPrivilegeDefinitions;
287:            private javax.swing.JTextField tfCatalogTerm;
288:            private javax.swing.JLabel lblCatalogTerm;
289:            private javax.swing.JLabel lblSupportsCatalogInIndex;
290:            private javax.swing.JLabel jLabel8;
291:            private javax.swing.JLabel jLabel7;
292:            private javax.swing.JLabel jLabel4;
293:            private javax.swing.JTextField tfSupportsCatalogInProcedureCalls;
294:            private javax.swing.JTextField tfSupportsCatalogInIndex;
295:            private javax.swing.JLabel jLabel3;
296:            private javax.swing.JTextField tfProductName;
297:            private javax.swing.JLabel jLabel2;
298:            private javax.swing.JLabel jLabel1;
299:            private javax.swing.JLabel lblSupportsCatalogInProcedureCalls;
300:            private javax.swing.JLabel lblProductName;
301:            private javax.swing.JLabel lblSchemaTerm;
302:            // End of variables declaration//GEN-END:variables
303:
304:        }
305:
306:        /***************************** Changelog *****************************
307:         // $Log: DBMetaPropertySheet.java,v $
308:         // Revision 1.1.2.1  2005/12/21 22:32:02  tomdz
309:         // Updated license
310:         //
311:         // Revision 1.1  2004/05/05 16:38:49  arminw
312:         // fix fault
313:         // wrong package structure used:
314:         // org.apache.ojb.tools.reversdb
315:         // org.apache.ojb.tools.reversdb2
316:         //
317:         // instead of
318:         // org.apache.ojb.tools.mapping.reversdb
319:         // org.apache.ojb.tools.mapping.reversdb2
320:         //
321:         // Revision 1.1  2004/05/04 13:44:59  arminw
322:         // move reverseDB stuff
323:         //
324:         // Revision 1.6  2004/04/05 12:16:23  tomdz
325:         // Fixed/updated license in files leftover from automatic license transition
326:         //
327:         // Revision 1.5  2004/04/04 23:53:42  brianm
328:         // Fixed initial copyright dates to match cvs repository
329:         //
330:         // Revision 1.4  2004/03/11 18:16:22  brianm
331:         // ASL 2.0
332:         //
333:         // Revision 1.3  2002/06/18 12:26:41  florianbruckner
334:         // changes in Netbeans Form definitions after move to jakarta.
335:         //
336:         // Revision 1.2  2002/06/17 19:34:34  jvanzyl
337:         // Correcting all the package references.
338:         // PR:
339:         // Obtained from:
340:         // Submitted by:
341:         // Reviewed by:
342:         //
343:         // Revision 1.1.1.1  2002/06/17 18:16:53  jvanzyl
344:         // Initial OJB import
345:         //
346:         // Revision 1.2  2002/05/16 11:47:09  florianbruckner
347:         // fix CR/LF issue, change license to ASL
348:         //
349:         // Revision 1.1  2002/04/18 11:44:16  mpoeschl
350:         //
351:         // move files to new location
352:         //
353:         // Revision 1.3  2002/04/07 09:05:17  thma
354:         // *** empty log message ***
355:         //
356:         // Revision 1.2  2002/03/11 17:36:26  florianbruckner
357:         // fix line break issue for these files that were previously checked in with -kb
358:         //
359:         // Revision 1.1  2002/03/04 17:19:32  thma
360:         // initial checking for Florians Reverse engineering tool
361:         //
362:         // Revision 1.1.1.1  2002/02/20 13:35:25  Administrator
363:         // initial import
364:         //
365:         /***************************** Changelog *****************************/
ww_w__.j___a__v___a_2s___._c__om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.