001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: /*
042: * RelocatePanel.java
043: *
044: * Created on 03 March 2007, 11:53
045: */
046:
047: package org.netbeans.modules.subversion.ui.relocate;
048:
049: import javax.swing.JTextField;
050:
051: /**
052: *
053: * @author Peter Pis
054: */
055: public class RelocatePanel extends javax.swing.JPanel {
056:
057: /** Creates new form RelocatePanel */
058: public RelocatePanel() {
059: initComponents();
060: }
061:
062: /** This method is called from within the constructor to
063: * initialize the form.
064: * WARNING: Do NOT modify this code. The content of this method is
065: * always regenerated by the Form Editor.
066: */
067: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
068: private void initComponents() {
069:
070: jLabel1 = new javax.swing.JLabel();
071: tfWorkingCopy = new javax.swing.JTextField();
072: jLabel2 = new javax.swing.JLabel();
073: tfCurrentURL = new javax.swing.JTextField();
074: jLabel3 = new javax.swing.JLabel();
075: tfNewURL = new javax.swing.JTextField();
076:
077: jLabel1.setLabelFor(tfWorkingCopy);
078: org.openide.awt.Mnemonics.setLocalizedText(jLabel1,
079: org.openide.util.NbBundle.getMessage(
080: RelocatePanel.class,
081: "RelocatePanel.jLabel1.text")); // NOI18N
082:
083: tfWorkingCopy.setEditable(false);
084:
085: jLabel2.setLabelFor(tfCurrentURL);
086: org.openide.awt.Mnemonics.setLocalizedText(jLabel2,
087: org.openide.util.NbBundle.getMessage(
088: RelocatePanel.class,
089: "RelocatePanel.jLabel2.text")); // NOI18N
090:
091: tfCurrentURL.setEditable(false);
092:
093: jLabel3.setLabelFor(tfNewURL);
094: org.openide.awt.Mnemonics.setLocalizedText(jLabel3,
095: org.openide.util.NbBundle.getMessage(
096: RelocatePanel.class,
097: "RelocatePanel.jLabel3.text")); // NOI18N
098:
099: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
100: this );
101: this .setLayout(layout);
102: layout
103: .setHorizontalGroup(layout
104: .createParallelGroup(
105: org.jdesktop.layout.GroupLayout.LEADING)
106: .add(
107: layout
108: .createSequentialGroup()
109: .addContainerGap()
110: .add(
111: layout
112: .createParallelGroup(
113: org.jdesktop.layout.GroupLayout.LEADING)
114: .add(jLabel1)
115: .add(jLabel2)
116: .add(jLabel3))
117: .addPreferredGap(
118: org.jdesktop.layout.LayoutStyle.RELATED)
119: .add(
120: layout
121: .createParallelGroup(
122: org.jdesktop.layout.GroupLayout.LEADING)
123: .add(
124: tfCurrentURL,
125: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
126: 380,
127: Short.MAX_VALUE)
128: .add(
129: tfWorkingCopy,
130: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
131: 380,
132: Short.MAX_VALUE)
133: .add(
134: tfNewURL,
135: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
136: 380,
137: Short.MAX_VALUE))
138: .addContainerGap()));
139: layout
140: .setVerticalGroup(layout
141: .createParallelGroup(
142: org.jdesktop.layout.GroupLayout.LEADING)
143: .add(
144: layout
145: .createSequentialGroup()
146: .addContainerGap()
147: .add(
148: layout
149: .createParallelGroup(
150: org.jdesktop.layout.GroupLayout.BASELINE)
151: .add(jLabel1)
152: .add(
153: tfWorkingCopy,
154: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
155: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
156: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
157: .addPreferredGap(
158: org.jdesktop.layout.LayoutStyle.RELATED)
159: .add(
160: layout
161: .createParallelGroup(
162: org.jdesktop.layout.GroupLayout.BASELINE)
163: .add(jLabel2)
164: .add(
165: tfCurrentURL,
166: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
167: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
168: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
169: .addPreferredGap(
170: org.jdesktop.layout.LayoutStyle.RELATED)
171: .add(
172: layout
173: .createParallelGroup(
174: org.jdesktop.layout.GroupLayout.BASELINE)
175: .add(jLabel3)
176: .add(
177: tfNewURL,
178: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
179: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
180: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
181: .addContainerGap(
182: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
183: Short.MAX_VALUE)));
184:
185: jLabel1
186: .getAccessibleContext()
187: .setAccessibleDescription(
188: org.openide.util.NbBundle
189: .getMessage(RelocatePanel.class,
190: "RelocatePanel.jLabel1.AccessibleContext.accessibleDescription")); // NOI18N
191: tfWorkingCopy
192: .getAccessibleContext()
193: .setAccessibleName(
194: org.openide.util.NbBundle
195: .getMessage(RelocatePanel.class,
196: "RelocatePanel.tfWorkingCopy.AccessibleContext.accessibleName")); // NOI18N
197: tfWorkingCopy
198: .getAccessibleContext()
199: .setAccessibleDescription(
200: org.openide.util.NbBundle
201: .getMessage(RelocatePanel.class,
202: "RelocatePanel.tfWorkingCopy.AccessibleContext.accessibleDescription")); // NOI18N
203: jLabel2
204: .getAccessibleContext()
205: .setAccessibleDescription(
206: org.openide.util.NbBundle
207: .getMessage(RelocatePanel.class,
208: "RelocatePanel.jLabel2.AccessibleContext.accessibleDescription")); // NOI18N
209: tfCurrentURL
210: .getAccessibleContext()
211: .setAccessibleName(
212: org.openide.util.NbBundle
213: .getMessage(RelocatePanel.class,
214: "RelocatePanel.tfCurrentURL.AccessibleContext.accessibleName")); // NOI18N
215: tfCurrentURL
216: .getAccessibleContext()
217: .setAccessibleDescription(
218: org.openide.util.NbBundle
219: .getMessage(RelocatePanel.class,
220: "RelocatePanel.tfCurrentURL.AccessibleContext.accessibleDescription")); // NOI18N
221: jLabel3
222: .getAccessibleContext()
223: .setAccessibleDescription(
224: org.openide.util.NbBundle
225: .getMessage(RelocatePanel.class,
226: "RelocatePanel.jLabel3.AccessibleContext.accessibleDescription")); // NOI18N
227: tfNewURL
228: .getAccessibleContext()
229: .setAccessibleName(
230: org.openide.util.NbBundle
231: .getMessage(RelocatePanel.class,
232: "RelocatePanel.tfNewURL.AccessibleContext.accessibleName")); // NOI18N
233: tfNewURL
234: .getAccessibleContext()
235: .setAccessibleDescription(
236: org.openide.util.NbBundle
237: .getMessage(RelocatePanel.class,
238: "RelocatePanel.tfNewURL.AccessibleContext.accessibleDescription")); // NOI18N
239: }// </editor-fold>//GEN-END:initComponents
240:
241: // Variables declaration - do not modify//GEN-BEGIN:variables
242: private javax.swing.JLabel jLabel1;
243: private javax.swing.JLabel jLabel2;
244: private javax.swing.JLabel jLabel3;
245: private javax.swing.JTextField tfCurrentURL;
246: private javax.swing.JTextField tfNewURL;
247: private javax.swing.JTextField tfWorkingCopy;
248:
249: // End of variables declaration//GEN-END:variables
250:
251: public JTextField getWorkingCopy() {
252: return tfWorkingCopy;
253: }
254:
255: public JTextField getCurrentURL() {
256: return tfCurrentURL;
257: }
258:
259: public JTextField getNewURL() {
260: return tfNewURL;
261: }
262: }
|