Source Code Cross Referenced for HtmlOptionsPanel.java in  » Database-Client » SQL-Workbench » workbench » gui » dialogs » export » 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 » SQL Workbench » workbench.gui.dialogs.export 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * HtmlOptionsPanel.java
003:         *
004:         * This file is part of SQL Workbench/J, http://www.sql-workbench.net
005:         *
006:         * Copyright 2002-2008, Thomas Kellerer
007:         * No part of this code maybe reused without the permission of the author
008:         *
009:         * To contact the author please send an email to: support@sql-workbench.net
010:         *
011:         */
012:        package workbench.gui.dialogs.export;
013:
014:        import workbench.resource.ResourceMgr;
015:        import workbench.resource.Settings;
016:
017:        /**
018:         *
019:         * @author  support@sql-workbench.net
020:         */
021:        public class HtmlOptionsPanel extends javax.swing.JPanel implements 
022:                HtmlOptions {
023:
024:            /** Creates new form HtmlOptionsPanel */
025:            public HtmlOptionsPanel() {
026:                initComponents();
027:            }
028:
029:            public void saveSettings() {
030:                Settings s = Settings.getInstance();
031:                s.setProperty("workbench.export.html.createfullpage", this 
032:                        .getCreateFullPage());
033:                s.setProperty("workbench.export.html.escape", this 
034:                        .getEscapeHtml());
035:                s.setProperty("workbench.export.html.pagetitle", this 
036:                        .getPageTitle());
037:            }
038:
039:            public void restoreSettings() {
040:                Settings s = Settings.getInstance();
041:                this 
042:                        .setCreateFullPage(s
043:                                .getBoolProperty("workbench.export.html.createfullpage"));
044:                this .setEscapeHtml(s
045:                        .getBoolProperty("workbench.export.html.escape"));
046:                this .setPageTitle(s.getProperty(
047:                        "workbench.export.html.pagetitle", ""));
048:            }
049:
050:            public boolean getCreateFullPage() {
051:                return this .fullPage.isSelected();
052:            }
053:
054:            public boolean getEscapeHtml() {
055:                return escapeHtml.isSelected();
056:            }
057:
058:            public String getPageTitle() {
059:                return pageTitle.getText();
060:            }
061:
062:            public void setCreateFullPage(boolean flag) {
063:                fullPage.setSelected(flag);
064:            }
065:
066:            public void setEscapeHtml(boolean flag) {
067:                escapeHtml.setSelected(flag);
068:            }
069:
070:            public void setPageTitle(String title) {
071:                pageTitle.setText(title);
072:            }
073:
074:            /** This method is called from within the constructor to
075:             * initialize the form.
076:             * WARNING: Do NOT modify this code. The content of this method is
077:             * always regenerated by the Form Editor.
078:             */
079:            private void initComponents()//GEN-BEGIN:initComponents
080:            {
081:                java.awt.GridBagConstraints gridBagConstraints;
082:
083:                pageTitleLabel = new javax.swing.JLabel();
084:                pageTitle = new javax.swing.JTextField();
085:                fullPage = new javax.swing.JCheckBox();
086:                escapeHtml = new javax.swing.JCheckBox();
087:
088:                setLayout(new java.awt.GridBagLayout());
089:
090:                pageTitleLabel.setText(ResourceMgr
091:                        .getString("LblExportHtmlPageTitle"));
092:                pageTitleLabel
093:                        .setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
094:                gridBagConstraints = new java.awt.GridBagConstraints();
095:                gridBagConstraints.gridx = 0;
096:                gridBagConstraints.gridy = 0;
097:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
098:                gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 0);
099:                add(pageTitleLabel, gridBagConstraints);
100:
101:                gridBagConstraints = new java.awt.GridBagConstraints();
102:                gridBagConstraints.gridx = 0;
103:                gridBagConstraints.gridy = 1;
104:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
105:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
106:                gridBagConstraints.weightx = 1.0;
107:                gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 4);
108:                add(pageTitle, gridBagConstraints);
109:
110:                fullPage.setText(ResourceMgr.getString("LblExportFullHtml"));
111:                gridBagConstraints = new java.awt.GridBagConstraints();
112:                gridBagConstraints.gridx = 0;
113:                gridBagConstraints.gridy = 2;
114:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
115:                add(fullPage, gridBagConstraints);
116:
117:                escapeHtml
118:                        .setText(ResourceMgr.getString("LblExportEscapeHtml"));
119:                gridBagConstraints = new java.awt.GridBagConstraints();
120:                gridBagConstraints.gridx = 0;
121:                gridBagConstraints.gridy = 3;
122:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
123:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
124:                gridBagConstraints.weighty = 1.0;
125:                add(escapeHtml, gridBagConstraints);
126:
127:            }//GEN-END:initComponents
128:
129:            // Variables declaration - do not modify//GEN-BEGIN:variables
130:            private javax.swing.JCheckBox escapeHtml;
131:            private javax.swing.JCheckBox fullPage;
132:            private javax.swing.JTextField pageTitle;
133:            private javax.swing.JLabel pageTitleLabel;
134:            // End of variables declaration//GEN-END:variables
135:
136:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.