KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.awt.Label JavaDoc;
24
25 /**
26  * @author Reimo Tiedemann, FU Berlin
27  * @version 1.0, 05/03/99, RT
28  */

29 public class PolicyPanel extends java.awt.Panel JavaDoc {
30     private java.awt.Label JavaDoc ivjIdAssignmentNameLabel = null;
31     private java.awt.Label JavaDoc ivjIdAssignmentValueLabel = null;
32     private java.awt.Label JavaDoc ivjIdUniquenessNameLabel = null;
33     private java.awt.Label JavaDoc ivjIdUniquenessValueLabel = null;
34     private java.awt.Label JavaDoc ivjImplicitActivationNameLabel = null;
35     private java.awt.Label JavaDoc ivjImplicitActivationValueLabel = null;
36     private java.awt.Label JavaDoc ivjLifespanNameLabel = null;
37     private java.awt.Label JavaDoc ivjLifespanValueLabel = null;
38     private java.awt.Label JavaDoc ivjRequestProcessingNameLabel = null;
39     private java.awt.Label JavaDoc ivjRequestProcessingValueLabel = null;
40     private java.awt.Label JavaDoc ivjServantRetentionNameLabel = null;
41     private java.awt.Label JavaDoc ivjServantRetentionValueLabel = null;
42     private java.awt.Panel JavaDoc ivjTablePanel = null;
43     private java.awt.Label JavaDoc ivjThreadNameLabel = null;
44     private java.awt.Label JavaDoc ivjThreadValueLabel = null;
45     private java.awt.Label JavaDoc ivjTitleLabel = null;
46     Label JavaDoc _getIdAssignmentLabel() {
47     return getIdAssignmentValueLabel();
48     }
49     /**
50      * Return the IdAssignmentNameLabel property value.
51      * @return java.awt.Label
52      */

53     /* WARNING: THIS METHOD WILL BE REGENERATED. */
54     private java.awt.Label JavaDoc getIdAssignmentNameLabel() {
55     if (ivjIdAssignmentNameLabel == null) {
56             try {
57                 ivjIdAssignmentNameLabel = new java.awt.Label JavaDoc();
58                 ivjIdAssignmentNameLabel.setName("IdAssignmentNameLabel");
59                 ivjIdAssignmentNameLabel.setLocation(new java.awt.Point JavaDoc(1, 40));
60                 ivjIdAssignmentNameLabel.setText(" ID Assignment");
61                 ivjIdAssignmentNameLabel.setBackground(java.awt.SystemColor.control);
62                 ivjIdAssignmentNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
63                 ivjIdAssignmentNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 40, 100, 12));
64                 ivjIdAssignmentNameLabel.setBounds(1, 40, 100, 12);
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 ivjIdAssignmentNameLabel;
74     }
75     /**
76      * Return the IdAssignmentValueLabel property value.
77      * @return java.awt.Label
78      */

79     /* WARNING: THIS METHOD WILL BE REGENERATED. */
80     private java.awt.Label JavaDoc getIdAssignmentValueLabel() {
81     if (ivjIdAssignmentValueLabel == null) {
82             try {
83                 ivjIdAssignmentValueLabel = new java.awt.Label JavaDoc();
84                 ivjIdAssignmentValueLabel.setName("IdAssignmentValueLabel");
85                 ivjIdAssignmentValueLabel.setLocation(new java.awt.Point JavaDoc(102, 40));
86                 ivjIdAssignmentValueLabel.setText(" SYSTEM_ID");
87                 ivjIdAssignmentValueLabel.setBackground(java.awt.SystemColor.control);
88                 ivjIdAssignmentValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
89                 ivjIdAssignmentValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 40, 179, 12));
90                 ivjIdAssignmentValueLabel.setBounds(102, 40, 179, 12);
91                 // user code begin {1}
92
// user code end
93
} catch (java.lang.Throwable JavaDoc ivjExc) {
94                 // user code begin {2}
95
// user code end
96
handleException(ivjExc);
97             }
98     }
99     return ivjIdAssignmentValueLabel;
100     }
101     Label JavaDoc _getIdUniquenessLabel() {
102     return getIdUniquenessValueLabel();
103     }
104     /**
105      * Return the IdUniquenessNameLabel property value.
106      * @return java.awt.Label
107      */

108     /* WARNING: THIS METHOD WILL BE REGENERATED. */
109     private java.awt.Label JavaDoc getIdUniquenessNameLabel() {
110     if (ivjIdUniquenessNameLabel == null) {
111             try {
112                 ivjIdUniquenessNameLabel = new java.awt.Label JavaDoc();
113                 ivjIdUniquenessNameLabel.setName("IdUniquenessNameLabel");
114                 ivjIdUniquenessNameLabel.setLocation(new java.awt.Point JavaDoc(1, 27));
115                 ivjIdUniquenessNameLabel.setText(" ID Uniqueness");
116                 ivjIdUniquenessNameLabel.setBackground(java.awt.SystemColor.control);
117                 ivjIdUniquenessNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
118                 ivjIdUniquenessNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 27, 100, 12));
119                 ivjIdUniquenessNameLabel.setBounds(1, 27, 100, 12);
120                 // user code begin {1}
121
// user code end
122
} catch (java.lang.Throwable JavaDoc ivjExc) {
123                 // user code begin {2}
124
// user code end
125
handleException(ivjExc);
126             }
127     }
128     return ivjIdUniquenessNameLabel;
129     }
130     /**
131      * Return the IdUniquenessValueLabel property value.
132      * @return java.awt.Label
133      */

134     /* WARNING: THIS METHOD WILL BE REGENERATED. */
135     private java.awt.Label JavaDoc getIdUniquenessValueLabel() {
136     if (ivjIdUniquenessValueLabel == null) {
137             try {
138                 ivjIdUniquenessValueLabel = new java.awt.Label JavaDoc();
139                 ivjIdUniquenessValueLabel.setName("IdUniquenessValueLabel");
140                 ivjIdUniquenessValueLabel.setLocation(new java.awt.Point JavaDoc(102, 27));
141                 ivjIdUniquenessValueLabel.setText(" UNIQUE_ID");
142                 ivjIdUniquenessValueLabel.setBackground(java.awt.SystemColor.control);
143                 ivjIdUniquenessValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
144                 ivjIdUniquenessValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 27, 179, 12));
145                 ivjIdUniquenessValueLabel.setBounds(102, 27, 179, 12);
146                 // user code begin {1}
147
// user code end
148
} catch (java.lang.Throwable JavaDoc ivjExc) {
149                 // user code begin {2}
150
// user code end
151
handleException(ivjExc);
152             }
153     }
154     return ivjIdUniquenessValueLabel;
155     }
156     Label JavaDoc _getImplicitActivationLabel() {
157     return getImplicitActivationValueLabel();
158     }
159     /**
160      * Return the ImplicitActivationNameLabel property value.
161      * @return java.awt.Label
162      */

163     /* WARNING: THIS METHOD WILL BE REGENERATED. */
164     private java.awt.Label JavaDoc getImplicitActivationNameLabel() {
165     if (ivjImplicitActivationNameLabel == null) {
166             try {
167                 ivjImplicitActivationNameLabel = new java.awt.Label JavaDoc();
168                 ivjImplicitActivationNameLabel.setName("ImplicitActivationNameLabel");
169                 ivjImplicitActivationNameLabel.setLocation(new java.awt.Point JavaDoc(1, 79));
170                 ivjImplicitActivationNameLabel.setText(" Implicit Activation");
171                 ivjImplicitActivationNameLabel.setBackground(java.awt.SystemColor.control);
172                 ivjImplicitActivationNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
173                 ivjImplicitActivationNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 79, 100, 12));
174                 ivjImplicitActivationNameLabel.setBounds(1, 79, 100, 12);
175                 // user code begin {1}
176
// user code end
177
} catch (java.lang.Throwable JavaDoc ivjExc) {
178                 // user code begin {2}
179
// user code end
180
handleException(ivjExc);
181             }
182     }
183     return ivjImplicitActivationNameLabel;
184     }
185     /**
186      * Return the ImplicitActivationValueLabel property value.
187      * @return java.awt.Label
188      */

189     /* WARNING: THIS METHOD WILL BE REGENERATED. */
190     private java.awt.Label JavaDoc getImplicitActivationValueLabel() {
191     if (ivjImplicitActivationValueLabel == null) {
192             try {
193                 ivjImplicitActivationValueLabel = new java.awt.Label JavaDoc();
194                 ivjImplicitActivationValueLabel.setName("ImplicitActivationValueLabel");
195                 ivjImplicitActivationValueLabel.setLocation(new java.awt.Point JavaDoc(102, 79));
196                 ivjImplicitActivationValueLabel.setText(" IMPLICIT_ACTIVATION");
197                 ivjImplicitActivationValueLabel.setBackground(java.awt.SystemColor.control);
198                 ivjImplicitActivationValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
199                 ivjImplicitActivationValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 79, 179, 12));
200                 ivjImplicitActivationValueLabel.setBounds(102, 79, 179, 12);
201                 // user code begin {1}
202
// user code end
203
} catch (java.lang.Throwable JavaDoc ivjExc) {
204                 // user code begin {2}
205
// user code end
206
handleException(ivjExc);
207             }
208     }
209     return ivjImplicitActivationValueLabel;
210     }
211     Label JavaDoc _getLifespanLabel() {
212     return getLifespanValueLabel();
213     }
214     /**
215      * Return the LifespanNameLabel property value.
216      * @return java.awt.Label
217      */

218     /* WARNING: THIS METHOD WILL BE REGENERATED. */
219     private java.awt.Label JavaDoc getLifespanNameLabel() {
220     if (ivjLifespanNameLabel == null) {
221             try {
222                 ivjLifespanNameLabel = new java.awt.Label JavaDoc();
223                 ivjLifespanNameLabel.setName("LifespanNameLabel");
224                 ivjLifespanNameLabel.setLocation(new java.awt.Point JavaDoc(1, 14));
225                 ivjLifespanNameLabel.setText(" Lifespan");
226                 ivjLifespanNameLabel.setBackground(java.awt.SystemColor.control);
227                 ivjLifespanNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
228                 ivjLifespanNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 14, 100, 12));
229                 ivjLifespanNameLabel.setBounds(1, 14, 100, 12);
230                 // user code begin {1}
231
// user code end
232
} catch (java.lang.Throwable JavaDoc ivjExc) {
233                 // user code begin {2}
234
// user code end
235
handleException(ivjExc);
236             }
237     }
238     return ivjLifespanNameLabel;
239     }
240     /**
241      * Return the LifespanValueLabel property value.
242      * @return java.awt.Label
243      */

244     /* WARNING: THIS METHOD WILL BE REGENERATED. */
245     private java.awt.Label JavaDoc getLifespanValueLabel() {
246     if (ivjLifespanValueLabel == null) {
247             try {
248                 ivjLifespanValueLabel = new java.awt.Label JavaDoc();
249                 ivjLifespanValueLabel.setName("LifespanValueLabel");
250                 ivjLifespanValueLabel.setLocation(new java.awt.Point JavaDoc(102, 14));
251                 ivjLifespanValueLabel.setText(" TRANSIENT");
252                 ivjLifespanValueLabel.setBackground(java.awt.SystemColor.control);
253                 ivjLifespanValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
254                 ivjLifespanValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 14, 179, 12));
255                 ivjLifespanValueLabel.setBounds(102, 14, 179, 12);
256                 // user code begin {1}
257
// user code end
258
} catch (java.lang.Throwable JavaDoc ivjExc) {
259                 // user code begin {2}
260
// user code end
261
handleException(ivjExc);
262             }
263     }
264     return ivjLifespanValueLabel;
265     }
266     Label JavaDoc _getRequestProcessingLabel() {
267     return getRequestProcessingValueLabel();
268     }
269     /**
270      * Return the RequestProcessingNameLabel property value.
271      * @return java.awt.Label
272      */

273     /* WARNING: THIS METHOD WILL BE REGENERATED. */
274     private java.awt.Label JavaDoc getRequestProcessingNameLabel() {
275     if (ivjRequestProcessingNameLabel == null) {
276             try {
277                 ivjRequestProcessingNameLabel = new java.awt.Label JavaDoc();
278                 ivjRequestProcessingNameLabel.setName("RequestProcessingNameLabel");
279                 ivjRequestProcessingNameLabel.setLocation(new java.awt.Point JavaDoc(1, 66));
280                 ivjRequestProcessingNameLabel.setText(" Request Processing");
281                 ivjRequestProcessingNameLabel.setBackground(java.awt.SystemColor.control);
282                 ivjRequestProcessingNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
283                 ivjRequestProcessingNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 66, 100, 12));
284                 ivjRequestProcessingNameLabel.setBounds(1, 66, 100, 12);
285                 // user code begin {1}
286
// user code end
287
} catch (java.lang.Throwable JavaDoc ivjExc) {
288                 // user code begin {2}
289
// user code end
290
handleException(ivjExc);
291             }
292     }
293     return ivjRequestProcessingNameLabel;
294     }
295     /**
296      * Return the RequestProcessingValueLabel property value.
297      * @return java.awt.Label
298      */

299     /* WARNING: THIS METHOD WILL BE REGENERATED. */
300     private java.awt.Label JavaDoc getRequestProcessingValueLabel() {
301     if (ivjRequestProcessingValueLabel == null) {
302             try {
303                 ivjRequestProcessingValueLabel = new java.awt.Label JavaDoc();
304                 ivjRequestProcessingValueLabel.setName("RequestProcessingValueLabel");
305                 ivjRequestProcessingValueLabel.setLocation(new java.awt.Point JavaDoc(102, 66));
306                 ivjRequestProcessingValueLabel.setText(" USE_ACTIVE_OBJECT_MAP_ONLY");
307                 ivjRequestProcessingValueLabel.setBackground(java.awt.SystemColor.control);
308                 ivjRequestProcessingValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
309                 ivjRequestProcessingValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 66, 179, 12));
310                 ivjRequestProcessingValueLabel.setBounds(102, 66, 179, 12);
311                 // user code begin {1}
312
// user code end
313
} catch (java.lang.Throwable JavaDoc ivjExc) {
314                 // user code begin {2}
315
// user code end
316
handleException(ivjExc);
317             }
318     }
319     return ivjRequestProcessingValueLabel;
320     }
321     Label JavaDoc _getServantRetentionLabel() {
322     return getServantRetentionValueLabel();
323     }
324     /**
325      * Return the ServantRetentionNameLabel property value.
326      * @return java.awt.Label
327      */

328     /* WARNING: THIS METHOD WILL BE REGENERATED. */
329     private java.awt.Label JavaDoc getServantRetentionNameLabel() {
330     if (ivjServantRetentionNameLabel == null) {
331             try {
332                 ivjServantRetentionNameLabel = new java.awt.Label JavaDoc();
333                 ivjServantRetentionNameLabel.setName("ServantRetentionNameLabel");
334                 ivjServantRetentionNameLabel.setLocation(new java.awt.Point JavaDoc(1, 53));
335                 ivjServantRetentionNameLabel.setText(" Servant Retention");
336                 ivjServantRetentionNameLabel.setBackground(java.awt.SystemColor.control);
337                 ivjServantRetentionNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
338                 ivjServantRetentionNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 53, 100, 12));
339                 ivjServantRetentionNameLabel.setBounds(1, 53, 100, 12);
340                 // user code begin {1}
341
// user code end
342
} catch (java.lang.Throwable JavaDoc ivjExc) {
343                 // user code begin {2}
344
// user code end
345
handleException(ivjExc);
346             }
347     }
348     return ivjServantRetentionNameLabel;
349     }
350     /**
351      * Return the ServantRetentionValueLabel property value.
352      * @return java.awt.Label
353      */

354     /* WARNING: THIS METHOD WILL BE REGENERATED. */
355     private java.awt.Label JavaDoc getServantRetentionValueLabel() {
356     if (ivjServantRetentionValueLabel == null) {
357             try {
358                 ivjServantRetentionValueLabel = new java.awt.Label JavaDoc();
359                 ivjServantRetentionValueLabel.setName("ServantRetentionValueLabel");
360                 ivjServantRetentionValueLabel.setLocation(new java.awt.Point JavaDoc(102, 53));
361                 ivjServantRetentionValueLabel.setText(" RETAIN");
362                 ivjServantRetentionValueLabel.setBackground(java.awt.SystemColor.control);
363                 ivjServantRetentionValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
364                 ivjServantRetentionValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 53, 179, 12));
365                 ivjServantRetentionValueLabel.setBounds(102, 53, 179, 12);
366                 // user code begin {1}
367
// user code end
368
} catch (java.lang.Throwable JavaDoc ivjExc) {
369                 // user code begin {2}
370
// user code end
371
handleException(ivjExc);
372             }
373     }
374     return ivjServantRetentionValueLabel;
375     }
376     /**
377      * Return the TablePanel property value.
378      * @return java.awt.Panel
379      */

380     /* WARNING: THIS METHOD WILL BE REGENERATED. */
381     private java.awt.Panel JavaDoc getTablePanel() {
382     if (ivjTablePanel == null) {
383             try {
384                 ivjTablePanel = new java.awt.Panel JavaDoc();
385                 ivjTablePanel.setName("TablePanel");
386                 ivjTablePanel.setLocation(new java.awt.Point JavaDoc(9, 35));
387                 ivjTablePanel.setLayout(null);
388                 ivjTablePanel.setBackground(java.awt.SystemColor.controlShadow);
389                 ivjTablePanel.setBounds(new java.awt.Rectangle JavaDoc(9, 35, 282, 92));
390                 ivjTablePanel.setBounds(9, 35, 282, 92);
391                 getTablePanel().add(getIdUniquenessNameLabel(), getIdUniquenessNameLabel().getName());
392                 getTablePanel().add(getIdUniquenessValueLabel(), getIdUniquenessValueLabel().getName());
393                 getTablePanel().add(getLifespanValueLabel(), getLifespanValueLabel().getName());
394                 getTablePanel().add(getThreadValueLabel(), getThreadValueLabel().getName());
395                 getTablePanel().add(getThreadNameLabel(), getThreadNameLabel().getName());
396                 getTablePanel().add(getLifespanNameLabel(), getLifespanNameLabel().getName());
397                 getTablePanel().add(getRequestProcessingNameLabel(), getRequestProcessingNameLabel().getName());
398                 getTablePanel().add(getImplicitActivationNameLabel(), getImplicitActivationNameLabel().getName());
399                 getTablePanel().add(getIdAssignmentNameLabel(), getIdAssignmentNameLabel().getName());
400                 getTablePanel().add(getIdAssignmentValueLabel(), getIdAssignmentValueLabel().getName());
401                 getTablePanel().add(getImplicitActivationValueLabel(), getImplicitActivationValueLabel().getName());
402                 getTablePanel().add(getRequestProcessingValueLabel(), getRequestProcessingValueLabel().getName());
403                 getTablePanel().add(getServantRetentionValueLabel(), getServantRetentionValueLabel().getName());
404                 getTablePanel().add(getServantRetentionNameLabel(), getServantRetentionNameLabel().getName());
405                 // user code begin {1}
406
// user code end
407
} catch (java.lang.Throwable JavaDoc ivjExc) {
408                 // user code begin {2}
409
// user code end
410
handleException(ivjExc);
411             }
412     }
413     return ivjTablePanel;
414     }
415     Label JavaDoc _getThreadLabel() {
416     return getThreadValueLabel();
417     }
418     /**
419      * Return the ThreadNameLabel property value.
420      * @return java.awt.Label
421      */

422     /* WARNING: THIS METHOD WILL BE REGENERATED. */
423     private java.awt.Label JavaDoc getThreadNameLabel() {
424     if (ivjThreadNameLabel == null) {
425             try {
426                 ivjThreadNameLabel = new java.awt.Label JavaDoc();
427                 ivjThreadNameLabel.setName("ThreadNameLabel");
428                 ivjThreadNameLabel.setLocation(new java.awt.Point JavaDoc(1, 1));
429                 ivjThreadNameLabel.setText(" Thread");
430                 ivjThreadNameLabel.setBackground(java.awt.SystemColor.control);
431                 ivjThreadNameLabel.setFont(new java.awt.Font JavaDoc("dialog", 2, 10));
432                 ivjThreadNameLabel.setBounds(new java.awt.Rectangle JavaDoc(1, 1, 100, 12));
433                 ivjThreadNameLabel.setBounds(1, 1, 100, 12);
434                 // user code begin {1}
435
// user code end
436
} catch (java.lang.Throwable JavaDoc ivjExc) {
437                 // user code begin {2}
438
// user code end
439
handleException(ivjExc);
440             }
441     }
442     return ivjThreadNameLabel;
443     }
444     /**
445      * Return the ThreadValueLabel property value.
446      * @return java.awt.Label
447      */

448     /* WARNING: THIS METHOD WILL BE REGENERATED. */
449     private java.awt.Label JavaDoc getThreadValueLabel() {
450     if (ivjThreadValueLabel == null) {
451             try {
452                 ivjThreadValueLabel = new java.awt.Label JavaDoc();
453                 ivjThreadValueLabel.setName("ThreadValueLabel");
454                 ivjThreadValueLabel.setLocation(new java.awt.Point JavaDoc(102, 1));
455                 ivjThreadValueLabel.setText(" ORB_CTRL_MODEL");
456                 ivjThreadValueLabel.setBackground(java.awt.SystemColor.control);
457                 ivjThreadValueLabel.setFont(new java.awt.Font JavaDoc("dialog", 0, 10));
458                 ivjThreadValueLabel.setBounds(new java.awt.Rectangle JavaDoc(102, 1, 179, 12));
459                 ivjThreadValueLabel.setBounds(102, 1, 179, 12);
460                 // user code begin {1}
461
// user code end
462
} catch (java.lang.Throwable JavaDoc ivjExc) {
463                 // user code begin {2}
464
// user code end
465
handleException(ivjExc);
466             }
467     }
468     return ivjThreadValueLabel;
469     }
470     /**
471      * Return the TitleLabel property value.
472      * @return java.awt.Label
473      */

474     /* WARNING: THIS METHOD WILL BE REGENERATED. */
475     private java.awt.Label JavaDoc getTitleLabel() {
476     if (ivjTitleLabel == null) {
477             try {
478                 ivjTitleLabel = new java.awt.Label JavaDoc();
479                 ivjTitleLabel.setName("TitleLabel");
480                 ivjTitleLabel.setLocation(new java.awt.Point JavaDoc(12, 8));
481                 ivjTitleLabel.setText("Policies:");
482                 ivjTitleLabel.setBackground(java.awt.SystemColor.control);
483                 ivjTitleLabel.setForeground(new java.awt.Color JavaDoc(0,0,0));
484                 ivjTitleLabel.setBounds(new java.awt.Rectangle JavaDoc(12, 8, 52, 23));
485                 ivjTitleLabel.setBounds(12, 8, 52, 23);
486                 // user code begin {1}
487
// user code end
488
} catch (java.lang.Throwable JavaDoc ivjExc) {
489                 // user code begin {2}
490
// user code end
491
handleException(ivjExc);
492             }
493     }
494     return ivjTitleLabel;
495     }
496     /**
497      * Called whenever the part throws an exception.
498      * @param exception java.lang.Throwable
499      */

500     private void handleException(Throwable JavaDoc exception) {
501
502     /* Uncomment the following lines to print uncaught exceptions to stdout */
503     // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
504
// exception.printStackTrace(System.out);
505
}
506     /**
507      * Initialize the class.
508      */

509     /* WARNING: THIS METHOD WILL BE REGENERATED. */
510     private void initialize() {
511     try {
512             // user code begin {1}
513
// user code end
514
setName("PolicyPanel");
515             setBounds(new java.awt.Rectangle JavaDoc(0, 0, 300, 140));
516             setLayout(null);
517             setBackground(java.awt.SystemColor.control);
518             setSize(300, 140);
519             add(getTitleLabel(), getTitleLabel().getName());
520             add(getTablePanel(), getTablePanel().getName());
521     } catch (java.lang.Throwable JavaDoc ivjExc) {
522             handleException(ivjExc);
523     }
524     // user code begin {2}
525
// user code end
526
}
527     /**
528      * PolicyPanel constructor comment.
529      * @param layout java.awt.LayoutManager
530      */

531     public PolicyPanel(java.awt.LayoutManager JavaDoc layout) {
532     super(layout);
533     }
534     /**
535      * main entrypoint - starts the part when it is run as an application
536      * @param args java.lang.String[]
537      */

538     public static void main(java.lang.String JavaDoc[] args) {
539     try {
540             java.awt.Frame JavaDoc frame;
541             try {
542                 Class JavaDoc aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame");
543                 frame = (java.awt.Frame JavaDoc)aFrameClass.newInstance();
544             } catch (java.lang.Throwable JavaDoc ivjExc) {
545                 frame = new java.awt.Frame JavaDoc();
546             }
547             PolicyPanel aPolicyPanel;
548             aPolicyPanel = new PolicyPanel();
549             frame.add("Center", aPolicyPanel);
550             frame.setSize(aPolicyPanel.getSize());
551             frame.setVisible(true);
552     } catch (Throwable JavaDoc exception) {
553             System.err.println("Exception occurred in main() of java.awt.Panel");
554             exception.printStackTrace(System.out);
555     }
556     }
557     public void paint(java.awt.Graphics JavaDoc g) {
558     g.setColor(getBackground());
559     g.fill3DRect(0, 0, getBounds().width, getBounds().height, true);
560     }
561     /**
562      * Constructor
563      */

564     /* WARNING: THIS METHOD WILL BE REGENERATED. */
565     public PolicyPanel() {
566     super();
567     initialize();
568     }
569 }
570
571
572
573
574
575
576
577
578
579
580
581
582
Popular Tags