Source Code Cross Referenced for AOMPanel.java in  » Collaboration » JacORB » org » jacorb » poa » gui » poa » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » JacORB » org.jacorb.poa.gui.poa 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.jacorb.poa.gui.poa;
002:
003:        /*
004:         *        JacORB - a free Java ORB
005:         *
006:         *   Copyright (C) 1997-2004 Gerald Brose.
007:         *
008:         *   This library is free software; you can redistribute it and/or
009:         *   modify it under the terms of the GNU Library General Public
010:         *   License as published by the Free Software Foundation; either
011:         *   version 2 of the License, or (at your option) any later version.
012:         *
013:         *   This library is distributed in the hope that it will be useful,
014:         *   but WITHOUT ANY WARRANTY; without even the implied warranty of
015:         *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
016:         *   Library General Public License for more details.
017:         *
018:         *   You should have received a copy of the GNU Library General Public
019:         *   License along with this library; if not, write to the Free
020:         *   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
021:         */
022:
023:        import org.jacorb.poa.gui.beans.FillLevelBar;
024:
025:        /**
026:         * @author Reimo Tiedemann, FU Berlin
027:         * @version 1.01, 05/07/99, RT
028:         */
029:        public class AOMPanel extends java.awt.Panel implements 
030:                java.awt.event.ActionListener {
031:            private DetailsButtonController controller;
032:
033:            private java.awt.Button ivjDetailsButton = null;
034:            private org.jacorb.poa.gui.beans.FillLevelBar ivjFillLevelBar = null;
035:            private java.awt.Label ivjLabel1 = null;
036:            private java.awt.Label ivjLabel2 = null;
037:
038:            /**
039:             * Comment
040:             */
041:            private void _actionDetailsButtonPressed() {
042:                if (controller != null) {
043:                    controller._actionDetailsButtonPressed("aom");
044:                }
045:            }
046:
047:            /**
048:             * Method to handle events for the ActionListener interface.
049:             * @param e java.awt.event.ActionEvent
050:             */
051:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
052:            public void actionPerformed(java.awt.event.ActionEvent e) {
053:                // user code begin {1}
054:                // user code end
055:                if ((e.getSource() == getDetailsButton())) {
056:                    connEtoC1(e);
057:                }
058:                // user code begin {2}
059:                // user code end
060:            }
061:
062:            /**
063:             * connEtoC1:  (DetailsButton.action.actionPerformed(java.awt.event.ActionEvent) --> AOMPanel.detailsButtonPressed()V)
064:             * @param arg1 java.awt.event.ActionEvent
065:             */
066:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
067:            private void connEtoC1(java.awt.event.ActionEvent arg1) {
068:                try {
069:                    // user code begin {1}
070:                    // user code end
071:                    this ._actionDetailsButtonPressed();
072:                    // user code begin {2}
073:                    // user code end
074:                } catch (java.lang.Throwable ivjExc) {
075:                    // user code begin {3}
076:                    // user code end
077:                    handleException(ivjExc);
078:                }
079:            }
080:
081:            FillLevelBar _getAOMBar() {
082:                return getFillLevelBar();
083:            }
084:
085:            /**
086:             * Return the DetailsButton property value.
087:             * @return java.awt.Button
088:             */
089:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
090:            private java.awt.Button getDetailsButton() {
091:                if (ivjDetailsButton == null) {
092:                    try {
093:                        ivjDetailsButton = new java.awt.Button();
094:                        ivjDetailsButton.setName("DetailsButton");
095:                        ivjDetailsButton.setLocation(33, 170);
096:                        ivjDetailsButton
097:                                .setBackground(java.awt.SystemColor.control);
098:                        ivjDetailsButton.setSize(23, 23);
099:                        ivjDetailsButton.setFont(new java.awt.Font("dialog", 0,
100:                                8));
101:                        ivjDetailsButton.setActionCommand("...");
102:                        ivjDetailsButton.setLabel("...");
103:                        // user code begin {1}
104:                        // user code end
105:                    } catch (java.lang.Throwable ivjExc) {
106:                        // user code begin {2}
107:                        // user code end
108:                        handleException(ivjExc);
109:                    }
110:                }
111:                ;
112:                return ivjDetailsButton;
113:            }
114:
115:            /**
116:             * Return the FillLevelBar property value.
117:             * @return org.jacorb.poa.gui.beans.FillLevelBar
118:             */
119:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
120:            private org.jacorb.poa.gui.beans.FillLevelBar getFillLevelBar() {
121:                if (ivjFillLevelBar == null) {
122:                    try {
123:                        ivjFillLevelBar = new org.jacorb.poa.gui.beans.FillLevelBar();
124:                        ivjFillLevelBar.setName("FillLevelBar");
125:                        ivjFillLevelBar.setLocation(32, 35);
126:                        ivjFillLevelBar
127:                                .setBackground(java.awt.SystemColor.control);
128:                        ivjFillLevelBar.setSize(50, 130);
129:                        // user code begin {1}
130:                        // user code end
131:                    } catch (java.lang.Throwable ivjExc) {
132:                        // user code begin {2}
133:                        // user code end
134:                        handleException(ivjExc);
135:                    }
136:                }
137:                ;
138:                return ivjFillLevelBar;
139:            }
140:
141:            /**
142:             * Return the Label1 property value.
143:             * @return java.awt.Label
144:             */
145:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
146:            private java.awt.Label getLabel1() {
147:                if (ivjLabel1 == null) {
148:                    try {
149:                        ivjLabel1 = new java.awt.Label();
150:                        ivjLabel1.setName("Label1");
151:                        ivjLabel1.setLocation(10, 10);
152:                        ivjLabel1.setText("Active Object");
153:                        ivjLabel1.setBackground(java.awt.SystemColor.control);
154:                        ivjLabel1.setSize(70, 12);
155:                        ivjLabel1.setForeground(java.awt.Color.black);
156:                        ivjLabel1.setFont(new java.awt.Font("dialog", 2, 10));
157:                        ivjLabel1.setAlignment(1);
158:                        // user code begin {1}
159:                        // user code end
160:                    } catch (java.lang.Throwable ivjExc) {
161:                        // user code begin {2}
162:                        // user code end
163:                        handleException(ivjExc);
164:                    }
165:                }
166:                ;
167:                return ivjLabel1;
168:            }
169:
170:            /**
171:             * Return the Label2 property value.
172:             * @return java.awt.Label
173:             */
174:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
175:            private java.awt.Label getLabel2() {
176:                if (ivjLabel2 == null) {
177:                    try {
178:                        ivjLabel2 = new java.awt.Label();
179:                        ivjLabel2.setName("Label2");
180:                        ivjLabel2.setLocation(10, 22);
181:                        ivjLabel2.setText("Map");
182:                        ivjLabel2.setBackground(java.awt.SystemColor.control);
183:                        ivjLabel2.setSize(70, 12);
184:                        ivjLabel2.setForeground(java.awt.Color.black);
185:                        ivjLabel2.setFont(new java.awt.Font("dialog", 2, 10));
186:                        ivjLabel2.setAlignment(1);
187:                        // user code begin {1}
188:                        // user code end
189:                    } catch (java.lang.Throwable ivjExc) {
190:                        // user code begin {2}
191:                        // user code end
192:                        handleException(ivjExc);
193:                    }
194:                }
195:                ;
196:                return ivjLabel2;
197:            }
198:
199:            /**
200:             * Called whenever the part throws an exception.
201:             * @param exception java.lang.Throwable
202:             */
203:            private void handleException(Throwable exception) {
204:
205:                /* Uncomment the following lines to print uncaught exceptions to stdout */
206:                // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
207:                // exception.printStackTrace(System.out);
208:            }
209:
210:            /**
211:             * Initializes connections
212:             */
213:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
214:            private void initConnections() {
215:                // user code begin {1}
216:                // user code end
217:                getDetailsButton().addActionListener(this );
218:            }
219:
220:            /**
221:             * Initialize the class.
222:             */
223:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
224:            private void initialize() {
225:                // user code begin {1}
226:                // user code end
227:                setName("AOMPanel");
228:                setLayout(null);
229:                setBackground(java.awt.SystemColor.control);
230:                setSize(90, 200);
231:                add(getLabel1(), getLabel1().getName());
232:                add(getLabel2(), getLabel2().getName());
233:                add(getFillLevelBar(), getFillLevelBar().getName());
234:                add(getDetailsButton(), getDetailsButton().getName());
235:                initConnections();
236:                // user code begin {2}
237:                // user code end
238:            }
239:
240:            void _init(DetailsButtonController _controller) {
241:                controller = _controller;
242:            }
243:
244:            /**
245:             * AOMPanel constructor comment.
246:             * @param layout java.awt.LayoutManager
247:             */
248:            public AOMPanel(java.awt.LayoutManager layout) {
249:                super (layout);
250:            }
251:
252:            /**
253:             * main entrypoint - starts the part when it is run as an application
254:             * @param args java.lang.String[]
255:             */
256:            public static void main(java.lang.String[] args) {
257:                try {
258:                    java.awt.Frame frame;
259:                    try {
260:                        Class aFrameClass = Class
261:                                .forName("com.ibm.uvm.abt.edit.TestFrame");
262:                        frame = (java.awt.Frame) aFrameClass.newInstance();
263:                    } catch (java.lang.Throwable ivjExc) {
264:                        frame = new java.awt.Frame();
265:                    }
266:                    AOMPanel aAOMPanel;
267:                    aAOMPanel = new AOMPanel();
268:                    frame.add("Center", aAOMPanel);
269:                    frame.setSize(aAOMPanel.getSize());
270:                    frame.setVisible(true);
271:                } catch (Throwable exception) {
272:                    System.err
273:                            .println("Exception occurred in main() of java.awt.Panel");
274:                    exception.printStackTrace(System.out);
275:                }
276:            }
277:
278:            public void paint(java.awt.Graphics g) {
279:                g.setColor(getBackground());
280:                g.fill3DRect(0, 0, getBounds().width, getBounds().height, true);
281:            }
282:
283:            /**
284:             * Constructor
285:             */
286:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
287:            public AOMPanel() {
288:                super();
289:                initialize();
290:            }
291:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.