KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > schema > refactoring > query > views > QueryUnusedGlobalsCustomizerPanel


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-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * QueryUnusedGlobalsCustomizerPanel.java
21  *
22  * Created on April 14, 2006, 8:49 PM
23  */

24
25 package org.netbeans.modules.xml.schema.refactoring.query.views;
26
27 import javax.swing.UIManager JavaDoc;
28
29 /**
30  *
31  * @author Jeri Lockhart
32  */

33 public class QueryUnusedGlobalsCustomizerPanel extends javax.swing.JPanel JavaDoc {
34     public static final long serialVersionUID = 1L;
35     public static final String JavaDoc PROP_RUN_UNUSED_GLOBALS_QUERY =
36             "prop-run-unused-globals-query"; // NOI18N
37
/**
38      * Creates new form QueryUnusedGlobalsCustomizerPanel
39      */

40     public QueryUnusedGlobalsCustomizerPanel() {
41         initComponents();
42         
43     }
44     
45     /**
46      * programmatically set the Exclude Global Elements
47      * check box
48      *
49      */

50     public void setExcludeElements(boolean exclude){
51         excludeGEsCheckBox.setSelected(exclude);
52     }
53     /**
54      * programmatically set the Exclude Global Elements
55      * check box
56      *
57      */

58     public boolean getExcludeElements(){
59         return excludeGEsCheckBox.isSelected();
60     }
61     
62     /** This method is called from within the constructor to
63      * initialize the form.
64      * WARNING: Do NOT modify this code. The content of this method is
65      * always regenerated by the Form Editor.
66      */

67     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
68
private void initComponents() {
69         excludeGEsCheckBox = new javax.swing.JCheckBox JavaDoc();
70         jLabel1 = new javax.swing.JLabel JavaDoc();
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 JavaDoc(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     }// </editor-fold>//GEN-END:initComponents
103

104     
105     // Variables declaration - do not modify//GEN-BEGIN:variables
106
private javax.swing.JCheckBox JavaDoc excludeGEsCheckBox;
107     private javax.swing.JLabel JavaDoc jLabel1;
108     // End of variables declaration//GEN-END:variables
109

110 }
111
Popular Tags