1 package org.jacorb.poa.gui.pm; 2 3 22 23 27 public class POAManagerStatePanel extends java.awt.Panel { 28 private RegisterPanel ivjRegisterPanel = null; 29 private StatePanel ivjStatePanel = null; 30 private java.awt.BorderLayout ivjPOAManagerStateLabelBorderLayout = null; 31 private java.awt.Panel ivjRightPanel = null; 32 private java.awt.Panel ivjBottomPanel = null; 33 36 37 public POAManagerStatePanel() { 38 super(); 39 initialize(); 40 } 41 45 public POAManagerStatePanel(java.awt.LayoutManager layout) { 46 super(layout); 47 } 48 RegisterPanel _getRegisterPanel() { 49 return getRegisterPanel(); 50 } 51 StatePanel _getStatePanel() { 52 return getStatePanel(); 53 } 54 58 59 private java.awt.Panel getBottomPanel() { 60 if (ivjBottomPanel == null) { 61 try { 62 ivjBottomPanel = new java.awt.Panel (); 63 ivjBottomPanel.setName("BottomPanel"); 64 ivjBottomPanel.setLayout(null); 65 } catch (java.lang.Throwable ivjExc) { 68 handleException(ivjExc); 71 } 72 }; 73 return ivjBottomPanel; 74 } 75 79 80 private java.awt.BorderLayout getPOAManagerStateLabelBorderLayout() { 81 java.awt.BorderLayout ivjPOAManagerStateLabelBorderLayout = null; 82 try { 83 84 ivjPOAManagerStateLabelBorderLayout = new java.awt.BorderLayout (); 85 ivjPOAManagerStateLabelBorderLayout.setVgap(10); 86 ivjPOAManagerStateLabelBorderLayout.setHgap(10); 87 } catch (java.lang.Throwable ivjExc) { 88 handleException(ivjExc); 89 }; 90 return ivjPOAManagerStateLabelBorderLayout; 91 } 92 96 97 private RegisterPanel getRegisterPanel() { 98 if (ivjRegisterPanel == null) { 99 try { 100 ivjRegisterPanel = new org.jacorb.poa.gui.pm.RegisterPanel(); 101 ivjRegisterPanel.setName("RegisterPanel"); 102 } catch (java.lang.Throwable ivjExc) { 105 handleException(ivjExc); 108 } 109 }; 110 return ivjRegisterPanel; 111 } 112 116 117 private java.awt.Panel getRightPanel() { 118 if (ivjRightPanel == null) { 119 try { 120 ivjRightPanel = new java.awt.Panel (); 121 ivjRightPanel.setName("RightPanel"); 122 ivjRightPanel.setLayout(null); 123 } catch (java.lang.Throwable ivjExc) { 126 handleException(ivjExc); 129 } 130 }; 131 return ivjRightPanel; 132 } 133 137 138 private StatePanel getStatePanel() { 139 if (ivjStatePanel == null) { 140 try { 141 ivjStatePanel = new org.jacorb.poa.gui.pm.StatePanel(); 142 ivjStatePanel.setName("StatePanel"); 143 } catch (java.lang.Throwable ivjExc) { 146 handleException(ivjExc); 149 } 150 }; 151 return ivjStatePanel; 152 } 153 157 private void handleException(Throwable exception) { 158 159 160 } 163 166 167 private void initialize() { 168 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 } 181 185 public static void main(java.lang.String [] args) { 186 try { 187 java.awt.Frame frame; 188 try { 189 Class aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame"); 190 frame = (java.awt.Frame )aFrameClass.newInstance(); 191 } catch (java.lang.Throwable ivjExc) { 192 frame = new java.awt.Frame (); 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 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 |