KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > wizards > checkoutstep > CheckoutPanel


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

19
20 package org.netbeans.modules.subversion.ui.wizards.checkoutstep;
21
22 /**
23  *
24  * @author Petr Kuzel
25  */

26 public class CheckoutPanel extends javax.swing.JPanel JavaDoc {
27
28     /**
29      * Creates new form CheckoutPanel
30      */

31     public CheckoutPanel() {
32         initComponents();
33     }
34
35     /** This method is called from within the constructor to
36      * initialize the form.
37      * WARNING: Do NOT modify this code. The content of this method is
38      * always regenerated by the Form Editor.
39      */

40     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
41
private void initComponents() {
42
43         jPopupMenu1 = new javax.swing.JPopupMenu JavaDoc();
44         jMenuItem1 = new javax.swing.JMenuItem JavaDoc();
45         jLabel1 = new javax.swing.JLabel JavaDoc();
46         jLabel2 = new javax.swing.JLabel JavaDoc();
47         jLabel3 = new javax.swing.JLabel JavaDoc();
48         jLabel4 = new javax.swing.JLabel JavaDoc();
49         jLabel5 = new javax.swing.JLabel JavaDoc();
50         jLabel6 = new javax.swing.JLabel JavaDoc();
51         jLabel7 = new javax.swing.JLabel JavaDoc();
52
53         org.openide.awt.Mnemonics.setLocalizedText(jMenuItem1, "Item"); // NOI18N
54
jMenuItem1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
55             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
56                 jMenuItem1ActionPerformed(evt);
57             }
58         });
59         jPopupMenu1.add(jMenuItem1);
60
61         java.util.ResourceBundle JavaDoc bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/wizards/checkoutstep/Bundle"); // NOI18N
62
setName(bundle.getString("BK2024")); // NOI18N
63

64         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_LocalFolderHint")); // NOI18N
65

66         jLabel2.setLabelFor(workdirTextField);
67         org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_LocalFolder")); // NOI18N
68

69         org.openide.awt.Mnemonics.setLocalizedText(browseWorkdirButton, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Browse2")); // NOI18N
70

71         org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_RepositoryHint")); // NOI18N
72

73         jLabel4.setLabelFor(repositoryPathTextField);
74         org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_RepositoryFolder")); // NOI18N
75

76         org.openide.awt.Mnemonics.setLocalizedText(browseRepositoryButton, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Browse1")); // NOI18N
77

78         jLabel5.setLabelFor(revisionTextField);
79         org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Revision")); // NOI18N
80

81         org.openide.awt.Mnemonics.setLocalizedText(searchRevisionButton, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Search")); // NOI18N
82

83         org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_EmptyHint")); // NOI18N
84

85         org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_LocalHint")); // NOI18N
86

87         org.openide.awt.Mnemonics.setLocalizedText(atWorkingDirLevelCheckBox, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_CheckoutContentEmpty")); // NOI18N
88
atWorkingDirLevelCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
89         atWorkingDirLevelCheckBox.setEnabled(false);
90         atWorkingDirLevelCheckBox.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
91
92         scanForProjectsCheckBox.setSelected(true);
93         org.openide.awt.Mnemonics.setLocalizedText(scanForProjectsCheckBox, "Scan for Netbeans Projects after Checkout");
94         scanForProjectsCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
95         scanForProjectsCheckBox.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
96
97         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
98         this.setLayout(layout);
99         layout.setHorizontalGroup(
100             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
101             .add(layout.createSequentialGroup()
102                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
103                     .add(atWorkingDirLevelCheckBox)
104                     .add(layout.createSequentialGroup()
105                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
106                             .add(jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 438, Short.MAX_VALUE)
107                             .add(layout.createSequentialGroup()
108                                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
109                                     .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
110                                         .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 128, Short.MAX_VALUE)
111                                         .add(jLabel4))
112                                     .add(jLabel2))
113                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
114                                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
115                                     .add(layout.createSequentialGroup()
116                                         .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
117                                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
118                                         .add(searchRevisionButton))
119                                     .add(jLabel6)
120                                     .add(jLabel7)
121                                     .add(repositoryPathTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)
122                                     .add(workdirTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE))
123                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
124                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
125                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
126                             .add(browseRepositoryButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
127                             .add(browseWorkdirButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 95, Short.MAX_VALUE))
128                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
129                     .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 475, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
130                     .add(scanForProjectsCheckBox))
131                 .addContainerGap())
132         );
133         layout.setVerticalGroup(
134             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
135             .add(layout.createSequentialGroup()
136                 .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
137                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
138                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
139                     .add(jLabel4)
140                     .add(repositoryPathTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
141                     .add(browseRepositoryButton))
142                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
143                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
144                     .add(jLabel5)
145                     .add(searchRevisionButton)
146                     .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
147                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
148                 .add(jLabel6)
149                 .add(13, 13, 13)
150                 .add(atWorkingDirLevelCheckBox)
151                 .add(28, 28, 28)
152                 .add(jLabel1)
153                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
154                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
155                     .add(jLabel2)
156                     .add(workdirTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
157                     .add(browseWorkdirButton))
158                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
159                 .add(jLabel7)
160                 .add(23, 23, 23)
161                 .add(scanForProjectsCheckBox)
162                 .addContainerGap(40, Short.MAX_VALUE))
163         );
164
165         jLabel2.getAccessibleContext().setAccessibleDescription("Local Folder");
166         browseWorkdirButton.getAccessibleContext().setAccessibleDescription("Browse Local Directory");
167         jLabel4.getAccessibleContext().setAccessibleDescription("Repository Folders to Checkout");
168         browseRepositoryButton.getAccessibleContext().setAccessibleDescription("Browse Repository Foldres");
169         jLabel5.getAccessibleContext().setAccessibleDescription("Repository Revision");
170         searchRevisionButton.getAccessibleContext().setAccessibleDescription("Search Revision Number");
171         atWorkingDirLevelCheckBox.getAccessibleContext().setAccessibleDescription("Checkout only folder contents");
172     }// </editor-fold>//GEN-END:initComponents
173

174     private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
175

176     }//GEN-LAST:event_jMenuItem1ActionPerformed
177

178     
179     // Variables declaration - do not modify//GEN-BEGIN:variables
180
final javax.swing.JCheckBox JavaDoc atWorkingDirLevelCheckBox = new javax.swing.JCheckBox JavaDoc();
181     final javax.swing.JButton JavaDoc browseRepositoryButton = new javax.swing.JButton JavaDoc();
182     final javax.swing.JButton JavaDoc browseWorkdirButton = new javax.swing.JButton JavaDoc();
183     private javax.swing.JLabel JavaDoc jLabel1;
184     private javax.swing.JLabel JavaDoc jLabel2;
185     private javax.swing.JLabel JavaDoc jLabel3;
186     private javax.swing.JLabel JavaDoc jLabel4;
187     private javax.swing.JLabel JavaDoc jLabel5;
188     private javax.swing.JLabel JavaDoc jLabel6;
189     private javax.swing.JLabel JavaDoc jLabel7;
190     private javax.swing.JMenuItem JavaDoc jMenuItem1;
191     private javax.swing.JPopupMenu JavaDoc jPopupMenu1;
192     final javax.swing.JTextField JavaDoc repositoryPathTextField = new javax.swing.JTextField JavaDoc();
193     final javax.swing.JTextField JavaDoc revisionTextField = new javax.swing.JTextField JavaDoc();
194     final javax.swing.JCheckBox JavaDoc scanForProjectsCheckBox = new javax.swing.JCheckBox JavaDoc();
195     final javax.swing.JButton JavaDoc searchRevisionButton = new javax.swing.JButton JavaDoc();
196     final javax.swing.JTextField JavaDoc workdirTextField = new javax.swing.JTextField JavaDoc();
197     // End of variables declaration//GEN-END:variables
198

199 }
200
Popular Tags