AWTEvent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_AWTEVENT_H
00002 #define JAVA_AWT_AWTEVENT_H 1
00003 
00004 #ifndef JAVA_UTIL_EVENTOBJECT_H
00005 #include <java_util/EventObject.h>
00006 #endif /* JAVA_UTIL_EVENTOBJECT_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 
00056     class JAVA_AWT_SPEC AWTEvent : public java::util::EventObject {
00057 
00058     public:
00059 
00060       enum EVENT_MASK {
00061 
00065         COMPONENT_EVENT_MASK = 0x01,
00066 
00070         CONTAINER_EVENT_MASK = 0x02,
00071 
00075         FOCUS_EVENT_MASK = 0x04,
00076 
00080         KEY_EVENT_MASK = 0x08,
00081 
00085         MOUSE_EVENT_MASK = 0x10,
00086 
00090         MOUSE_MOTION_EVENT_MASK = 0x20,
00091 
00095         WINDOW_EVENT_MASK = 0x40,
00096 
00100         ACTION_EVENT_MASK = 0x80,
00101 
00105         ADJUSTMENT_EVENT_MASK = 0x100,
00106 
00110         ITEM_EVENT_MASK = 0x200,
00111 
00115         TEXT_EVENT_MASK = 0x400,
00116 
00120         INPUT_METHOD_EVENT_MASK = 0x800,
00121 
00127         INPUT_METHODS_ENABLED_MASK = 0x1000,
00128 
00132         PAINT_EVENT_MASK = 0x2000,
00133 
00137         INVOCATION_EVENT_MASK = 0x4000,
00138 
00142         HIERARCHY_EVENT_MASK = 0x8000,
00143 
00147         HIERARCHY_BOUNDS_EVENT_MASK = 0x10000,
00148 
00153         MOUSE_WHEEL_EVENT_MASK = 0x20000,
00154 
00159         WINDOW_STATE_EVENT_MASK = 0x40000,
00160 
00165         WINDOW_FOCUS_EVENT_MASK = 0x80000,
00166 
00171         RESERVED_ID_MAX = 1999,
00172 
00173       };
00174 
00180       AWTEvent(const ObjectRef& source = 0, jint id = 0, jlong when = 0, jboolean consumed = false);
00181 
00193       virtual void setSource(const ObjectRef& newSource);
00194 
00198       virtual jint getID() const;
00199 
00204       virtual void consume();
00205 
00209       virtual jboolean isConsumed() const;
00210 
00214       virtual jlong getWhen() const;
00215 
00219       virtual String toString() const;
00220 
00230       virtual String paramString() const;
00231 
00232     protected:
00233 
00240       jint id;
00241 
00249       jlong when;
00250 
00260       jboolean consumed;
00261 
00262     private:
00263 
00264       REGISTER_MEMBERS;
00265 
00266     };
00267 
00268   } // namespace awt
00269 } // namespace java
00270 
00271 #endif /* JAVA_AWT_AWTEVENT_H */

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