ContainerEvent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_CONTAINEREVENT_H
00002 #define JAVA_AWT_EVENT_CONTAINEREVENT_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 Container;
00015 
00016     namespace event {
00017 
00046       class JAVA_AWT_SPEC ContainerEvent : public ComponentEvent {
00047 
00048       public:
00049 
00050         enum CONTAINER_EVENT_ID {
00051 
00055           CONTAINER_FIRST = 300,
00056 
00060           COMPONENT_ADDED = CONTAINER_FIRST,
00061 
00065           COMPONENT_REMOVED,
00066 
00070           CONTAINER_LAST = COMPONENT_REMOVED,
00071 
00072         };
00073 
00084         ContainerEvent(const Ref<Component>& source = 0, jint id = COMPONENT_FIRST, const Ref<Component>& child = 0);
00085 
00091         virtual Ref<Container> getContainer() const;
00092 
00098         virtual Ref<Component> getChild() const;
00099 
00106         virtual String paramString() const;
00107 
00108       protected:
00109 
00117         Ref<Component> child;
00118 
00119       private:
00120 
00121         REGISTER_MEMBERS;
00122 
00123       };
00124 
00125     } // namespace event
00126   } // namespace awt
00127 } // namespace java
00128 
00129 #endif /* JAVA_AWT_EVENT_CONTAINEREVENT_H */

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