InvocationEvent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_INVOCATIONEVENT_H
00002 #define JAVA_AWT_EVENT_INVOCATIONEVENT_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_ACTIVEEVENT_H
00008 #include <java_awt/ActiveEvent.h>
00009 #endif /* JAVA_AWT_ACTIVEEVENT_H */
00010 #ifndef JAVA_LANG_RUNNABLE_H
00011 #include <java_lang/Runnable.h>
00012 #endif /* JAVA_LANG_RUNNABLE_H */
00013 #ifndef JAVA_LANG_SYNC_H
00014 #include <java_lang/Sync.h>
00015 #endif /* JAVA_LANG_SYNC_H */
00016 #ifndef JAVA_AWT_SPEC
00017 #include <java_awt/Spec.h>
00018 #endif /* JAVA_AWT_SPEC */
00019 
00020 namespace java {
00021   namespace awt {
00022     namespace event {
00023 
00047       class JAVA_AWT_SPEC InvocationEvent : public AWTEvent, virtual public ActiveEvent {
00048 
00049       public:
00050 
00051         enum INVOCATION_EVENT_ID {
00052 
00056           INVOCATION_FIRST = 1200,
00057 
00061           INVOCATION_DEFAULT = INVOCATION_FIRST,
00062 
00066           INVOCATION_LAST = INVOCATION_DEFAULT,
00067 
00068         };
00069 
00092         InvocationEvent
00093           (const ObjectRef& source,
00094            const Ref<Runnable> runnable, 
00095            const Ref<Sync> notifier = 0,
00096            jboolean catchExceptions = false);
00097 
00122         InvocationEvent
00123           (const ObjectRef& source = 0, jint id = INVOCATION_DEFAULT, 
00124            const Ref<Runnable> runnable = 0, 
00125            const Ref<Sync> notifier = 0,
00126            jboolean catchExceptions = false);
00127 
00132         virtual void dispatch();
00133 
00142         virtual Ref<Exception> getException() const;
00143 
00150         virtual String paramString() const;
00151 
00155         virtual String toString() const;
00156 
00157       protected:
00158 
00162         Ref<Runnable> runnable;
00163 
00168         Ref<Sync> notifier;
00169 
00175         jboolean catchExceptions;
00176 
00182         Ref<Exception> exception;
00183 
00184       private:
00185 
00186         REGISTER_MEMBERS;
00187 
00188       };
00189 
00190     } // namespace event
00191   } // namespace awt
00192 } // namespace java
00193 
00194 #endif /* JAVA_AWT_EVENT_INVOCATIONEVENT_H */

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