KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > poa > gui > pm > POAManagerStatePanel


1 package org.jacorb.poa.gui.pm;
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 POAManagerStatePanel extends java.awt.Panel JavaDoc {
28     private RegisterPanel ivjRegisterPanel = null;
29     private StatePanel ivjStatePanel = null;
30     private java.awt.BorderLayout JavaDoc ivjPOAManagerStateLabelBorderLayout = null;
31     private java.awt.Panel JavaDoc ivjRightPanel = null;
32     private java.awt.Panel JavaDoc ivjBottomPanel = null;
33 /**
34  * Constructor
35  */

36 /* WARNING: THIS METHOD WILL BE REGENERATED. */
37 public POAManagerStatePanel() {
38     super();
39     initialize();
40 }
41 /**
42  * POAManagerStateLabel constructor comment.
43  * @param layout java.awt.LayoutManager
44  */

45 public POAManagerStatePanel(java.awt.LayoutManager JavaDoc layout) {
46     super(layout);
47 }
48 RegisterPanel _getRegisterPanel() {
49     return getRegisterPanel();
50 }
51 StatePanel _getStatePanel() {
52     return getStatePanel();
53 }
54 /**
55  * Return the BottomPanel property value.
56  * @return java.awt.Panel
57  */

58 /* WARNING: THIS METHOD WILL BE REGENERATED. */
59 private java.awt.Panel JavaDoc getBottomPanel() {
60     if (ivjBottomPanel == null) {
61         try {
62             ivjBottomPanel = new java.awt.Panel JavaDoc();
63             ivjBottomPanel.setName("BottomPanel");
64             ivjBottomPanel.setLayout(null);
65             // user code begin {1}
66
// user code end
67
} catch (java.lang.Throwable JavaDoc ivjExc) {
68             // user code begin {2}
69
// user code end
70
handleException(ivjExc);
71         }
72     };
73     return ivjBottomPanel;
74 }
75 /**
76  * Return the POAManagerStateLabelBorderLayout property value.
77  * @return java.awt.BorderLayout
78  */

79 /* WARNING: THIS METHOD WILL BE REGENERATED. */
80 private java.awt.BorderLayout JavaDoc getPOAManagerStateLabelBorderLayout() {
81     java.awt.BorderLayout JavaDoc ivjPOAManagerStateLabelBorderLayout = null;
82     try {
83         /* Create part */
84         ivjPOAManagerStateLabelBorderLayout = new java.awt.BorderLayout JavaDoc();
85         ivjPOAManagerStateLabelBorderLayout.setVgap(10);
86         ivjPOAManagerStateLabelBorderLayout.setHgap(10);
87     } catch (java.lang.Throwable JavaDoc ivjExc) {
88         handleException(ivjExc);
89     };
90     return ivjPOAManagerStateLabelBorderLayout;
91 }
92 /**
93  * Return the RegisterPanel property value.
94  * @return org.jacorb.poa.gui.pm.RegisterPanel
95  */

96 /* WARNING: THIS METHOD WILL BE REGENERATED. */
97 private RegisterPanel getRegisterPanel() {
98     if (ivjRegisterPanel == null) {
99         try {
100             ivjRegisterPanel = new org.jacorb.poa.gui.pm.RegisterPanel();
101             ivjRegisterPanel.setName("RegisterPanel");
102             // user code begin {1}
103
// user code end
104
} catch (java.lang.Throwable JavaDoc ivjExc) {
105             // user code begin {2}
106
// user code end
107
handleException(ivjExc);
108         }
109     };
110     return ivjRegisterPanel;
111 }
112 /**
113  * Return the RightPanel property value.
114  * @return java.awt.Panel
115  */

116 /* WARNING: THIS METHOD WILL BE REGENERATED. */
117 private java.awt.Panel JavaDoc getRightPanel() {
118     if (ivjRightPanel == null) {
119         try {
120             ivjRightPanel = new java.awt.Panel JavaDoc();
121             ivjRightPanel.setName("RightPanel");
122             ivjRightPanel.setLayout(null);
123             // user code begin {1}
124
// user code end
125
} catch (java.lang.Throwable JavaDoc ivjExc) {
126             // user code begin {2}
127
// user code end
128
handleException(ivjExc);
129         }
130     };
131     return ivjRightPanel;
132 }
133 /**
134  * Return the StatePanel property value.
135  * @return org.jacorb.poa.gui.pm.StatePanel
136  */

137 /* WARNING: THIS METHOD WILL BE REGENERATED. */
138 private StatePanel getStatePanel() {
139     if (ivjStatePanel == null) {
140         try {
141             ivjStatePanel = new org.jacorb.poa.gui.pm.StatePanel();
142             ivjStatePanel.setName("StatePanel");
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 ivjStatePanel;
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("POAManagerStateLabel");
171     setLayout(getPOAManagerStateLabelBorderLayout());
172     setBackground(java.awt.SystemColor.control);
173     setSize(310, 100);
174     add(getRegisterPanel(), "Center");
175     add(getStatePanel(), "West");
176     add(getRightPanel(), "East");
177     add(getBottomPanel(), "South");
178     // user code begin {2}
179
// user code end
180
}
181 /**
182  * main entrypoint - starts the part when it is run as an application
183  * @param args java.lang.String[]
184  */

185 public static void main(java.lang.String JavaDoc[] args) {
186     try {
187         java.awt.Frame JavaDoc frame;
188         try {
189             Class JavaDoc aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame");
190             frame = (java.awt.Frame JavaDoc)aFrameClass.newInstance();
191         } catch (java.lang.Throwable JavaDoc ivjExc) {
192             frame = new java.awt.Frame JavaDoc();
193         }
194         POAManagerStatePanel aPOAManagerStatePanel;
195         aPOAManagerStatePanel = new POAManagerStatePanel();
196         frame.add("Center", aPOAManagerStatePanel);
197         frame.setSize(aPOAManagerStatePanel.getSize());
198         frame.setVisible(true);
199     } catch (Throwable JavaDoc exception) {
200         System.err.println("Exception occurred in main() of java.awt.Panel");
201         exception.printStackTrace(System.out);
202     }
203 }
204
205 }
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
Popular Tags