1 19 24 25 package org.netbeans.modules.xml.schema.refactoring.query.views; 26 27 import javax.swing.UIManager ; 28 29 33 public class QueryUnusedGlobalsCustomizerPanel extends javax.swing.JPanel { 34 public static final long serialVersionUID = 1L; 35 public static final String PROP_RUN_UNUSED_GLOBALS_QUERY = 36 "prop-run-unused-globals-query"; 40 public QueryUnusedGlobalsCustomizerPanel() { 41 initComponents(); 42 43 } 44 45 50 public void setExcludeElements(boolean exclude){ 51 excludeGEsCheckBox.setSelected(exclude); 52 } 53 58 public boolean getExcludeElements(){ 59 return excludeGEsCheckBox.isSelected(); 60 } 61 62 67 private void initComponents() { 69 excludeGEsCheckBox = new javax.swing.JCheckBox (); 70 jLabel1 = new javax.swing.JLabel (); 71 72 org.openide.awt.Mnemonics.setLocalizedText(excludeGEsCheckBox, java.util.ResourceBundle.getBundle("org/netbeans/modules/xml/schema/refactoring/query/views/Bundle").getString("LBL_Exclude_Global_Elements")); 73 excludeGEsCheckBox.setToolTipText(org.openide.util.NbBundle.getBundle(QueryUnusedGlobalsCustomizerPanel.class).getString("LBL_Exclude_Global_Elements")); 74 excludeGEsCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 75 excludeGEsCheckBox.setMargin(new java.awt.Insets (0, 0, 0, 0)); 76 excludeGEsCheckBox.setVerticalTextPosition(javax.swing.SwingConstants.TOP); 77 78 org.openide.awt.Mnemonics.setLocalizedText(jLabel1, java.util.ResourceBundle.getBundle("org/netbeans/modules/xml/schema/refactoring/query/views/Bundle").getString("LBL_Find_Unused_Description")); 79 80 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 81 this.setLayout(layout); 82 layout.setHorizontalGroup( 83 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 84 .add(layout.createSequentialGroup() 85 .addContainerGap() 86 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 87 .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 292, Short.MAX_VALUE) 88 .add(layout.createSequentialGroup() 89 .add(excludeGEsCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 90 .add(157, 157, 157))) 91 .add(25, 25, 25)) 92 ); 93 layout.setVerticalGroup( 94 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 95 .add(layout.createSequentialGroup() 96 .addContainerGap() 97 .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 55, Short.MAX_VALUE) 98 .add(24, 24, 24) 99 .add(excludeGEsCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 100 .add(64, 64, 64)) 101 ); 102 } 104 105 private javax.swing.JCheckBox excludeGEsCheckBox; 107 private javax.swing.JLabel jLabel1; 108 110 } 111 | Popular Tags |