WindowEvent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_WINDOWEVENT_H
00002 #define JAVA_AWT_EVENT_WINDOWEVENT_H 1
00003 
00004 #ifndef JAVA_AWT_EVENT_COMPONENTEVENT_H
00005 #include <java_awt_event/ComponentEvent.h>
00006 #endif /* JAVA_AWT_EVENT_COMPONENTEVENT_H */
00007 #ifndef JAVA_AWT_SPEC
00008 #include <java_awt/Spec.h>
00009 #endif /* JAVA_AWT_SPEC */
00010 
00011 namespace java {
00012   namespace awt {
00013 
00014     class Window;
00015 
00016     namespace event {
00017 
00042       class JAVA_AWT_SPEC WindowEvent : public ComponentEvent {
00043 
00044       public:
00045 
00046         enum WINDOW_EVENT_ID {
00047 
00051           WINDOW_FIRST = 200,
00052 
00057           WINDOW_OPENED = WINDOW_FIRST,
00058 
00066           WINDOW_CLOSING,
00067 
00072           WINDOW_CLOSED,
00073 
00081           WINDOW_ICONIFIED,
00082 
00087           WINDOW_DEICONIFIED,
00088 
00097           WINDOW_ACTIVATED,
00098 
00107           WINDOW_DEACTIVATED,
00108 
00112           WINDOW_FOCUS_FIRST,
00113 
00119           WINDOW_GAINED_FOCUS = WINDOW_FOCUS_FIRST,
00120 
00126           WINDOW_LOST_FOCUS,
00127 
00131           WINDOW_FOCUS_LAST = WINDOW_LOST_FOCUS,
00132 
00136           WINDOW_STATE_FIRST,
00137 
00144           WINDOW_STATE_CHANGED = WINDOW_STATE_FIRST,
00145 
00149           WINDOW_STATE_LAST = WINDOW_STATE_CHANGED,
00150 
00154           WINDOW_LAST = WINDOW_STATE_CHANGED,
00155 
00156         };
00157 
00171         WindowEvent
00172           (const Ref<Window>& source = 0, jint id = WINDOW_FIRST, 
00173            const Ref<Window>& opposit = 0, 
00174            jint oldState = 0, jint newState = 0);
00175 
00181         virtual Ref<Window> getWindow() const;
00182 
00196         virtual Ref<Window> getOppositeWindow() const;
00197 
00217         virtual jint getOldState() const;
00218 
00238         virtual jint getNewState() const;
00239 
00246         virtual String paramString() const;
00247 
00248       protected:
00249 
00262         Ref<Window> opposite;
00263 
00267         jint oldState;
00268         jint newState;
00269 
00270       private:
00271 
00272         REGISTER_MEMBERS;
00273 
00274       };
00275 
00276     } // namespace event
00277   } // namespace awt
00278 } // namespace java
00279 
00280 #endif /* JAVA_AWT_EVENT_WINDOWEVENT_H */
00281 

Generated on Fri May 16 11:54:44 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3