HierarchyEvent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_HIERARCHYEVENT_H
00002 #define JAVA_AWT_EVENT_HIERARCHYEVENT_H 1
00003 
00004 #ifndef JAVA_AWT_AWTEVENT_H
00005 #include <java_awt/AWTEvent.h>
00006 #endif /* JAVA_AWT_AWTEVENT_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 Component;
00015     class Container;
00016 
00017     namespace event {
00018 
00066       class JAVA_AWT_SPEC HierarchyEvent : public AWTEvent {
00067 
00068       public:
00069 
00070         enum HIERARCHY_EVENT_ID {
00071 
00075           HIERARCHY_FIRST = 1400,
00076 
00081           HIERARCHY_CHANGED = HIERARCHY_FIRST,
00082 
00086           HIERARCHY_BOUNDS_FIRST,
00087 
00091           ANCESTOR_MOVED = HIERARCHY_BOUNDS_FIRST,
00092 
00096           ANCESTOR_RESIZED,
00097 
00101           HIERARCHY_BOUNDS_LAST = ANCESTOR_RESIZED,
00102 
00106           HIERARCHY_LAST = ANCESTOR_RESIZED,
00107 
00108         };
00109 
00110         enum HIERARCHY_CHANGE_FLAG {
00111 
00116           PARENT_CHANGED = 0x1,
00117 
00132           DISPLAYABILITY_CHANGED = 0x2,
00133 
00151           SHOWING_CHANGED = 0x4,
00152 
00153         };
00154 
00170         HierarchyEvent
00171           (const Ref<Component>& source = 0, jint id = HIERARCHY_FIRST,
00172            const Ref<Component>& changed = 0, 
00173            const Ref<Container>& changedParent = 0,
00174            jlong changeFlags = 0);
00175 
00183         virtual Ref<Component> getComponent() const;
00184 
00191         virtual Ref<Component> getChanged() const;
00192 
00206         virtual Ref<Container> getChangedParent() const;
00207 
00216         virtual jlong getChangeFlags() const;
00217 
00224         virtual String paramString() const;
00225 
00226       protected:
00227 
00228         Ref<Component> changed;
00229         Ref<Container> changedParent;
00230         jlong changeFlags;
00231   
00232       private:
00233 
00234         REGISTER_MEMBERS;
00235 
00236       };
00237 
00238     } // namespace event
00239   } // namespace awt
00240 } // namespace java
00241 
00242 #endif /* JAVA_AWT_EVENT_HIERARCHY
00243 EVENT_H */
00244 

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