#include <JQMenuItemBridge.h>
Public Slots | |
void | setText (JNIEnv *env, jstring text) |
Sets text. | |
void | setShortcut (JNIEnv *env, jstring shortcut) |
Sets short cut. | |
void | setIcon (JNIEnv *env, jobject iconSet) |
Sets icon. | |
Public Member Functions | |
void | actionTriggered (jint modifiers) |
Calls actionTriggered method of the JQMenuItemBridge object. | |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes JQMenuItemBridge class. | |
static jlong | newInstance (JNIEnv *env, jobject obj) |
Returns new instance of the bridge object. | |
Protected Slots | |
void | triggeredSlot () |
Triggered lot. | |
Protected Member Functions | |
JQMenuItemBridge (JNIEnv *env, jobject obj) | |
Constructs new JQMenuItemBridge object. | |
QLabelAdapter * | label () const |
Returns label data member. | |
virtual QWidget * | createQWidget () |
Creates QWidget adaptee. | |
virtual QAction * | createQAction () |
Creates QAction adaptee. | |
virtual void | deleteQWidget (QWidget *widget) |
virtual void | deleteQAction (QAction *action) |
virtual QWidget * | convertToQWidget (QAction *action) |
virtual QAction * | convertToQAction (QWidget *widget) |
JQMenuItemBridge::JQMenuItemBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
Constructs new JQMenuItemBridge object.
env | the JNIEnv pointer | |
obj | the JQMenuItem object |
void JQMenuItemBridge::setText | ( | JNIEnv * | env, | |
jstring | text | |||
) | [slot] |
Sets text.
env | the JNIEnv pointer | |
text | the text |
void JQMenuItemBridge::setShortcut | ( | JNIEnv * | env, | |
jstring | shortcut | |||
) | [slot] |
Sets short cut.
env | the JNIEnv pointer | |
shortcut | the shortcut |
void JQMenuItemBridge::setIcon | ( | JNIEnv * | env, | |
jobject | iconSet | |||
) | [slot] |
Sets icon.
env | the JNIEnv pointer | |
iconSet | the icon |
void JQMenuItemBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes JQMenuItemBridge class.
env | the JNIEnv pointer | |
cls | the JQMenuItem class |
FatalError | if failed |
Reimplemented from JQComponentBridge.
jlong JQMenuItemBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQComponentBridge.
void JQMenuItemBridge::actionTriggered | ( | jint | modifiers | ) |
QLabelAdapter * JQMenuItemBridge::label | ( | ) | const [inline, protected] |
Returns label data member.
QWidget * JQMenuItemBridge::createQWidget | ( | ) | [protected, virtual] |
QAction * JQMenuItemBridge::createQAction | ( | ) | [protected, virtual] |
void JQMenuItemBridge::deleteQWidget | ( | QWidget * | widget | ) | [protected, virtual] |
Deletes QWidget.
Reimplemented from JQActionComponentBridge.
void JQMenuItemBridge::deleteQAction | ( | QAction * | action | ) | [protected, virtual] |
Deletes QAction.
Reimplemented from JQActionComponentBridge.
QWidget * JQMenuItemBridge::convertToQWidget | ( | QAction * | action | ) | [protected, virtual] |
Converts QAction into QWidget.
Reimplemented from JQActionComponentBridge.
QAction * JQMenuItemBridge::convertToQAction | ( | QWidget * | widget | ) | [protected, virtual] |
Converts QWidget into QAction.
Reimplemented from JQActionComponentBridge.