Source Code Cross Referenced for SInternalFrameEvent.java in  » Swing-Library » wings3 » org » wings » event » 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 » Swing Library » wings3 » org.wings.event 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2000,2005 wingS development team.
003:         *
004:         * This file is part of wingS (http://wingsframework.org).
005:         *
006:         * wingS is free software; you can redistribute it and/or modify
007:         * it under the terms of the GNU Lesser General Public License
008:         * as published by the Free Software Foundation; either version 2.1
009:         * of the License, or (at your option) any later version.
010:         *
011:         * Please see COPYING for the complete licence.
012:         */
013:        package org.wings.event;
014:
015:        import org.wings.SInternalFrame;
016:
017:        import java.awt.*;
018:
019:        /**
020:         * SInternalFrameEvent:  an AWTEvent which adds support for
021:         * SInternalFrame objects as the event source.
022:         *
023:         * @author Holger Engels
024:         */
025:        public class SInternalFrameEvent extends AWTEvent {
026:            /**
027:             * The first number in the range of ids used for window events.
028:             */
029:            public static final int INTERNAL_FRAME_FIRST = 12000;
030:
031:            /**
032:             * The window opened event.  This event is delivered only
033:             * the first time a window is made visible.
034:             */
035:            public static final int INTERNAL_FRAME_OPENED = INTERNAL_FRAME_FIRST;
036:
037:            /**
038:             * The window closed event. This event is delivered after
039:             * the window has been closed as the result of a call to hide or
040:             * destroy.
041:             */
042:            public static final int INTERNAL_FRAME_CLOSED = 1 + INTERNAL_FRAME_FIRST;
043:
044:            /**
045:             * The window iconified event. This event indicates that the window
046:             * was shrunk down to a small icon.
047:             */
048:            public static final int INTERNAL_FRAME_ICONIFIED = 2 + INTERNAL_FRAME_FIRST;
049:
050:            /**
051:             * The window deiconified event type. This event indicates that the
052:             * window has been restored to its normal size.
053:             */
054:            public static final int INTERNAL_FRAME_DEICONIFIED = 3 + INTERNAL_FRAME_FIRST;
055:
056:            /**
057:             * The window maximized event type. This event indicates that keystrokes
058:             * and mouse clicks are directed towards this window.
059:             */
060:            public static final int INTERNAL_FRAME_MAXIMIZED = 4 + INTERNAL_FRAME_FIRST;
061:
062:            /**
063:             * The window unmaximized event type. This event indicates that keystrokes
064:             * and mouse clicks are no longer directed to the window.
065:             */
066:            public static final int INTERNAL_FRAME_UNMAXIMIZED = 5 + INTERNAL_FRAME_FIRST;
067:
068:            /**
069:             * The last number in the range of ids used for window events.
070:             */
071:            public static final int INTERNAL_FRAME_LAST = INTERNAL_FRAME_UNMAXIMIZED;
072:
073:            /**
074:             * Constructs a SInternalFrameEvent object.
075:             *
076:             * @param source the SInternalFrame object that originated the event
077:             * @param id     an integer indicating the type of event
078:             */
079:            public SInternalFrameEvent(SInternalFrame source, int id) {
080:                super (source, id);
081:            }
082:
083:            /**
084:             * Returns a parameter string identifying this event.
085:             * This method is useful for event-logging and for debugging.
086:             *
087:             * @return a string identifying the event and its attributes
088:             */
089:            public String paramString() {
090:                String typeStr;
091:                switch (id) {
092:                case INTERNAL_FRAME_OPENED:
093:                    typeStr = "INTERNAL_FRAME_OPENED";
094:                    break;
095:                case INTERNAL_FRAME_CLOSED:
096:                    typeStr = "INTERNAL_FRAME_CLOSED";
097:                    break;
098:                case INTERNAL_FRAME_ICONIFIED:
099:                    typeStr = "INTERNAL_FRAME_ICONIFIED";
100:                    break;
101:                case INTERNAL_FRAME_DEICONIFIED:
102:                    typeStr = "INTERNAL_FRAME_DEICONIFIED";
103:                    break;
104:                case INTERNAL_FRAME_MAXIMIZED:
105:                    typeStr = "INTERNAL_FRAME_MAXIMIZED";
106:                    break;
107:                case INTERNAL_FRAME_UNMAXIMIZED:
108:                    typeStr = "INTERNAL_FRAME_UNMAXIMIZED";
109:                    break;
110:                default:
111:                    typeStr = "unknown type";
112:                }
113:                return typeStr;
114:            }
115:
116:            /**
117:             * Returns the originator of the event.
118:             *
119:             * @return the SInternalFrame object that originated the event
120:             * @since 1.3
121:             */
122:            public SInternalFrame getInternalFrame() {
123:                return (source instanceof  SInternalFrame) ? (SInternalFrame) source
124:                        : null;
125:            }
126:
127:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.