Source Code Cross Referenced for ProductStepDirectoryPanel.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: ProductStepDirectoryPanel.java,v $
003:         * @modification $Date: 2002/06/04 09:39:57 $
004:         * @version      $Id: ProductStepDirectoryPanel.java,v 1.2 2002/06/04 09:39:57 deniger 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: ProductStepDirectoryPanel.java,v 1.2 2002/06/04 09:39:57 deniger Exp $
031:         */
032:        public class ProductStepDirectoryPanel 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 defaultInstallationField;
041:
042:            public ProductStepDirectoryPanel() {
043:
044:                setBorder(loweredBorder);
045:
046:                GridBagLayout layout = new GridBagLayout();
047:                setLayout(layout);
048:
049:                GridBagConstraints contraint = new GridBagConstraints();
050:
051:                /*
052:                 # Destination path by default (can be redefined at install time)
053:                 # This is ignored if "vainstall.destination.installMode" is not "install".
054:                 # Predefined macros or drive letters can be used in leading brackets:
055:                 # HOME=platform-specific home dir
056:                 # PROGRAM=platform-specific program files location:
057:                 #   ("C:\Program Files" under Windows or "/usr/local" under Unix)
058:                 # C: -> "C:" drive under Windows, "/" under Unix
059:                 vainstall.destination.defaultPath=[HOME]hellotest
060:                 */
061:
062:                // Description
063:                JLabel decriptionLabel = new JLabel();
064:                decriptionLabel.setBorder(BorderFactory
065:                        .createTitledBorder("Description"));
066:                decriptionLabel
067:                        .setText("Destination path by default (can be redefined at install time).");
068:                contraint.fill = GridBagConstraints.BOTH;
069:                contraint.insets = new Insets(16, 16, 0, 16);
070:                contraint.anchor = GridBagConstraints.WEST;
071:                contraint.gridx = 0;
072:                contraint.gridy = 0;
073:                contraint.gridwidth = 2;
074:                contraint.gridheight = 1;
075:                contraint.weightx = 1;
076:                contraint.weighty = 0;
077:                layout.setConstraints(decriptionLabel, contraint);
078:                add(decriptionLabel);
079:
080:                // Title
081:                JLabel defaultInstallationLabel = new JLabel();
082:                defaultInstallationLabel
083:                        .setText("Default installation Directory:");
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(defaultInstallationLabel, contraint);
094:                add(defaultInstallationLabel);
095:
096:                defaultInstallationField = new RequiredTextField();
097:                contraint.fill = GridBagConstraints.HORIZONTAL;
098:                contraint.insets = new Insets(16, 16, 0, 16);
099:                contraint.anchor = GridBagConstraints.CENTER;
100:                contraint.gridx = 1;
101:                contraint.gridy = 1;
102:                contraint.gridwidth = 1;
103:                contraint.gridheight = 1;
104:                contraint.weightx = 1;
105:                contraint.weighty = 0;
106:                layout.setConstraints(defaultInstallationField, contraint);
107:                add(defaultInstallationField);
108:
109:                JPanel fillPanel = new JPanel();
110:                contraint.fill = GridBagConstraints.BOTH;
111:                contraint.insets = new Insets(4, 4, 4, 4);
112:                contraint.anchor = GridBagConstraints.CENTER;
113:                contraint.gridx = 0;
114:                contraint.gridy = 2;
115:                contraint.gridwidth = 1;
116:                contraint.gridheight = 1;
117:                contraint.weightx = 0;
118:                contraint.weighty = 1;
119:                layout.setConstraints(fillPanel, contraint);
120:                add(fillPanel);
121:
122:            }
123:
124:            /**
125:             * save
126:             */
127:            public void save() {
128:            }
129:
130:            /**
131:             * initialize the panel
132:             */
133:            public void initialize(VAIProductModel model) {
134:                this .model = model;
135:
136:                defaultInstallationField.addFocusListener(this );
137:                defaultInstallationField.initialize(model,
138:                        "Default Installation Directory");
139:
140:                if (model.getProperty("vainstall.installer.default.directory") != null) {
141:                    defaultInstallationField
142:                            .setText(model
143:                                    .getProperty("vainstall.installer.default.directory"));
144:                }
145:
146:            }
147:
148:            /**
149:             * stop
150:             */
151:            public void stop() {
152:            }
153:
154:            public void focusGained(FocusEvent evt) {
155:            }
156:
157:            public void focusLost(FocusEvent evt) {
158:
159:                if (evt.getSource() == defaultInstallationField
160:                        && defaultInstallationField.hasChanged() == true) {
161:                    model.putProperty("vainstall.installer.default.directory",
162:                            defaultInstallationField.getText());
163:                    defaultInstallationField.setChanged(false);
164:                }
165:            }
166:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.