ItemEvent.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_EVENT_ITEMEVENT_H
00002 #define JAVA_AWT_EVENT_ITEMEVENT_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_ITEMSELECTABLE_H
00008 #include <java_awt/ItemSelectable.h>
00009 #endif /* JAVA_AWT_ITEMSELECTABLE_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016     namespace event {
00017 
00042       class JAVA_AWT_SPEC ItemEvent : public AWTEvent {
00043 
00044       public:
00045 
00046         enum ITEM_EVENT_ID {
00047 
00051           ITEM_FIRST = 701,
00052 
00056           ITEM_STATE_CHANGED = ITEM_FIRST,
00057 
00061           ITEM_LAST = ITEM_STATE_CHANGED,
00062 
00063         };
00064 
00065         enum STATE_CHANGE_VALUE {
00066 
00070           DESELECTED = 0,
00071 
00075           SELECTED,
00076 
00077         };
00078 
00092         ItemEvent
00093           (const Ref<ItemSelectable>& source = 0, jint id = ITEM_STATE_CHANGED, 
00094            const ObjectRef& item = 0, 
00095            jint stateChange = SELECTED);
00096 
00102         virtual Ref<ItemSelectable> getItemSelectable() const;
00103 
00109         virtual ObjectRef getItem() const;
00110 
00120         virtual jint getStateChange() const;
00121 
00128         virtual String paramString() const;
00129 
00130       protected:
00131 
00138         ObjectRef item;
00139 
00147         jint stateChange;
00148 
00149       private:
00150 
00151         REGISTER_MEMBERS;
00152 
00153       };
00154 
00155     } // namespace event
00156   } // namespace awt
00157 } // namespace java
00158 
00159 #endif /* JAVA_AWT_EVENT_ITEMEVENT_H */

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