WindowSource.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_WINDOWSOURCE_H
00002 #define JAVA_AWT_EVENT_WINDOWSOURCE_H 1
00003 
00004 #ifndef JAVA_UTIL_EVENTSOURCE_H
00005 #include <java_util/EventSource.h>
00006 #endif /* JAVA_UTIL_EVENTSOURCE_H */
00007 #ifndef JAVA_LANG_SYNC_H
00008 #include <java_lang/Sync.h>
00009 #endif /* JAVA_LANG_SYNC_H */
00010 #ifndef JAVA_UTIL_LINKEDLIST_H
00011 #include <java_util/LinkedList.h>
00012 #endif /* JAVA_UTIL_LINKEDLIST_H */
00013 #ifndef JAVA_AWT_EVENT_WINDOWLISTENER_H
00014 #include <java_awt_event/WindowListener.h>
00015 #endif /* JAVA_AWT_EVENT_WINDOWLISTENER_H */
00016 #ifndef JAVA_AWT_EVENT_WINDOWFOCUSLISTENER_H
00017 #include <java_awt_event/WindowFocusListener.h>
00018 #endif /* JAVA_AWT_EVENT_WINDOWFOCUSLISTENER_H */
00019 #ifndef JAVA_AWT_EVENT_WINDOWSTATELISTENER_H
00020 #include <java_awt_event/WindowStateListener.h>
00021 #endif /* JAVA_AWT_EVENT_WINDOWSTATELISTENER_H */
00022 #ifndef JAVA_AWT_SPEC
00023 #include <java_awt/Spec.h>
00024 #endif /* JAVA_AWT_SPEC */
00025 
00026 namespace java {
00027   namespace awt {
00028     namespace event {
00029 
00030       using namespace java::util;
00031 
00043       class JAVA_AWT_SPEC WindowSource
00044         : virtual public java::util::EventSource
00045         , virtual public Sync
00046       {
00047 
00048       public:
00049 
00055         virtual void addWindowListener(const Ref<WindowListener> l);
00056 
00062         virtual void removeWindowListener(const Ref<WindowListener> l);
00063 
00067         virtual jboolean hasWindowListeners() const;
00068 
00074         virtual void addWindowFocusListener(const Ref<WindowFocusListener> l);
00075 
00081         virtual void removeWindowFocusListener(const Ref<WindowFocusListener> l);
00082 
00086         virtual jboolean hasWindowFocusListeners() const;
00087 
00093         virtual void addWindowStateListener(const Ref<WindowStateListener> l);
00094 
00100         virtual void removeWindowStateListener(const Ref<WindowStateListener> l);
00101 
00105         virtual jboolean hasWindowStateListeners() const;
00106 
00118         virtual Ref<List> getWindowListeners() const;
00119 
00131         virtual Ref<List> getWindowFocusListeners() const;
00132 
00144         virtual Ref<List> getWindowStateListeners() const;
00145 
00151         virtual void processWindowEvent(const WindowEvent& e);
00152 
00153       protected:
00154 
00155         LinkedList listeners;
00156         LinkedList focus_listeners;
00157         LinkedList state_listeners;
00158         REGISTER_MEMBERS;
00159 
00160       };
00161 
00162     } // namespace event
00163   } // namespace awt
00164 } // namespace java
00165 
00166 #endif /* JAVA_AWT_EVENT_WINDOWSOURCE_H */
00167 

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