KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > websphere6 > dd > loaders > ui > MarkupLanguagePanel


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.j2ee.websphere6.dd.loaders.ui;
20
21 import org.netbeans.modules.j2ee.websphere6.dd.beans.*;
22
23 /**
24  *
25  * @author dlm198383
26  */

27 public class MarkupLanguagePanel extends javax.swing.JPanel JavaDoc {
28
29     /** Creates new form MarkupLanguagePanel */
30     public MarkupLanguagePanel() {
31         initComponents();
32         nameComboBox.setModel(new javax.swing.DefaultComboBoxModel JavaDoc(MarkupLanguagesType.AVALIABLE_NAMES));
33         mimeTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel JavaDoc(MarkupLanguagesType.AVALIABLE_MIME_TYPES));
34     }
35     
36     /** This method is called from within the constructor to
37      * initialize the form.
38      * WARNING: Do NOT modify this code. The content of this method is
39      * always regenerated by the Form Editor.
40      */

41     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
42
private void initComponents() {
43         idLabel = new javax.swing.JLabel JavaDoc();
44         idField = new javax.swing.JTextField JavaDoc();
45         namfeLabel = new javax.swing.JLabel JavaDoc();
46         nameComboBox = new javax.swing.JComboBox JavaDoc();
47         mimeTypeLabel = new javax.swing.JLabel JavaDoc();
48         mimeTypeComboBox = new javax.swing.JComboBox JavaDoc();
49
50         idLabel.setText("ID:");
51
52         namfeLabel.setText("Name:");
53
54         mimeTypeLabel.setText("MIME Type:");
55
56         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
57         this.setLayout(layout);
58         layout.setHorizontalGroup(
59             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
60             .add(layout.createSequentialGroup()
61                 .add(38, 38, 38)
62                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
63                     .add(mimeTypeLabel)
64                     .add(namfeLabel)
65                     .add(idLabel))
66                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
67                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
68                     .add(idField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE)
69                     .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
70                         .add(org.jdesktop.layout.GroupLayout.LEADING, mimeTypeComboBox, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
71                         .add(org.jdesktop.layout.GroupLayout.LEADING, nameComboBox, 0, 145, Short.MAX_VALUE)))
72                 .addContainerGap())
73         );
74         layout.setVerticalGroup(
75             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
76             .add(layout.createSequentialGroup()
77                 .add(42, 42, 42)
78                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
79                     .add(idLabel)
80                     .add(idField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
81                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
82                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
83                     .add(namfeLabel)
84                     .add(nameComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
85                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
86                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
87                     .add(mimeTypeLabel)
88                     .add(mimeTypeComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
89                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
90         );
91     }// </editor-fold>//GEN-END:initComponents
92

93     
94     // Variables declaration - do not modify//GEN-BEGIN:variables
95
private javax.swing.JTextField JavaDoc idField;
96     private javax.swing.JLabel JavaDoc idLabel;
97     private javax.swing.JComboBox JavaDoc mimeTypeComboBox;
98     private javax.swing.JLabel JavaDoc mimeTypeLabel;
99     private javax.swing.JComboBox JavaDoc nameComboBox;
100     private javax.swing.JLabel JavaDoc namfeLabel;
101     // End of variables declaration//GEN-END:variables
102
public javax.swing.JTextField JavaDoc getIdField(){
103         return idField;
104     }
105     public javax.swing.JComboBox JavaDoc getMimeTypeComboBox(){
106         return mimeTypeComboBox;
107     }
108     public javax.swing.JComboBox JavaDoc getNameComboBox(){
109         return nameComboBox;
110     }
111     
112 }
113
Popular Tags