KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > ejbcore > ejb > wizard > mdb > MessageEJBVisualPanel


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.j2ee.ejbcore.ejb.wizard.mdb;
21
22 /**
23  *
24  * @author ChrisWebster
25  */

26 public class MessageEJBVisualPanel extends javax.swing.JPanel JavaDoc {
27     
28     /** Creates new form MessageEJBWizardPanel */
29     public MessageEJBVisualPanel() {
30         initComponents();
31     }
32     
33     public boolean isQueue() {
34         return queueButton.isSelected();
35     }
36     
37     /** This method is called from within the constructor to
38      * initialize the form.
39      * WARNING: Do NOT modify this code. The content of this method is
40      * always regenerated by the Form Editor.
41      */

42     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
43
private void initComponents() {
44         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
45
46         buttonGroup1 = new javax.swing.ButtonGroup JavaDoc();
47         destinationTypeLabel = new javax.swing.JLabel JavaDoc();
48         queueButton = new javax.swing.JRadioButton JavaDoc();
49         topicButton = new javax.swing.JRadioButton JavaDoc();
50
51         setLayout(new java.awt.GridBagLayout JavaDoc());
52
53         destinationTypeLabel.setText(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_DestinationType")); // NOI18N
54
gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
55         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
56         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
57         add(destinationTypeLabel, gridBagConstraints);
58
59         buttonGroup1.add(queueButton);
60         queueButton.setMnemonic(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_QueueMneumoic").charAt(0));
61         queueButton.setSelected(true);
62         queueButton.setText(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_Queue")); // NOI18N
63
gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
64         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
65         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
66         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
67         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 15, 0, 0);
68         add(queueButton, gridBagConstraints);
69
70         buttonGroup1.add(topicButton);
71         topicButton.setMnemonic(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_TopicMneumoic").charAt(0));
72         topicButton.setText(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_Topic")); // NOI18N
73
gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
74         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
75         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
76         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
77         gridBagConstraints.weightx = 1.0;
78         gridBagConstraints.weighty = 1.0;
79         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 15, 0, 0);
80         add(topicButton, gridBagConstraints);
81     }// </editor-fold>//GEN-END:initComponents
82

83     
84     // Variables declaration - do not modify//GEN-BEGIN:variables
85
private javax.swing.ButtonGroup JavaDoc buttonGroup1;
86     private javax.swing.JLabel JavaDoc destinationTypeLabel;
87     private javax.swing.JRadioButton JavaDoc queueButton;
88     private javax.swing.JRadioButton JavaDoc topicButton;
89     // End of variables declaration//GEN-END:variables
90

91 }
92
Popular Tags