1 19 20 package org.netbeans.modules.web.examples; 21 22 import org.netbeans.modules.web.api.webmodule.WebModule; 23 import org.openide.WizardDescriptor; 24 import org.openide.util.NbBundle; 25 26 public class PanelOptionsVisual extends javax.swing.JPanel { 27 28 private PanelConfigureProject panel; 29 30 31 public PanelOptionsVisual(PanelConfigureProject panel) { 32 initComponents(); 33 this.panel = panel; 34 } 35 36 41 private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; 43 44 setAsMainCheckBox = new javax.swing.JCheckBox (); 45 jScrollPane1 = new javax.swing.JScrollPane (); 46 47 setLayout(new java.awt.GridBagLayout ()); 48 49 setAsMainCheckBox.setMnemonic(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, "LBL_NWP1_SetAsMain_CheckBoxMnemonic").charAt(0)); 50 setAsMainCheckBox.setSelected(true); 51 setAsMainCheckBox.setText(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, "LBL_NWP1_SetAsMain_CheckBox")); 52 setAsMainCheckBox.setActionCommand("Set as Main Project"); 53 setAsMainCheckBox.setMargin(new java.awt.Insets (0, 0, 0, 0)); 54 gridBagConstraints = new java.awt.GridBagConstraints (); 55 gridBagConstraints.gridx = 0; 56 gridBagConstraints.gridy = 0; 57 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 58 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 59 gridBagConstraints.insets = new java.awt.Insets (0, 0, 11, 0); 60 add(setAsMainCheckBox, gridBagConstraints); 61 setAsMainCheckBox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, "ACS_LBL_NWP1_SetAsMain_A11YDesc")); 62 63 jScrollPane1.setBorder(null); 64 gridBagConstraints = new java.awt.GridBagConstraints (); 65 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 66 gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; 67 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 68 gridBagConstraints.weightx = 1.0; 69 gridBagConstraints.weighty = 1.0; 70 gridBagConstraints.insets = new java.awt.Insets (0, 12, 0, 0); 71 add(jScrollPane1, gridBagConstraints); 72 73 } 75 boolean valid(WizardDescriptor wizardDescriptor) { 76 return true; 77 } 78 79 void store(WizardDescriptor d) { 80 d.putProperty(WizardProperties.SET_AS_MAIN, setAsMainCheckBox.isSelected() ? Boolean.TRUE : Boolean.FALSE ); 81 } 82 83 void read(WizardDescriptor d) { 84 } 85 86 private javax.swing.JScrollPane jScrollPane1; 88 private javax.swing.JCheckBox setAsMainCheckBox; 89 91 } 92 93 | Popular Tags |