KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > options > AnnotationSettingsPanel


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 package org.netbeans.modules.subversion.options;
20
21 /**
22  *
23  * @author Tomas Stupka
24  */

25 public class AnnotationSettingsPanel extends javax.swing.JPanel JavaDoc {
26     
27     /** Creates new form AnnotationSettingsPanel */
28     public AnnotationSettingsPanel() {
29         initComponents();
30     }
31     
32     /** This method is called from within the constructor to
33      * initialize the form.
34      * WARNING: Do NOT modify this code. The content of this method is
35      * always regenerated by the Form Editor.
36      */

37     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
38
private void initComponents() {
39
40         jLabel3 = new javax.swing.JLabel JavaDoc();
41         jLabel2 = new javax.swing.JLabel JavaDoc();
42         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
43
44         resetButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.resetButton.text")); // NOI18N
45

46         jLabel3.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.jLabel3.text")); // NOI18N
47

48         jLabel2.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.jLabel2.text")); // NOI18N
49

50         annotationTextField.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.annotationTextField.text")); // NOI18N
51

52         labelsButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.labelsButton.text")); // NOI18N
53

54         upButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.upButton.text")); // NOI18N
55

56         downButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.downButton.text")); // NOI18N
57

58         newButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.newButton.text")); // NOI18N
59

60         removeButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.removeButton.text")); // NOI18N
61

62         jScrollPane1.setBackground(new java.awt.Color JavaDoc(255, 255, 255));
63
64         expresionsTable.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
65             new Object JavaDoc [][] {
66                 {".*/(branches|tags)/(.+?)/.*", "\\2"}
67             },
68             new String JavaDoc [] {
69                 "Repository Url Pattern", "Folder Name"
70             }
71         ) {
72             Class JavaDoc[] types = new Class JavaDoc [] {
73                 java.lang.String JavaDoc.class, java.lang.String JavaDoc.class
74             };
75
76             public Class JavaDoc getColumnClass(int columnIndex) {
77                 return types [columnIndex];
78             }
79         });
80         jScrollPane1.setViewportView(expresionsTable);
81
82         warningLabel.setForeground(new java.awt.Color JavaDoc(255, 0, 0));
83         warningLabel.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.warningLabel.text")); // NOI18N
84

85         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
86         this.setLayout(layout);
87         layout.setHorizontalGroup(
88             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
89             .add(layout.createSequentialGroup()
90                 .addContainerGap()
91                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
92                     .add(layout.createSequentialGroup()
93                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
94                             .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
95                             .add(layout.createSequentialGroup()
96                                 .add(jLabel3)
97                                 .add(270, 270, 270))
98                             .add(layout.createSequentialGroup()
99                                 .add(jLabel2)
100                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
101                                 .add(annotationTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)))
102                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
103                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
104                             .add(labelsButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
105                             .add(upButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
106                             .add(downButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
107                             .add(newButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
108                             .add(removeButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
109                     .add(layout.createSequentialGroup()
110                         .add(resetButton)
111                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
112                         .add(warningLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE)))
113                 .addContainerGap())
114         );
115         layout.setVerticalGroup(
116             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
117             .add(layout.createSequentialGroup()
118                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
119                     .add(layout.createSequentialGroup()
120                         .add(18, 18, 18)
121                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
122                             .add(jLabel2)
123                             .add(annotationTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
124                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
125                         .add(jLabel3)
126                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
127                         .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE))
128                     .add(layout.createSequentialGroup()
129                         .addContainerGap()
130                         .add(labelsButton)
131                         .add(27, 27, 27)
132                         .add(upButton)
133                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
134                         .add(downButton)
135                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 26, Short.MAX_VALUE)
136                         .add(newButton)
137                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
138                         .add(removeButton)))
139                 .add(6, 6, 6)
140                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
141                     .add(resetButton)
142                     .add(warningLabel))
143                 .addContainerGap())
144         );
145     }// </editor-fold>//GEN-END:initComponents
146

147     
148     // Variables declaration - do not modify//GEN-BEGIN:variables
149
final javax.swing.JTextField JavaDoc annotationTextField = new javax.swing.JTextField JavaDoc();
150     final javax.swing.JButton JavaDoc downButton = new javax.swing.JButton JavaDoc();
151     final javax.swing.JTable JavaDoc expresionsTable = new javax.swing.JTable JavaDoc();
152     private javax.swing.JLabel JavaDoc jLabel2;
153     private javax.swing.JLabel JavaDoc jLabel3;
154     private javax.swing.JScrollPane JavaDoc jScrollPane1;
155     final javax.swing.JButton JavaDoc labelsButton = new javax.swing.JButton JavaDoc();
156     final javax.swing.JButton JavaDoc newButton = new javax.swing.JButton JavaDoc();
157     final javax.swing.JButton JavaDoc removeButton = new javax.swing.JButton JavaDoc();
158     final javax.swing.JButton JavaDoc resetButton = new javax.swing.JButton JavaDoc();
159     final javax.swing.JButton JavaDoc upButton = new javax.swing.JButton JavaDoc();
160     final javax.swing.JLabel JavaDoc warningLabel = new javax.swing.JLabel JavaDoc();
161     // End of variables declaration//GEN-END:variables
162

163 }
164
Popular Tags