QSwingUtilitiesBridge Class Reference

QSwingUtilities Bridge. More...

#include <QSwingUtilitiesBridge.h>

List of all members.

Signals

void invokeLaterSignal (jobject target)
void invokeAndWaitSignal (TargetFrame *targetFrame)
void invokeSafeAndWaitSignal (jobject safeTarget)
void invokeIntAndWaitSignal (IntMethodFrame *methodFrame)
void invokeLongAndWaitSignal (LongMethodFrame *methodFrame)

Static Public Member Functions

static void invokeLater (JNIEnv *env, jclass cls, jobject target)
 Invokes runnable target from the GUI loop.
static void invokeAndWait (JNIEnv *env, jclass cls, jobject target)
 Invokes runnable target from the GUI loop and waits until finish.
static void invokeSafeAndWait (JNIEnv *env, jclass cls, jobject safeTarget)
 Invokes "safe" runnable target from the GUI loop and waits until finish.
static void initialize (JNIEnv *env, jclass runnableClass, jclass iteClass)
 Initializes QSwingUtilitiesBridge class.
static jint invokeIntAndWait (JNIEnv *env, jobject obj, jmethodID mid,...)
 Invokes int method of the specifed object from the QSwing thread and waits until finish.
static jlong invokeLongAndWait (JNIEnv *env, jobject obj, jmethodID mid,...)
 Invokes long method of the specifed object from the QSwing thread and waits until finish.

Classes

struct  IntMethodFrame
struct  LongMethodFrame
struct  MethodFrame
struct  TargetFrame


Detailed Description

QSwingUtilities Bridge.

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

Member Function Documentation

void QSwingUtilitiesBridge::invokeLater ( JNIEnv *  env,
jclass  cls,
jobject  target 
) [static]

Invokes runnable target from the GUI loop.

Parameters:
env the JNIEnv pointer
cls the JavaQx QSwingUtilities class
target the runnable target object

void QSwingUtilitiesBridge::invokeAndWait ( JNIEnv *  env,
jclass  cls,
jobject  target 
) [static]

Invokes runnable target from the GUI loop and waits until finish.

Parameters:
env the JNIEnv pointer
cls the JavaQx QSwingUtilities class
target the runnable target object

void QSwingUtilitiesBridge::invokeSafeAndWait ( JNIEnv *  env,
jclass  cls,
jobject  safeTarget 
) [static]

Invokes "safe" runnable target from the GUI loop and waits until finish.

Parameters:
env the JNIEnv pointer
cls the JavaQx QSwingUtilities class
safeTarget the safe runnable target object

void QSwingUtilitiesBridge::initialize ( JNIEnv *  env,
jclass  runnableClass,
jclass  iteClass 
) [static]

Initializes QSwingUtilitiesBridge class.

Parameters:
env the JNIEnv pointer
runnableClass the Java Runnable class
iteClass the Java InvocationTargetException class

jint QSwingUtilitiesBridge::invokeIntAndWait ( JNIEnv *  env,
jobject  obj,
jmethodID  mid,
  ... 
) [static]

Invokes int method of the specifed object from the QSwing thread and waits until finish.

Parameters:
env the JNIEnv pointer
obj the JavaQx object
mid the method ID
... the method arguments
Returns:
method result

jlong QSwingUtilitiesBridge::invokeLongAndWait ( JNIEnv *  env,
jobject  obj,
jmethodID  mid,
  ... 
) [static]

Invokes long method of the specifed object from the QSwing thread and waits until finish.

Parameters:
env the JNIEnv pointer
obj the JavaQx object
mid the method ID
... the method arguments
Returns:
method result


Copyright © 2007 ETF and contributors. All Rights Reserved.