Source Code Cross Referenced for ExportPanel.java in  » Database-Client » PKLite-SQL-Client » com » pk » preferences » 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 Client » PKLite SQL Client » com.pk.preferences 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Created on Sep 18, 2004
003:         *
004:         */
005:        package com.pk.preferences;
006:
007:        import java.awt.GridBagConstraints;
008:        import java.awt.GridBagLayout;
009:        import java.awt.Insets;
010:        import java.awt.event.ActionListener;
011:
012:        import javax.swing.BorderFactory;
013:        import javax.swing.BoxLayout;
014:        import javax.swing.JCheckBox;
015:        import javax.swing.JLabel;
016:        import javax.swing.JPanel;
017:        import javax.swing.JTextField;
018:
019:        import com.pk.Preferences;
020:
021:        /**
022:         * @author Chris Taylor
023:         *
024:         */
025:        public class ExportPanel extends JPanel {
026:            /**
027:             * 
028:             */
029:            private static final long serialVersionUID = -4466210421863384525L;
030:
031:            private JTextField txtExportDelimiter = null;
032:            private JTextField txtEncloseBy = null;
033:            private JCheckBox useCdata = null;
034:            private JTextField txtHeaderColor = null;
035:            private JTextField txtBorderColor = null;
036:            private JTextField txtAltRowColor = null;
037:
038:            public ExportPanel(ActionListener argActionListener) {
039:                JPanel delimPanel = new JPanel();
040:                JPanel xmlPanel = new JPanel();
041:                JPanel htmlPanel = new JPanel();
042:
043:                this .setLayout(new BoxLayout(this , BoxLayout.Y_AXIS));
044:                this .setSize(Preferences.HEIGHT, Preferences.WIDTH);
045:
046:                JLabel label = new JLabel();
047:                delimPanel.setLayout(new GridBagLayout());
048:                GridBagConstraints gbc = new GridBagConstraints();
049:                gbc.anchor = GridBagConstraints.WEST;
050:                gbc.insets = new Insets(6, 15, 6, 15);
051:
052:                gbc.gridx = 0;
053:                gbc.gridy = 0;
054:                label = new JLabel("Export Delimiter:", JLabel.LEFT);
055:                delimPanel.add(label, gbc);
056:
057:                gbc.gridy++;
058:                label = new JLabel("Enclose By:", JLabel.LEFT);
059:                delimPanel.add(label, gbc);
060:                gbc.gridx = 1;
061:                gbc.gridy = 0;
062:
063:                txtExportDelimiter = new JTextField(5);
064:                delimPanel.add(txtExportDelimiter, gbc);
065:
066:                gbc.gridy++;
067:                txtEncloseBy = new JTextField(5);
068:                delimPanel.add(txtEncloseBy, gbc);
069:                delimPanel.setBorder(BorderFactory
070:                        .createTitledBorder("Delimited File"));
071:
072:                useCdata = new JCheckBox("Use CData");
073:                xmlPanel.add(useCdata);
074:                xmlPanel
075:                        .setBorder(BorderFactory.createTitledBorder("XML File"));
076:
077:                htmlPanel.setLayout(new GridBagLayout());
078:                gbc.gridx = 0;
079:                gbc.gridy = 0;
080:                label = new JLabel("Header Color:", JLabel.LEFT);
081:                htmlPanel.add(label, gbc);
082:
083:                gbc.gridy++;
084:                label = new JLabel("Border Color:", JLabel.LEFT);
085:                htmlPanel.add(label, gbc);
086:
087:                gbc.gridy++;
088:                label = new JLabel("Alt Row Color:", JLabel.LEFT);
089:                htmlPanel.add(label, gbc);
090:
091:                gbc.gridx = 1;
092:                gbc.gridy = 0;
093:
094:                txtHeaderColor = new JTextField(7);
095:                htmlPanel.add(txtHeaderColor, gbc);
096:
097:                gbc.gridy++;
098:                txtBorderColor = new JTextField(7);
099:                htmlPanel.add(txtBorderColor, gbc);
100:
101:                gbc.gridy++;
102:                txtAltRowColor = new JTextField(7);
103:                htmlPanel.add(txtAltRowColor, gbc);
104:
105:                htmlPanel.setBorder(BorderFactory
106:                        .createTitledBorder("HTML File"));
107:
108:                this .add(delimPanel);
109:                this .add(xmlPanel);
110:                this .add(htmlPanel);
111:            }
112:
113:            /**
114:             * @return Returns the txtEncloseBy.
115:             */
116:            public JTextField getTxtEncloseBy() {
117:                return txtEncloseBy;
118:            }
119:
120:            /**
121:             * @return Returns the txtExportDelimiter.
122:             */
123:            public JTextField getTxtExportDelimiter() {
124:                return txtExportDelimiter;
125:            }
126:
127:            /**
128:             * @return Returns the userCdata.
129:             */
130:            public JCheckBox getUseCdata() {
131:                return useCdata;
132:            }
133:
134:            /**
135:             * @return Returns the altRowColor.
136:             */
137:            public JTextField getAltRowColor() {
138:                return txtAltRowColor;
139:            }
140:
141:            /**
142:             * @return Returns the borderColor.
143:             */
144:            public JTextField getBorderColor() {
145:                return txtBorderColor;
146:            }
147:
148:            /**
149:             * @return Returns the headerColor.
150:             */
151:            public JTextField getHeaderColor() {
152:                return txtHeaderColor;
153:            }
154:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.