PropertyChangeSource.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_PROPERTYCHANGESOURCE_H
00002 #define JAVA_UTIL_PROPERTYCHANGESOURCE_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_UTIL_PROPERTYCHANGELISTENER_H
00014 #include <java_util/PropertyChangeListener.h>
00015 #endif /* JAVA_UTIL_PROPERTYCHANGELISTENER_H */
00016 
00017 namespace java {
00018   namespace util {
00019 
00031       class JAVA_UTIL_SPEC PropertyChangeSource 
00032         : virtual public java::util::EventSource
00033         , virtual public Sync
00034       {
00035 
00036       public:
00037 
00038         PropertyChangeSource();
00039 
00045         virtual void addPropertyChangeListener(const Ref<PropertyChangeListener> l);
00046 
00052         virtual void removePropertyChangeListener(const Ref<PropertyChangeListener> l);
00053 
00057         virtual jboolean hasPropertyChangeListeners() const;
00058 
00070         virtual Ref<List> getPropertyChangeListeners() const;
00071 
00077         virtual void processPropertyChangeEvent(const PropertyChangeEvent& e);
00078 
00079       protected:
00080 
00081         LinkedList listeners;
00082         REGISTER_MEMBERS;
00083 
00084       };
00085 
00086   } // namespace util
00087 } // namespace java
00088 
00089 #endif /* JAVA_UTIL_PROPERTYCHANGESOURCE_H */

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