JQMenuBridge Class Reference

JQMenu Bridge. More...

#include <JQMenuBridge.h>

Inheritance diagram for JQMenuBridge:

JQContainerBridge JQComponentBridge QObjectBridge

List of all members.

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.


Detailed Description

JQMenu Bridge.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

JQMenuBridge::JQMenuBridge ( JNIEnv *  env,
jobject  obj 
) [protected]

Constructs new JQMenuBridge object.

Parameters:
env the JNIEnv pointer
obj the QSwing JQMenu object


Member Function Documentation

void JQMenuBridge::setText ( JNIEnv *  env,
jstring  text 
) [slot]

Sets menu text.

Parameters:
env the JNIEnv pointer
text the text

void JQMenuBridge::insertChild ( JNIEnv *  env,
jlong  childBridge,
jint  index 
) [slot]

Inserts child.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
env the JNIEnv pointer
obj the QSwing object
Returns:
new instance of the bridge object

Reimplemented from JQContainerBridge.

QMenu * JQMenuBridge::qMenu (  )  const [inline]

Returns QMenu adaptee.

Returns:
QMenu adaptee

QAction * JQMenuBridge::qAction (  )  [virtual]

Returns widget action.

Returns:
widget action

Reimplemented from JQComponentBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.