ContainerSource.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_CONTAINERSOURCE_H
00002 #define JAVA_AWT_EVENT_CONTAINERSOURCE_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_CONTAINERLISTENER_H
00014 #include <java_awt_event/ContainerListener.h>
00015 #endif /* JAVA_AWT_EVENT_CONTAINERLISTENER_H */
00016 #ifndef JAVA_AWT_SPEC
00017 #include <java_awt/Spec.h>
00018 #endif /* JAVA_AWT_SPEC */
00019 
00020 namespace java {
00021   namespace awt {
00022     namespace event {
00023 
00024       using namespace java::util;
00025 
00037       class JAVA_AWT_SPEC ContainerSource
00038         : virtual public java::util::EventSource
00039         , virtual public Sync
00040       {
00041 
00042       public:
00043 
00049         virtual void addContainerListener(const Ref<ContainerListener> l);
00050 
00056         virtual void removeContainerListener(const Ref<ContainerListener> l);
00057 
00061         virtual jboolean hasContainerListeners() const;
00062 
00074         virtual Ref<List> getContainerListeners() const;
00075 
00081         virtual void processContainerEvent(const ContainerEvent& e);
00082 
00083       protected:
00084 
00085         LinkedList listeners;
00086         REGISTER_MEMBERS;
00087 
00088       };
00089 
00090     } // namespace event
00091   } // namespace awt
00092 } // namespace java
00093 
00094 #endif /* JAVA_AWT_EVENT_CONTAINERSOURCE_H */
00095 

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