Source Code Cross Referenced for ProductStepLanguagePanel.java in  » Installer » VAInstall » com » memoire » vainstall » builder » 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 » Installer » VAInstall » com.memoire.vainstall.builder.gui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $RCSfile: ProductStepLanguagePanel.java,v $
003:         * @modification $Date: 2001/09/28 19:35:30 $
004:         * @version      $Id: ProductStepLanguagePanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
005:         *
006:         */
007:
008:        package com.memoire.vainstall.builder.gui;
009:
010:        import com.memoire.vainstall.VAGlobals;
011:        import com.memoire.vainstall.builder.*;
012:
013:        import java.awt.*;
014:        import java.awt.event.*;
015:
016:        import javax.swing.*;
017:        import javax.swing.border.*;
018:
019:        /**
020:         * This panel is shown in the product dialog
021:         *
022:         * This is not just a view panel because it has a reference to the
023:         * VAIProductModel.
024:         * 
025:         *
026:         * @see com.memoire.vainstall.builder.gui.VAIProductInternalFrame
027:         * @see javax.swing.JPanel
028:         *
029:         * @author Henrik Falk
030:         * @version $Id: ProductStepLanguagePanel.java,v 1.1 2001/09/28 19:35:30 hfalk Exp $
031:         */
032:        public class ProductStepLanguagePanel extends JPanel implements 
033:                FocusListener {
034:
035:            private VAIProductModel model;
036:
037:            private final static Border loweredBorder = new SoftBevelBorder(
038:                    BevelBorder.LOWERED);
039:
040:            RequiredTextField installFileNameField;
041:
042:            JComboBox uiInstallerBox;
043:
044:            public ProductStepLanguagePanel() {
045:
046:                setBorder(loweredBorder);
047:
048:                GridBagLayout layout = new GridBagLayout();
049:                setLayout(layout);
050:
051:                GridBagConstraints contraint = new GridBagConstraints();
052:
053:                // Filename
054:                JLabel installFileNameLabel = new JLabel();
055:                installFileNameLabel.setText("Filename of generated package:");
056:                contraint.fill = GridBagConstraints.BOTH;
057:                contraint.insets = new Insets(16, 16, 0, 16);
058:                contraint.anchor = GridBagConstraints.WEST;
059:                contraint.gridx = 0;
060:                contraint.gridy = 0;
061:                contraint.gridwidth = 1;
062:                contraint.gridheight = 1;
063:                contraint.weightx = 0;
064:                contraint.weighty = 0;
065:                layout.setConstraints(installFileNameLabel, contraint);
066:                add(installFileNameLabel);
067:
068:                installFileNameField = new RequiredTextField();
069:                contraint.fill = GridBagConstraints.HORIZONTAL;
070:                contraint.insets = new Insets(16, 16, 0, 16);
071:                contraint.anchor = GridBagConstraints.CENTER;
072:                contraint.gridx = 1;
073:                contraint.gridy = 0;
074:                contraint.gridwidth = 1;
075:                contraint.gridheight = 1;
076:                contraint.weightx = 1;
077:                contraint.weighty = 0;
078:                layout.setConstraints(installFileNameField, contraint);
079:                add(installFileNameField);
080:
081:                // Installer UI
082:                JLabel uiInstallerLabel = new JLabel();
083:                uiInstallerLabel.setText("Installtion UI:");
084:                contraint.fill = GridBagConstraints.BOTH;
085:                contraint.insets = new Insets(16, 16, 0, 16);
086:                contraint.anchor = GridBagConstraints.WEST;
087:                contraint.gridx = 0;
088:                contraint.gridy = 1;
089:                contraint.gridwidth = 1;
090:                contraint.gridheight = 1;
091:                contraint.weightx = 0;
092:                contraint.weighty = 0;
093:                layout.setConstraints(uiInstallerLabel, contraint);
094:                add(uiInstallerLabel);
095:
096:                uiInstallerBox = new JComboBox();
097:                uiInstallerBox.addItem("Graphics");
098:                uiInstallerBox.addItem("Enhanced Graphics");
099:                uiInstallerBox.addItem("Text");
100:                uiInstallerBox.addItem("Ansi");
101:                uiInstallerBox.setSelectedIndex(0);
102:                contraint.fill = GridBagConstraints.HORIZONTAL;
103:                contraint.insets = new Insets(16, 16, 0, 16);
104:                contraint.anchor = GridBagConstraints.CENTER;
105:                contraint.gridx = 1;
106:                contraint.gridy = 1;
107:                contraint.gridwidth = 1;
108:                contraint.gridheight = 1;
109:                contraint.weightx = 1;
110:                contraint.weighty = 0;
111:                layout.setConstraints(uiInstallerBox, contraint);
112:                add(uiInstallerBox);
113:
114:                JPanel fillPanel = new JPanel();
115:                contraint.fill = GridBagConstraints.BOTH;
116:                contraint.insets = new Insets(4, 4, 4, 4);
117:                contraint.anchor = GridBagConstraints.CENTER;
118:                contraint.gridx = 0;
119:                contraint.gridy = 2;
120:                contraint.gridwidth = 1;
121:                contraint.gridheight = 1;
122:                contraint.weightx = 0;
123:                contraint.weighty = 1;
124:                layout.setConstraints(fillPanel, contraint);
125:                add(fillPanel);
126:
127:            }
128:
129:            /**
130:             * save
131:             */
132:            public void save() {
133:            }
134:
135:            /**
136:             * initialize the panel
137:             */
138:            public void initialize(VAIProductModel model) {
139:                this .model = model;
140:
141:                installFileNameField.addFocusListener(this );
142:                //        installFileNameField.initialize(model,"Install Filename");
143:                /*
144:                 if (model.getLicenseName() != null) {
145:                 licenseFileNameField.setText(model.getLicenseName());
146:                 }
147:                 if (model.getLicenseEncoding() != null) {
148:                 encodingField.setText(model.getLicenseEncoding());
149:                 }
150:                 */
151:            }
152:
153:            /**
154:             * stop
155:             */
156:            public void stop() {
157:            }
158:
159:            public void focusGained(FocusEvent evt) {
160:            }
161:
162:            public void focusLost(FocusEvent evt) {
163:
164:                if (evt.getSource() == installFileNameField
165:                        && installFileNameField.hasChanged() == true) {
166:                    model.setPackageName(installFileNameField.getText());
167:                    installFileNameField.setChanged(false);
168:                }
169:            }
170:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.