HierarchySource.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_HIERARCHYSOURCE_H
00002 #define JAVA_AWT_EVENT_HIERARCHYSOURCE_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_HIERARCHYLISTENER_H
00014 #include <java_awt_event/HierarchyListener.h>
00015 #endif /* JAVA_AWT_EVENT_HIERARCHYLISTENER_H */
00016 #ifndef JAVA_AWT_EVENT_HIERARCHYBOUNDSLISTENER_H
00017 #include <java_awt_event/HierarchyBoundsListener.h>
00018 #endif /* JAVA_AWT_EVENT_HIERARCHYBOUNDSLISTENER_H */
00019 #ifndef JAVA_AWT_SPEC
00020 #include <java_awt/Spec.h>
00021 #endif /* JAVA_AWT_SPEC */
00022 
00023 namespace java {
00024   namespace awt {
00025     namespace event {
00026 
00027       using namespace java::util;
00028 
00040       class JAVA_AWT_SPEC HierarchySource 
00041         : virtual public java::util::EventSource
00042         , virtual public Sync {
00043 
00044       public:
00045 
00051         virtual void addHierarchyListener(const Ref<HierarchyListener> l);
00052 
00058         virtual void removeHierarchyListener(const Ref<HierarchyListener> l);
00059 
00063         virtual jboolean hasHierarchyListeners() const;
00064 
00070         virtual void addHierarchyBoundsListener(const Ref<HierarchyBoundsListener> l);
00071 
00077         virtual void removeHierarchyBoundsListener(const Ref<HierarchyBoundsListener> l);
00078 
00082         virtual jboolean hasHierarchyBoundsListeners() const;
00083 
00095         virtual Ref<List> getHierarchyListeners() const;
00096 
00108         virtual Ref<List> getHierarchyBoundsListeners() const;
00109 
00115         virtual void processHierarchyEvent(const HierarchyEvent& e);
00116 
00117       protected:
00118 
00119         LinkedList listeners;
00120         LinkedList bounds_listeners;
00121         REGISTER_MEMBERS;
00122 
00123       };
00124 
00125     } // namespace event
00126   } // namespace awt
00127 } // namespace java
00128 
00129 #endif /* JAVA_AWT_EVENT_HIERARCHYSOURCE_H */
00130 

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