KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > project > 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.web.project.ui.customizer;
21
22 import org.openide.util.HelpCtx;
23 import org.openide.util.NbBundle;
24
25 public class CustomizerCompile extends javax.swing.JPanel JavaDoc implements HelpCtx.Provider {
26
27     /** Creates new form CustomizerCompile */
28     public CustomizerCompile(WebProjectProperties uiProperties) {
29         initComponents();
30
31         uiProperties.JAVAC_DEPRECATION_MODEL.setMnemonic( jCheckBoxDeprecation.getMnemonic() );
32         jCheckBoxDeprecation.setModel( uiProperties.JAVAC_DEPRECATION_MODEL );
33         uiProperties.JAVAC_DEBUG_MODEL.setMnemonic( jCheckBoxDebugInfo.getMnemonic() );
34         jCheckBoxDebugInfo.setModel( uiProperties.JAVAC_DEBUG_MODEL );
35         uiProperties.COMPILE_JSP_MODEL.setMnemonic( jCheckBoxCompileJSP.getMnemonic() );
36         jCheckBoxCompileJSP.setModel( uiProperties.COMPILE_JSP_MODEL );
37         additionalJavacParamsJTextField.setDocument( uiProperties.JAVAC_COMPILER_ARG_MODEL );
38
39     }
40
41     /** This method is called from within the constructor to
42      * initialize the form.
43      * WARNING: Do NOT modify this code. The content of this method is
44      * always regenerated by the Form Editor.
45      */

46     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
47
private void initComponents() {
48         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
49
50         jLabelOptions = new javax.swing.JLabel JavaDoc();
51         jCheckBoxDebugInfo = new javax.swing.JCheckBox JavaDoc();
52         jCheckBoxDeprecation = new javax.swing.JCheckBox JavaDoc();
53         additionalJavacParamsJLabel = new javax.swing.JLabel JavaDoc();
54         additionalJavacParamsJTextField = new javax.swing.JTextField JavaDoc();
55         additionalJavacParamsExampleJLabel = new javax.swing.JLabel JavaDoc();
56         jCheckBoxCompileJSP = new javax.swing.JCheckBox JavaDoc();
57
58         setLayout(new java.awt.GridBagLayout JavaDoc());
59
60         org.openide.awt.Mnemonics.setLocalizedText(jLabelOptions, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_Options_JLabel"));
61         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
62         gridBagConstraints.gridx = 0;
63         gridBagConstraints.gridy = 0;
64         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
65         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
66         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
67         add(jLabelOptions, gridBagConstraints);
68
69         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxDebugInfo, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_DebugInfo_JCheckBox"));
70         jCheckBoxDebugInfo.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
71         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
72         gridBagConstraints.gridx = 0;
73         gridBagConstraints.gridy = 1;
74         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
75         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
76         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 12, 5, 0);
77         add(jCheckBoxDebugInfo, gridBagConstraints);
78         jCheckBoxDebugInfo.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/project/ui/customizer/Bundle").getString("ACS_CustomizeCompile_Debugging__A11YDesc"));
79
80         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxDeprecation, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_Deprecation_JCheckBox"));
81         jCheckBoxDeprecation.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
82         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
83         gridBagConstraints.gridx = 0;
84         gridBagConstraints.gridy = 2;
85         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
86         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
87         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 12, 11, 0);
88         add(jCheckBoxDeprecation, gridBagConstraints);
89         jCheckBoxDeprecation.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/project/ui/customizer/Bundle").getString("ACS_CustomizeCompile_Deprecated_A11YDesc"));
90
91         additionalJavacParamsJLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"MNE_AdditionalCompilerOptions").charAt(0));
92         additionalJavacParamsJLabel.setLabelFor(additionalJavacParamsJTextField);
93         org.openide.awt.Mnemonics.setLocalizedText(additionalJavacParamsJLabel, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_AdditionalCompilerOptions"));
94         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
95         gridBagConstraints.gridx = 0;
96         gridBagConstraints.gridy = 3;
97         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
98         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 12);
99         add(additionalJavacParamsJLabel, gridBagConstraints);
100
101         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
102         gridBagConstraints.gridx = 1;
103         gridBagConstraints.gridy = 3;
104         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
105         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
106         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
107         gridBagConstraints.weightx = 1.0;
108         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 5, 0);
109         add(additionalJavacParamsJTextField, gridBagConstraints);
110         additionalJavacParamsJTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage (CustomizerCompile.class,"AD_AdditionalCompilerOptions"));
111
112         org.openide.awt.Mnemonics.setLocalizedText(additionalJavacParamsExampleJLabel, org.openide.util.NbBundle.getMessage(CustomizerCompile.class, "LBL_AdditionalCompilerOptionsExample"));
113         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
114         gridBagConstraints.gridx = 1;
115         gridBagConstraints.gridy = 4;
116         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
117         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
118         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
119         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 12, 0);
120         add(additionalJavacParamsExampleJLabel, gridBagConstraints);
121
122         org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxCompileJSP, NbBundle.getMessage(CustomizerCompile.class, "LBL_CustomizeCompile_Compiler_CompileJSP_JCheckBox"));
123         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
124         gridBagConstraints.gridx = 0;
125         gridBagConstraints.gridy = 5;
126         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
127         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
128         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
129         gridBagConstraints.weighty = 1.0;
130         add(jCheckBoxCompileJSP, gridBagConstraints);
131         jCheckBoxCompileJSP.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/project/ui/customizer/Bundle").getString("ACS_CustomizeCompile_TestCompile_A11YDesc"));
132
133     }
134     // </editor-fold>//GEN-END:initComponents
135

136     // Variables declaration - do not modify//GEN-BEGIN:variables
137
private javax.swing.JLabel JavaDoc additionalJavacParamsExampleJLabel;
138     private javax.swing.JLabel JavaDoc additionalJavacParamsJLabel;
139     private javax.swing.JTextField JavaDoc additionalJavacParamsJTextField;
140     private javax.swing.JCheckBox JavaDoc jCheckBoxCompileJSP;
141     private javax.swing.JCheckBox JavaDoc jCheckBoxDebugInfo;
142     private javax.swing.JCheckBox JavaDoc jCheckBoxDeprecation;
143     private javax.swing.JLabel JavaDoc jLabelOptions;
144     // End of variables declaration//GEN-END:variables
145

146     /** Help context where to find more about the paste type action.
147      * @return the help context for this action
148      */

149     public HelpCtx getHelpCtx() {
150         return new HelpCtx(CustomizerCompile.class);
151     }
152
153 }
154
Popular Tags