KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > poa > gui > poa > POAStatePanel


1 package org.jacorb.poa.gui.poa;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22  
23 /**
24  * @author Reimo Tiedemann, FU Berlin
25  * @version 1.0, 05/03/99, RT
26  */

27 public class POAStatePanel extends java.awt.Panel JavaDoc {
28     private AOMPanel ivjAOMPanel = null;
29     private PolicyPanel ivjPolicyPanel = null;
30     private QueuePanel ivjQueuePanel = null;
31     private StatePanel ivjStatePanel = null;
32     private TMPanel ivjTMPanel = null;
33     AOMPanel _getAOMPanel() {
34     return getAOMPanel();
35     }
36     /**
37      * Return the AOMPanel property value.
38      * @return org.jacorb.poa.gui.poa.AOMPanel
39      */

40     /* WARNING: THIS METHOD WILL BE REGENERATED. */
41     private AOMPanel getAOMPanel() {
42     if (ivjAOMPanel == null) {
43             try {
44                 ivjAOMPanel = new org.jacorb.poa.gui.poa.AOMPanel();
45                 ivjAOMPanel.setName("AOMPanel");
46                 ivjAOMPanel.setLocation(10, 10);
47                 // user code begin {1}
48
// user code end
49
} catch (java.lang.Throwable JavaDoc ivjExc) {
50                 // user code begin {2}
51
// user code end
52
handleException(ivjExc);
53             }
54     };
55     return ivjAOMPanel;
56     }
57     PolicyPanel _getPolicyPanel() {
58     return getPolicyPanel();
59     }
60     /**
61      * Return the PolicyPanel property value.
62      * @return org.jacorb.poa.gui.poa.PolicyPanel
63      */

64     /* WARNING: THIS METHOD WILL BE REGENERATED. */
65     private PolicyPanel getPolicyPanel() {
66     if (ivjPolicyPanel == null) {
67             try {
68                 ivjPolicyPanel = new org.jacorb.poa.gui.poa.PolicyPanel();
69                 ivjPolicyPanel.setName("PolicyPanel");
70                 ivjPolicyPanel.setLocation(380, 70);
71                 // user code begin {1}
72
// user code end
73
} catch (java.lang.Throwable JavaDoc ivjExc) {
74                 // user code begin {2}
75
// user code end
76
handleException(ivjExc);
77             }
78     };
79     return ivjPolicyPanel;
80     }
81     QueuePanel _getQueuePanel() {
82     return getQueuePanel();
83     }
84     /**
85      * Return the QueuePanel property value.
86      * @return org.jacorb.poa.gui.poa.QueuePanel
87      */

88     /* WARNING: THIS METHOD WILL BE REGENERATED. */
89     private QueuePanel getQueuePanel() {
90     if (ivjQueuePanel == null) {
91             try {
92                 ivjQueuePanel = new org.jacorb.poa.gui.poa.QueuePanel();
93                 ivjQueuePanel.setName("QueuePanel");
94                 ivjQueuePanel.setLocation(110, 10);
95                 // user code begin {1}
96
// user code end
97
} catch (java.lang.Throwable JavaDoc ivjExc) {
98                 // user code begin {2}
99
// user code end
100
handleException(ivjExc);
101             }
102     };
103     return ivjQueuePanel;
104     }
105     StatePanel _getStatePanel() {
106     return getStatePanel();
107     }
108     /**
109      * Return the StatePanel property value.
110      * @return org.jacorb.poa.gui.poa.StatePanel
111      */

112     /* WARNING: THIS METHOD WILL BE REGENERATED. */
113     private StatePanel getStatePanel() {
114     if (ivjStatePanel == null) {
115             try {
116                 ivjStatePanel = new org.jacorb.poa.gui.poa.StatePanel();
117                 ivjStatePanel.setName("StatePanel");
118                 ivjStatePanel.setLocation(380, 10);
119                 // user code begin {1}
120
// user code end
121
} catch (java.lang.Throwable JavaDoc ivjExc) {
122                 // user code begin {2}
123
// user code end
124
handleException(ivjExc);
125             }
126     };
127     return ivjStatePanel;
128     }
129     TMPanel _getTMPanel() {
130     return getTMPanel();
131     }
132     /**
133      * Return the TMPanel property value.
134      * @return org.jacorb.poa.gui.poa.TMPanel
135      */

136     /* WARNING: THIS METHOD WILL BE REGENERATED. */
137     private TMPanel getTMPanel() {
138     if (ivjTMPanel == null) {
139             try {
140                 ivjTMPanel = new org.jacorb.poa.gui.poa.TMPanel();
141                 ivjTMPanel.setName("TMPanel");
142                 ivjTMPanel.setLocation(210, 10);
143                 // user code begin {1}
144
// user code end
145
} catch (java.lang.Throwable JavaDoc ivjExc) {
146                 // user code begin {2}
147
// user code end
148
handleException(ivjExc);
149             }
150     };
151     return ivjTMPanel;
152     }
153     /**
154      * Called whenever the part throws an exception.
155      * @param exception java.lang.Throwable
156      */

157     private void handleException(Throwable JavaDoc exception) {
158
159     /* Uncomment the following lines to print uncaught exceptions to stdout */
160     // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
161
// exception.printStackTrace(System.out);
162
}
163     /**
164      * Initialize the class.
165      */

166     /* WARNING: THIS METHOD WILL BE REGENERATED. */
167     private void initialize() {
168     // user code begin {1}
169
// user code end
170
setName("POAStatePanel");
171     setLayout(null);
172     setBackground(java.awt.SystemColor.control);
173     setSize(690, 220);
174     add(getAOMPanel(), getAOMPanel().getName());
175     add(getQueuePanel(), getQueuePanel().getName());
176     add(getTMPanel(), getTMPanel().getName());
177     add(getPolicyPanel(), getPolicyPanel().getName());
178     add(getStatePanel(), getStatePanel().getName());
179     // user code begin {2}
180
// user code end
181
}
182     /**
183      * POAStatePanel constructor comment.
184      * @param layout java.awt.LayoutManager
185      */

186     public POAStatePanel(java.awt.LayoutManager JavaDoc layout) {
187     super(layout);
188     }
189     /**
190      * main entrypoint - starts the part when it is run as an application
191      * @param args java.lang.String[]
192      */

193     public static void main(java.lang.String JavaDoc[] args) {
194     try {
195             java.awt.Frame JavaDoc frame;
196             try {
197                 Class JavaDoc aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame");
198                 frame = (java.awt.Frame JavaDoc)aFrameClass.newInstance();
199             } catch (java.lang.Throwable JavaDoc ivjExc) {
200                 frame = new java.awt.Frame JavaDoc();
201             }
202             POAStatePanel aPOAStatePanel;
203             aPOAStatePanel = new POAStatePanel();
204             frame.add("Center", aPOAStatePanel);
205             frame.setSize(aPOAStatePanel.getSize());
206             frame.setVisible(true);
207     } catch (Throwable JavaDoc exception) {
208             System.err.println("Exception occurred in main() of java.awt.Panel");
209             exception.printStackTrace(System.out);
210     }
211     }
212     /**
213      * Constructor
214      */

215     /* WARNING: THIS METHOD WILL BE REGENERATED. */
216     public POAStatePanel() {
217     super();
218     initialize();
219     }
220 }
221
222
223
224
225
226
227
228
229
230
231
232
233
234
Popular Tags