01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * 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-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: package org.netbeans.modules.compapp.projects.base.ui.wizards;
21:
22: import org.netbeans.modules.compapp.projects.base.ui.customizer.IcanproProjectProperties;
23: import org.openide.WizardDescriptor;
24:
25: class PanelOptionsVisual extends javax.swing.JPanel implements
26: org.netbeans.modules.compapp.projects.base.IcanproConstants {
27:
28: // private static boolean lastMainClassCheck = false; // XXX Store somewhere
29:
30: private PanelConfigureProject panel;
31: private String j2eeLevel = IcanproProjectProperties.J2EE_1_4;
32:
33: /** Creates new form PanelOptionsVisual */
34: public PanelOptionsVisual(PanelConfigureProject panel) {
35: initComponents();
36: this .panel = panel;
37: //B initJ2EESpecLevels();
38: }
39:
40: /** This method is called from within the constructor to
41: * initialize the form.
42: * WARNING: Do NOT modify this code. The content of this method is
43: * always regenerated by the Form Editor.
44: */
45: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
46: private void initComponents() {
47: setAsMainCheckBox = new javax.swing.JCheckBox();
48: jLabel1 = new javax.swing.JLabel();
49:
50: setLayout(new java.awt.BorderLayout());
51:
52: setAsMainCheckBox.setSelected(true);
53: org.openide.awt.Mnemonics.setLocalizedText(setAsMainCheckBox,
54: org.openide.util.NbBundle.getMessage(
55: PanelOptionsVisual.class,
56: "LBL_NWP1_SetAsMain_CheckBox"));
57: setAsMainCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
58: add(setAsMainCheckBox, java.awt.BorderLayout.CENTER);
59: setAsMainCheckBox.getAccessibleContext().setAccessibleName(
60: org.openide.util.NbBundle.getMessage(
61: PanelOptionsVisual.class,
62: "LBL_NWP1_SetAsMain_CheckBox"));
63: setAsMainCheckBox.getAccessibleContext()
64: .setAccessibleDescription(
65: org.openide.util.NbBundle.getMessage(
66: PanelOptionsVisual.class,
67: "ACS_LBL_NWP1_SetAsMain_A11YDesc"));
68:
69: jLabel1.setText(" ");
70: add(jLabel1, java.awt.BorderLayout.NORTH);
71:
72: }// </editor-fold>//GEN-END:initComponents
73:
74: boolean valid(WizardDescriptor wizardDescriptor) {
75: return true;
76: }
77:
78: void store(WizardDescriptor d) {
79: d.putProperty(WizardProperties.SET_AS_MAIN, setAsMainCheckBox
80: .isSelected() ? Boolean.TRUE : Boolean.FALSE);
81: d.putProperty(WizardProperties.J2EE_LEVEL, j2eeLevel);
82: }
83:
84: void read(WizardDescriptor d) {
85: }
86:
87: // Variables declaration - do not modify//GEN-BEGIN:variables
88: private javax.swing.JLabel jLabel1;
89: private javax.swing.JCheckBox setAsMainCheckBox;
90: // End of variables declaration//GEN-END:variables
91:
92: //B private void initJ2EESpecLevels() {
93: //B j2eeSpecComboBox.addItem(NbBundle.getBundle(WIZARD_BUNDLE).getString("J2EESpecLevel_0")); //NOI18N
94: //B j2eeSpecComboBox.setSelectedIndex(0);
95: //B }
96: }
|