#include <JQMenuBridge.h>
Public Slots | |
void | setText (JNIEnv *env, jstring text) |
Sets menu text. | |
void | insertChild (JNIEnv *env, jlong childBridge, jint index) |
Inserts child. | |
void | removeChild (JNIEnv *env, jlong childBridge) |
Removes child. | |
void | show (JNIEnv *env, jint x, jint y) |
Displays menu at specified location. | |
Public Member Functions | |
QMenu * | qMenu () const |
Returns QMenu adaptee. | |
virtual QAction * | qAction () |
Static Public Member Functions | |
static jlong | newInstance (JNIEnv *env, jobject obj) |
Returns new instance of the bridge object. | |
Protected Member Functions | |
JQMenuBridge (JNIEnv *env, jobject obj) | |
Constructs new JQMenuBridge object. |
JQMenuBridge::JQMenuBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
void JQMenuBridge::setText | ( | JNIEnv * | env, | |
jstring | text | |||
) | [slot] |
Sets menu text.
env | the JNIEnv pointer | |
text | the text |
void JQMenuBridge::insertChild | ( | JNIEnv * | env, | |
jlong | childBridge, | |||
jint | index | |||
) | [slot] |
Inserts child.
env | the JNIEnv pointer | |
childBridge | the child pointer | |
index | the menu item index |
Reimplemented from JQContainerBridge.
void JQMenuBridge::removeChild | ( | JNIEnv * | env, | |
jlong | childBridge | |||
) | [slot] |
Removes child.
env | the JNIEnv pointer | |
childBridge | the child pointer |
Reimplemented from JQContainerBridge.
void JQMenuBridge::show | ( | JNIEnv * | env, | |
jint | x, | |||
jint | y | |||
) | [slot] |
Displays menu at specified location.
env | the JNIEnv pointer | |
x | the x coordinate of the location | |
y | the y coordinate of the location |
jlong JQMenuBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQContainerBridge.
QMenu * JQMenuBridge::qMenu | ( | ) | const [inline] |
Returns QMenu adaptee.
QAction * JQMenuBridge::qAction | ( | ) | [virtual] |