1 19 20 package org.netbeans.modules.web.wizards; 21 22 import org.openide.util.NbBundle; 23 24 28 public class WrapperPanel extends javax.swing.JPanel { 29 30 34 private WrapperSelection wizardPanel; 35 36 public WrapperPanel(WrapperSelection wizardPanel) { 37 this.wizardPanel=wizardPanel; 38 initComponents(); 39 setName(NbBundle.getMessage(WrapperPanel.class, "TITLE_wrapperPanel")); 41 52 getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(WrapperPanel.class, "A11Y_DESC_wrapperPanel")); 54 jCheckBox1.getAccessibleContext().setAccessibleName(jCheckBox1.getText()); 55 jCheckBox1.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(WrapperPanel.class, "A11Y_DESC_wrapperPanel")); 56 } 57 58 63 private void initComponents() { 65 java.awt.GridBagConstraints gridBagConstraints; 66 67 jCheckBox1 = new javax.swing.JCheckBox (); 68 jPanel1 = new javax.swing.JPanel (); 69 70 setLayout(new java.awt.GridBagLayout ()); 71 72 setRequestFocusEnabled(false); 73 jCheckBox1.setMnemonic(org.openide.util.NbBundle.getMessage(WrapperPanel.class, "LBL_WebModule_Mnemonic").charAt(0)); 74 jCheckBox1.setText(org.openide.util.NbBundle.getMessage(WrapperPanel.class, "OPT_FilterWrapper")); 75 gridBagConstraints = new java.awt.GridBagConstraints (); 76 gridBagConstraints.gridx = 0; 77 gridBagConstraints.gridy = 0; 78 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 79 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 80 gridBagConstraints.weightx = 1.0; 81 gridBagConstraints.insets = new java.awt.Insets (40, 10, 10, 0); 82 add(jCheckBox1, gridBagConstraints); 83 84 gridBagConstraints = new java.awt.GridBagConstraints (); 85 gridBagConstraints.gridx = 0; 86 gridBagConstraints.gridy = 1; 87 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 88 gridBagConstraints.weighty = 1.0; 89 add(jPanel1, gridBagConstraints); 90 91 } 93 private javax.swing.JCheckBox jCheckBox1; 95 private javax.swing.JPanel jPanel1; 96 98 boolean isWrapper() { 99 return jCheckBox1.isSelected(); 100 } 101 102 } 103 | Popular Tags |