1 package org.jacorb.poa.gui.poa; 2 3 22 23 import java.awt.Label ; 24 25 29 public class PolicyPanel extends java.awt.Panel { 30 private java.awt.Label ivjIdAssignmentNameLabel = null; 31 private java.awt.Label ivjIdAssignmentValueLabel = null; 32 private java.awt.Label ivjIdUniquenessNameLabel = null; 33 private java.awt.Label ivjIdUniquenessValueLabel = null; 34 private java.awt.Label ivjImplicitActivationNameLabel = null; 35 private java.awt.Label ivjImplicitActivationValueLabel = null; 36 private java.awt.Label ivjLifespanNameLabel = null; 37 private java.awt.Label ivjLifespanValueLabel = null; 38 private java.awt.Label ivjRequestProcessingNameLabel = null; 39 private java.awt.Label ivjRequestProcessingValueLabel = null; 40 private java.awt.Label ivjServantRetentionNameLabel = null; 41 private java.awt.Label ivjServantRetentionValueLabel = null; 42 private java.awt.Panel ivjTablePanel = null; 43 private java.awt.Label ivjThreadNameLabel = null; 44 private java.awt.Label ivjThreadValueLabel = null; 45 private java.awt.Label ivjTitleLabel = null; 46 Label _getIdAssignmentLabel() { 47 return getIdAssignmentValueLabel(); 48 } 49 53 54 private java.awt.Label getIdAssignmentNameLabel() { 55 if (ivjIdAssignmentNameLabel == null) { 56 try { 57 ivjIdAssignmentNameLabel = new java.awt.Label (); 58 ivjIdAssignmentNameLabel.setName("IdAssignmentNameLabel"); 59 ivjIdAssignmentNameLabel.setLocation(new java.awt.Point (1, 40)); 60 ivjIdAssignmentNameLabel.setText(" ID Assignment"); 61 ivjIdAssignmentNameLabel.setBackground(java.awt.SystemColor.control); 62 ivjIdAssignmentNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 63 ivjIdAssignmentNameLabel.setBounds(new java.awt.Rectangle (1, 40, 100, 12)); 64 ivjIdAssignmentNameLabel.setBounds(1, 40, 100, 12); 65 } catch (java.lang.Throwable ivjExc) { 68 handleException(ivjExc); 71 } 72 } 73 return ivjIdAssignmentNameLabel; 74 } 75 79 80 private java.awt.Label getIdAssignmentValueLabel() { 81 if (ivjIdAssignmentValueLabel == null) { 82 try { 83 ivjIdAssignmentValueLabel = new java.awt.Label (); 84 ivjIdAssignmentValueLabel.setName("IdAssignmentValueLabel"); 85 ivjIdAssignmentValueLabel.setLocation(new java.awt.Point (102, 40)); 86 ivjIdAssignmentValueLabel.setText(" SYSTEM_ID"); 87 ivjIdAssignmentValueLabel.setBackground(java.awt.SystemColor.control); 88 ivjIdAssignmentValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 89 ivjIdAssignmentValueLabel.setBounds(new java.awt.Rectangle (102, 40, 179, 12)); 90 ivjIdAssignmentValueLabel.setBounds(102, 40, 179, 12); 91 } catch (java.lang.Throwable ivjExc) { 94 handleException(ivjExc); 97 } 98 } 99 return ivjIdAssignmentValueLabel; 100 } 101 Label _getIdUniquenessLabel() { 102 return getIdUniquenessValueLabel(); 103 } 104 108 109 private java.awt.Label getIdUniquenessNameLabel() { 110 if (ivjIdUniquenessNameLabel == null) { 111 try { 112 ivjIdUniquenessNameLabel = new java.awt.Label (); 113 ivjIdUniquenessNameLabel.setName("IdUniquenessNameLabel"); 114 ivjIdUniquenessNameLabel.setLocation(new java.awt.Point (1, 27)); 115 ivjIdUniquenessNameLabel.setText(" ID Uniqueness"); 116 ivjIdUniquenessNameLabel.setBackground(java.awt.SystemColor.control); 117 ivjIdUniquenessNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 118 ivjIdUniquenessNameLabel.setBounds(new java.awt.Rectangle (1, 27, 100, 12)); 119 ivjIdUniquenessNameLabel.setBounds(1, 27, 100, 12); 120 } catch (java.lang.Throwable ivjExc) { 123 handleException(ivjExc); 126 } 127 } 128 return ivjIdUniquenessNameLabel; 129 } 130 134 135 private java.awt.Label getIdUniquenessValueLabel() { 136 if (ivjIdUniquenessValueLabel == null) { 137 try { 138 ivjIdUniquenessValueLabel = new java.awt.Label (); 139 ivjIdUniquenessValueLabel.setName("IdUniquenessValueLabel"); 140 ivjIdUniquenessValueLabel.setLocation(new java.awt.Point (102, 27)); 141 ivjIdUniquenessValueLabel.setText(" UNIQUE_ID"); 142 ivjIdUniquenessValueLabel.setBackground(java.awt.SystemColor.control); 143 ivjIdUniquenessValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 144 ivjIdUniquenessValueLabel.setBounds(new java.awt.Rectangle (102, 27, 179, 12)); 145 ivjIdUniquenessValueLabel.setBounds(102, 27, 179, 12); 146 } catch (java.lang.Throwable ivjExc) { 149 handleException(ivjExc); 152 } 153 } 154 return ivjIdUniquenessValueLabel; 155 } 156 Label _getImplicitActivationLabel() { 157 return getImplicitActivationValueLabel(); 158 } 159 163 164 private java.awt.Label getImplicitActivationNameLabel() { 165 if (ivjImplicitActivationNameLabel == null) { 166 try { 167 ivjImplicitActivationNameLabel = new java.awt.Label (); 168 ivjImplicitActivationNameLabel.setName("ImplicitActivationNameLabel"); 169 ivjImplicitActivationNameLabel.setLocation(new java.awt.Point (1, 79)); 170 ivjImplicitActivationNameLabel.setText(" Implicit Activation"); 171 ivjImplicitActivationNameLabel.setBackground(java.awt.SystemColor.control); 172 ivjImplicitActivationNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 173 ivjImplicitActivationNameLabel.setBounds(new java.awt.Rectangle (1, 79, 100, 12)); 174 ivjImplicitActivationNameLabel.setBounds(1, 79, 100, 12); 175 } catch (java.lang.Throwable ivjExc) { 178 handleException(ivjExc); 181 } 182 } 183 return ivjImplicitActivationNameLabel; 184 } 185 189 190 private java.awt.Label getImplicitActivationValueLabel() { 191 if (ivjImplicitActivationValueLabel == null) { 192 try { 193 ivjImplicitActivationValueLabel = new java.awt.Label (); 194 ivjImplicitActivationValueLabel.setName("ImplicitActivationValueLabel"); 195 ivjImplicitActivationValueLabel.setLocation(new java.awt.Point (102, 79)); 196 ivjImplicitActivationValueLabel.setText(" IMPLICIT_ACTIVATION"); 197 ivjImplicitActivationValueLabel.setBackground(java.awt.SystemColor.control); 198 ivjImplicitActivationValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 199 ivjImplicitActivationValueLabel.setBounds(new java.awt.Rectangle (102, 79, 179, 12)); 200 ivjImplicitActivationValueLabel.setBounds(102, 79, 179, 12); 201 } catch (java.lang.Throwable ivjExc) { 204 handleException(ivjExc); 207 } 208 } 209 return ivjImplicitActivationValueLabel; 210 } 211 Label _getLifespanLabel() { 212 return getLifespanValueLabel(); 213 } 214 218 219 private java.awt.Label getLifespanNameLabel() { 220 if (ivjLifespanNameLabel == null) { 221 try { 222 ivjLifespanNameLabel = new java.awt.Label (); 223 ivjLifespanNameLabel.setName("LifespanNameLabel"); 224 ivjLifespanNameLabel.setLocation(new java.awt.Point (1, 14)); 225 ivjLifespanNameLabel.setText(" Lifespan"); 226 ivjLifespanNameLabel.setBackground(java.awt.SystemColor.control); 227 ivjLifespanNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 228 ivjLifespanNameLabel.setBounds(new java.awt.Rectangle (1, 14, 100, 12)); 229 ivjLifespanNameLabel.setBounds(1, 14, 100, 12); 230 } catch (java.lang.Throwable ivjExc) { 233 handleException(ivjExc); 236 } 237 } 238 return ivjLifespanNameLabel; 239 } 240 244 245 private java.awt.Label getLifespanValueLabel() { 246 if (ivjLifespanValueLabel == null) { 247 try { 248 ivjLifespanValueLabel = new java.awt.Label (); 249 ivjLifespanValueLabel.setName("LifespanValueLabel"); 250 ivjLifespanValueLabel.setLocation(new java.awt.Point (102, 14)); 251 ivjLifespanValueLabel.setText(" TRANSIENT"); 252 ivjLifespanValueLabel.setBackground(java.awt.SystemColor.control); 253 ivjLifespanValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 254 ivjLifespanValueLabel.setBounds(new java.awt.Rectangle (102, 14, 179, 12)); 255 ivjLifespanValueLabel.setBounds(102, 14, 179, 12); 256 } catch (java.lang.Throwable ivjExc) { 259 handleException(ivjExc); 262 } 263 } 264 return ivjLifespanValueLabel; 265 } 266 Label _getRequestProcessingLabel() { 267 return getRequestProcessingValueLabel(); 268 } 269 273 274 private java.awt.Label getRequestProcessingNameLabel() { 275 if (ivjRequestProcessingNameLabel == null) { 276 try { 277 ivjRequestProcessingNameLabel = new java.awt.Label (); 278 ivjRequestProcessingNameLabel.setName("RequestProcessingNameLabel"); 279 ivjRequestProcessingNameLabel.setLocation(new java.awt.Point (1, 66)); 280 ivjRequestProcessingNameLabel.setText(" Request Processing"); 281 ivjRequestProcessingNameLabel.setBackground(java.awt.SystemColor.control); 282 ivjRequestProcessingNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 283 ivjRequestProcessingNameLabel.setBounds(new java.awt.Rectangle (1, 66, 100, 12)); 284 ivjRequestProcessingNameLabel.setBounds(1, 66, 100, 12); 285 } catch (java.lang.Throwable ivjExc) { 288 handleException(ivjExc); 291 } 292 } 293 return ivjRequestProcessingNameLabel; 294 } 295 299 300 private java.awt.Label getRequestProcessingValueLabel() { 301 if (ivjRequestProcessingValueLabel == null) { 302 try { 303 ivjRequestProcessingValueLabel = new java.awt.Label (); 304 ivjRequestProcessingValueLabel.setName("RequestProcessingValueLabel"); 305 ivjRequestProcessingValueLabel.setLocation(new java.awt.Point (102, 66)); 306 ivjRequestProcessingValueLabel.setText(" USE_ACTIVE_OBJECT_MAP_ONLY"); 307 ivjRequestProcessingValueLabel.setBackground(java.awt.SystemColor.control); 308 ivjRequestProcessingValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 309 ivjRequestProcessingValueLabel.setBounds(new java.awt.Rectangle (102, 66, 179, 12)); 310 ivjRequestProcessingValueLabel.setBounds(102, 66, 179, 12); 311 } catch (java.lang.Throwable ivjExc) { 314 handleException(ivjExc); 317 } 318 } 319 return ivjRequestProcessingValueLabel; 320 } 321 Label _getServantRetentionLabel() { 322 return getServantRetentionValueLabel(); 323 } 324 328 329 private java.awt.Label getServantRetentionNameLabel() { 330 if (ivjServantRetentionNameLabel == null) { 331 try { 332 ivjServantRetentionNameLabel = new java.awt.Label (); 333 ivjServantRetentionNameLabel.setName("ServantRetentionNameLabel"); 334 ivjServantRetentionNameLabel.setLocation(new java.awt.Point (1, 53)); 335 ivjServantRetentionNameLabel.setText(" Servant Retention"); 336 ivjServantRetentionNameLabel.setBackground(java.awt.SystemColor.control); 337 ivjServantRetentionNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 338 ivjServantRetentionNameLabel.setBounds(new java.awt.Rectangle (1, 53, 100, 12)); 339 ivjServantRetentionNameLabel.setBounds(1, 53, 100, 12); 340 } catch (java.lang.Throwable ivjExc) { 343 handleException(ivjExc); 346 } 347 } 348 return ivjServantRetentionNameLabel; 349 } 350 354 355 private java.awt.Label getServantRetentionValueLabel() { 356 if (ivjServantRetentionValueLabel == null) { 357 try { 358 ivjServantRetentionValueLabel = new java.awt.Label (); 359 ivjServantRetentionValueLabel.setName("ServantRetentionValueLabel"); 360 ivjServantRetentionValueLabel.setLocation(new java.awt.Point (102, 53)); 361 ivjServantRetentionValueLabel.setText(" RETAIN"); 362 ivjServantRetentionValueLabel.setBackground(java.awt.SystemColor.control); 363 ivjServantRetentionValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 364 ivjServantRetentionValueLabel.setBounds(new java.awt.Rectangle (102, 53, 179, 12)); 365 ivjServantRetentionValueLabel.setBounds(102, 53, 179, 12); 366 } catch (java.lang.Throwable ivjExc) { 369 handleException(ivjExc); 372 } 373 } 374 return ivjServantRetentionValueLabel; 375 } 376 380 381 private java.awt.Panel getTablePanel() { 382 if (ivjTablePanel == null) { 383 try { 384 ivjTablePanel = new java.awt.Panel (); 385 ivjTablePanel.setName("TablePanel"); 386 ivjTablePanel.setLocation(new java.awt.Point (9, 35)); 387 ivjTablePanel.setLayout(null); 388 ivjTablePanel.setBackground(java.awt.SystemColor.controlShadow); 389 ivjTablePanel.setBounds(new java.awt.Rectangle (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 } catch (java.lang.Throwable ivjExc) { 408 handleException(ivjExc); 411 } 412 } 413 return ivjTablePanel; 414 } 415 Label _getThreadLabel() { 416 return getThreadValueLabel(); 417 } 418 422 423 private java.awt.Label getThreadNameLabel() { 424 if (ivjThreadNameLabel == null) { 425 try { 426 ivjThreadNameLabel = new java.awt.Label (); 427 ivjThreadNameLabel.setName("ThreadNameLabel"); 428 ivjThreadNameLabel.setLocation(new java.awt.Point (1, 1)); 429 ivjThreadNameLabel.setText(" Thread"); 430 ivjThreadNameLabel.setBackground(java.awt.SystemColor.control); 431 ivjThreadNameLabel.setFont(new java.awt.Font ("dialog", 2, 10)); 432 ivjThreadNameLabel.setBounds(new java.awt.Rectangle (1, 1, 100, 12)); 433 ivjThreadNameLabel.setBounds(1, 1, 100, 12); 434 } catch (java.lang.Throwable ivjExc) { 437 handleException(ivjExc); 440 } 441 } 442 return ivjThreadNameLabel; 443 } 444 448 449 private java.awt.Label getThreadValueLabel() { 450 if (ivjThreadValueLabel == null) { 451 try { 452 ivjThreadValueLabel = new java.awt.Label (); 453 ivjThreadValueLabel.setName("ThreadValueLabel"); 454 ivjThreadValueLabel.setLocation(new java.awt.Point (102, 1)); 455 ivjThreadValueLabel.setText(" ORB_CTRL_MODEL"); 456 ivjThreadValueLabel.setBackground(java.awt.SystemColor.control); 457 ivjThreadValueLabel.setFont(new java.awt.Font ("dialog", 0, 10)); 458 ivjThreadValueLabel.setBounds(new java.awt.Rectangle (102, 1, 179, 12)); 459 ivjThreadValueLabel.setBounds(102, 1, 179, 12); 460 } catch (java.lang.Throwable ivjExc) { 463 handleException(ivjExc); 466 } 467 } 468 return ivjThreadValueLabel; 469 } 470 474 475 private java.awt.Label getTitleLabel() { 476 if (ivjTitleLabel == null) { 477 try { 478 ivjTitleLabel = new java.awt.Label (); 479 ivjTitleLabel.setName("TitleLabel"); 480 ivjTitleLabel.setLocation(new java.awt.Point (12, 8)); 481 ivjTitleLabel.setText("Policies:"); 482 ivjTitleLabel.setBackground(java.awt.SystemColor.control); 483 ivjTitleLabel.setForeground(new java.awt.Color (0,0,0)); 484 ivjTitleLabel.setBounds(new java.awt.Rectangle (12, 8, 52, 23)); 485 ivjTitleLabel.setBounds(12, 8, 52, 23); 486 } catch (java.lang.Throwable ivjExc) { 489 handleException(ivjExc); 492 } 493 } 494 return ivjTitleLabel; 495 } 496 500 private void handleException(Throwable exception) { 501 502 503 } 506 509 510 private void initialize() { 511 try { 512 setName("PolicyPanel"); 515 setBounds(new java.awt.Rectangle (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 ivjExc) { 522 handleException(ivjExc); 523 } 524 } 527 531 public PolicyPanel(java.awt.LayoutManager layout) { 532 super(layout); 533 } 534 538 public static void main(java.lang.String [] args) { 539 try { 540 java.awt.Frame frame; 541 try { 542 Class aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame"); 543 frame = (java.awt.Frame )aFrameClass.newInstance(); 544 } catch (java.lang.Throwable ivjExc) { 545 frame = new java.awt.Frame (); 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 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 g) { 558 g.setColor(getBackground()); 559 g.fill3DRect(0, 0, getBounds().width, getBounds().height, true); 560 } 561 564 565 public PolicyPanel() { 566 super(); 567 initialize(); 568 } 569 } 570 571 572 573 574 575 576 577 578 579 580 581 582 | Popular Tags |