KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > clientproject > ui > customizer > CustomizerJar


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.clientproject.ui.customizer;
21
22 import javax.swing.JPanel JavaDoc;
23 import org.openide.util.HelpCtx;
24
25 /** Customizer for general project attributes.
26  *
27  * @author phrebejk
28  */

29 public class CustomizerJar extends JPanel JavaDoc implements HelpCtx.Provider {
30     
31     public CustomizerJar( AppClientProjectProperties uiProperties ) {
32         initComponents();
33         
34         jTextFieldDistDir.setDocument( uiProperties.DIST_JAR_MODEL );
35         jTextFieldExcludes.setDocument( uiProperties.BUILD_CLASSES_EXCLUDES_MODEL );
36         
37         uiProperties.JAR_COMPRESS_MODEL.setMnemonic( jCheckBoxCommpress.getMnemonic() );
38         jCheckBoxCommpress.setModel( uiProperties.JAR_COMPRESS_MODEL );
39     }
40     
41     public HelpCtx getHelpCtx() {
42         return new HelpCtx( CustomizerJar.class );
43     }
44         
45     
46     /** This method is called from within the constructor to
47      * initialize the form.
48      * WARNING: Do NOT modify this code. The content of this method is
49      * always regenerated by the Form Editor.
50      */

51     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
52
private void initComponents() {
53         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
54
55         jLabelDistDir = new javax.swing.JLabel JavaDoc();
56         jTextFieldDistDir = new javax.swing.JTextField JavaDoc();
57         jLabel2 = new javax.swing.JLabel JavaDoc();
58         jTextFieldExcludes = new javax.swing.JTextField JavaDoc();
59         jCheckBoxCommpress = new javax.swing.JCheckBox JavaDoc();
60         excludeMessage = new javax.swing.JLabel JavaDoc();
61
62         setLayout(new java.awt.GridBagLayout JavaDoc());
63
64         jLabelDistDir.setLabelFor(jTextFieldDistDir);
65         org.openide.awt.Mnemonics.setLocalizedText(jLabelDistDir, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_DistDir_JTextField"));
66         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
67         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
68         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 12);
69         add(jLabelDistDir, gridBagConstraints);
70
71         jTextFieldDistDir.setEditable(false);
72         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
73         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
74         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
75         gridBagConstraints.weightx = 1.0;
76         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
77         add(jTextFieldDistDir, gridBagConstraints);
78         jTextFieldDistDir.getAccessibleContext().setAccessibleDescription(null);
79
80         jLabel2.setLabelFor(jTextFieldExcludes);
81         org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_Excludes_JTextField"));
82         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
83         gridBagConstraints.gridx = 0;
84         gridBagConstraints.gridy = 1;
85         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
86         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 12);
87         add(jLabel2, gridBagConstraints);
88
89         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
90         gridBagConstraints.gridx = 1;
91         gridBagConstraints.gridy = 1;
92         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
93         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
94         gridBagConstraints.weightx = 1.0;
95         add(jTextFieldExcludes, gridBagConstraints);
96         jTextFieldExcludes.getAccessibleContext().setAccessibleDescription(null);
97
98         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxCommpress, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_Commpres_JCheckBox"));
99         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
100         gridBagConstraints.gridx = 0;
101         gridBagConstraints.gridy = 3;
102         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
103         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
104         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
105         gridBagConstraints.weighty = 1.0;
106         add(jCheckBoxCommpress, gridBagConstraints);
107         jCheckBoxCommpress.getAccessibleContext().setAccessibleDescription(null);
108
109         excludeMessage.setLabelFor(jTextFieldExcludes);
110         org.openide.awt.Mnemonics.setLocalizedText(excludeMessage, java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/clientproject/ui/customizer/Bundle").getString("LBL_CustomizerJar_ExcludeMessage"));
111         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
112         gridBagConstraints.gridx = 1;
113         gridBagConstraints.gridy = 2;
114         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
115         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
116         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
117         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 6, 0);
118         add(excludeMessage, gridBagConstraints);
119
120     }// </editor-fold>//GEN-END:initComponents
121

122     
123     // Variables declaration - do not modify//GEN-BEGIN:variables
124
private javax.swing.JLabel JavaDoc excludeMessage;
125     private javax.swing.JCheckBox JavaDoc jCheckBoxCommpress;
126     private javax.swing.JLabel JavaDoc jLabel2;
127     private javax.swing.JLabel JavaDoc jLabelDistDir;
128     private javax.swing.JTextField JavaDoc jTextFieldDistDir;
129     private javax.swing.JTextField JavaDoc jTextFieldExcludes;
130     // End of variables declaration//GEN-END:variables
131

132 }
133
Popular Tags