00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef JQMENUBRIDGE_H
00010 #define JQMENUBRIDGE_H
00011
00012 #include "JavaQxQSwing.h"
00013
00014 #include "JQContainerBridge.h"
00015
00016
00017
00018
00019
00026 class JAVAQX_EXPORT JQMenuBridge : public JQContainerBridge
00027 {
00028 Q_OBJECT
00029 protected:
00030 JQMenuBridge(JNIEnv *env, jobject obj);
00031 public slots:
00032 void setText(JNIEnv *env, jstring text);
00033 void insertChild(JNIEnv *env, jlong childBridge, jint index);
00034 void removeChild(JNIEnv *env, jlong childBridge);
00035 void show(JNIEnv *env, jint x, jint y);
00036 public:
00037 static jlong newInstance(JNIEnv *env, jobject obj);
00038 public:
00039 inline QMenu *qMenu() const;
00040 public:
00041 virtual QAction *qAction();
00042 };
00043
00044
00045
00046
00047
00053 inline QMenu *JQMenuBridge::qMenu() const
00054 {
00055 return static_cast<QMenu *>(qObject());
00056 }
00057
00058
00059
00060
00061
00062 #define jqMenuCast(bridge) (reinterpret_cast<JQMenuBridge *>(bridge))
00063 #define jqMenuBridge jqMenuCast(bridge)
00064
00065 #endif //JQMENUBRIDGE_H
00066
00067
00068
00069
00070
00071
00072
00073