KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
26  *
27  * @author phrebejk
28  */

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

55     private void initComponents() {//GEN-BEGIN:initComponents
56
java.awt.GridBagConstraints JavaDoc gridBagConstraints;
57
58         jCheckBoxDebugInfo = new javax.swing.JCheckBox JavaDoc();
59         jCheckBoxDeprecation = new javax.swing.JCheckBox JavaDoc();
60         additionalJavacParamsJLabel = new javax.swing.JLabel JavaDoc();
61         additionalJavacParamsJTextField = new javax.swing.JTextField JavaDoc();
62         additionalJavacParamsExampleJLabel = new javax.swing.JLabel JavaDoc();
63
64         setLayout(new java.awt.GridBagLayout JavaDoc());
65
66         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxDebugInfo, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_DebugInfo_JCheckBox"));
67         jCheckBoxDebugInfo.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
68         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
69         gridBagConstraints.gridx = 0;
70         gridBagConstraints.gridy = 0;
71         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
72         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
73         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
74         add(jCheckBoxDebugInfo, gridBagConstraints);
75         jCheckBoxDebugInfo.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "ACSD_CustomizerCompile_jCheckBoxDebugInfo"));
76
77         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxDeprecation, org.openide.util.NbBundle.getBundle(CustomizerCompile.class).getString("LBL_CustomizeCompile_Compiler_Deprecation_JCheckBox"));
78         jCheckBoxDeprecation.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
79         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
80         gridBagConstraints.gridx = 0;
81         gridBagConstraints.gridy = 1;
82         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
83         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
84         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
85         add(jCheckBoxDeprecation, gridBagConstraints);
86         jCheckBoxDeprecation.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "ACSD_CustomizerCompile_jCheckBoxDeprecation"));
87
88         additionalJavacParamsJLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"MNE_AdditionalCompilerOptions").charAt(0));
89         additionalJavacParamsJLabel.setLabelFor(additionalJavacParamsJTextField);
90         additionalJavacParamsJLabel.setText(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"LBL_AdditionalCompilerOptions"));
91         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
92         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
93         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 12);
94         add(additionalJavacParamsJLabel, gridBagConstraints);
95
96         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
97         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
98         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
99         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
100         gridBagConstraints.weightx = 1.0;
101         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
102         add(additionalJavacParamsJTextField, gridBagConstraints);
103         additionalJavacParamsJTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"AD_AdditionalCompilerOptions"));
104
105         additionalJavacParamsExampleJLabel.setText(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"LBL_AdditionalCompilerOptionsExample"));
106         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
107         gridBagConstraints.gridx = 1;
108         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
109         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
110         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
111         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
112         gridBagConstraints.weighty = 1.0;
113         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
114         add(additionalJavacParamsExampleJLabel, gridBagConstraints);
115
116     }//GEN-END:initComponents
117

118
119     // Variables declaration - do not modify//GEN-BEGIN:variables
120
private javax.swing.JLabel JavaDoc additionalJavacParamsExampleJLabel;
121     private javax.swing.JLabel JavaDoc additionalJavacParamsJLabel;
122     private javax.swing.JTextField JavaDoc additionalJavacParamsJTextField;
123     private javax.swing.JCheckBox JavaDoc jCheckBoxDebugInfo;
124     private javax.swing.JCheckBox JavaDoc jCheckBoxDeprecation;
125     // End of variables declaration//GEN-END:variables
126

127
128
129 }
130
Popular Tags