#include <JQWindowBridge.h>
Public Slots | |
void | setWindowType (JNIEnv *env, jint windowType) |
Sets window type. | |
void | setTitle (JNIEnv *env, jstring title) |
Sets window title. | |
void | setIconImage (JNIEnv *env, jlong imagePointer) |
Sets window icon. | |
void | setIconImage (JNIEnv *env, jbyteArray imageData, jint length) |
Sets window icon. | |
void | setOpacity (JNIEnv *env, jdouble opacity) |
Sets window opacity. | |
void | setAcceptClose (JNIEnv *env, jboolean accept) |
Sets whether or not the window can be closed. | |
void | setModality (JNIEnv *env, jint modality) |
Sets window modality. | |
void | setState (JNIEnv *env, jint state) |
Sets window state. | |
void | setAlwaysOnTop (JNIEnv *env, jboolean alwaysOnTop) |
Sets whether or not the window is always on top. | |
void | setLocationRelativeTo (JNIEnv *env, jlong windowBridge) |
Sets window location relative to the specified window. | |
void | toFront (JNIEnv *env) |
Brings the window to front. | |
void | toBack (JNIEnv *env) |
Moves the window to back. | |
void | setBorderDecoration (JNIEnv *env, jint borderDecoration) |
Sets border decoration. | |
Public Member Functions | |
void | windowOpened () |
Calls windowOpened method of the JQComponent object. | |
void | windowClosing () |
Calls windowClosing method of the JQComponent object. | |
void | windowClosed () |
Calls windowClosed method of the JQComponent object. | |
void | windowActivated () |
Calls windowActivated method of the JQComponent object. | |
void | windowDeactivated () |
Calls windowDeactivated method of the JQComponent object. | |
void | windowGainedFocus () |
Calls windowGainedFocus method of the JQComponent object. | |
void | windowLostFocus () |
Calls windowLostFocus method of the JQComponent object. | |
void | windowStateChanged (jint oldState, jint newState) |
Calls windowStateChanged method of the JQComponent object. | |
virtual void | showWindow (JNIEnv *env) |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes JQWindowBridge class. | |
static jboolean | opacitySupported (JNIEnv *env, jclass cls) |
Returns true if the system supports window opacity. | |
static jboolean | alwaysOnTopSupported (JNIEnv *env, jclass cls) |
Returns true if the system supports always on top windows. | |
static jboolean | fullScreenSupported (JNIEnv *env, jclass cls) |
Returns true if the system supports full screen windows. | |
static jboolean | windowShapeSupported (JNIEnv *env, jclass cls) |
true if the system supports non-rectangular windows. | |
static jobjectArray | getWindows (JNIEnv *env, jclass cls) |
Returns all non deleted windows. | |
static jobject | getActiveWindow (JNIEnv *env, jclass cls) |
Returns active window. | |
static void | setWindowOwner (JNIEnv *env, jclass cls, jlong windowBridge, jlong ownerBridge) |
Sets the owner of the specified window. | |
static jlong | newInstance (JNIEnv *env, jobject obj) |
Returns new instance of the bridge object. | |
Protected Member Functions | |
JQWindowBridge (JNIEnv *env, jobject obj, QWidget *widget) | |
Constructs new JQWindowBridge object. | |
JQWindowBridge (JNIEnv *env, jobject obj) | |
Constructs new JQWindowBridge object. | |
virtual | ~JQWindowBridge () |
Destructs JQWindowBridge object. | |
jint | converWindowState (Qt::WindowStates states) |
virtual bool | filterEvent (QObject *obj, QEvent *e) |
JQWindowBridge::JQWindowBridge | ( | JNIEnv * | env, | |
jobject | obj, | |||
QWidget * | widget | |||
) | [protected] |
Constructs new JQWindowBridge object.
env | the JNIEnv pointer | |
obj | the JQWindow object | |
widget | the window widget |
JQWindowBridge::JQWindowBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
void JQWindowBridge::setWindowType | ( | JNIEnv * | env, | |
jint | windowType | |||
) | [slot] |
Sets window type.
env | the JNIEnv pointer | |
windowType | the window type |
void JQWindowBridge::setTitle | ( | JNIEnv * | env, | |
jstring | title | |||
) | [slot] |
Sets window title.
env | the JNIEnv pointer | |
title | the title |
void JQWindowBridge::setIconImage | ( | JNIEnv * | env, | |
jlong | imagePointer | |||
) | [slot] |
Sets window icon.
env | the JNIEnv pointer | |
imagePointer | the image pointer |
void JQWindowBridge::setIconImage | ( | JNIEnv * | env, | |
jbyteArray | imageData, | |||
jint | length | |||
) | [slot] |
Sets window icon.
env | the JNIEnv pointer | |
imageData | the image data | |
length | the image data length |
void JQWindowBridge::setOpacity | ( | JNIEnv * | env, | |
jdouble | opacity | |||
) | [slot] |
Sets window opacity.
env | the JNIEnv pointer | |
opacity | the opacity |
void JQWindowBridge::setAcceptClose | ( | JNIEnv * | env, | |
jboolean | accept | |||
) | [slot] |
Sets whether or not the window can be closed.
env | the JNIEnv pointer | |
accept | if true the window can be closed |
void JQWindowBridge::setModality | ( | JNIEnv * | env, | |
jint | modality | |||
) | [slot] |
Sets window modality.
env | the JNIEnv pointer | |
modality | the modality |
void JQWindowBridge::setState | ( | JNIEnv * | env, | |
jint | state | |||
) | [slot] |
Sets window state.
env | the JNIEnv pointer | |
state | the window state |
void JQWindowBridge::setAlwaysOnTop | ( | JNIEnv * | env, | |
jboolean | alwaysOnTop | |||
) | [slot] |
Sets whether or not the window is always on top.
env | the JNIEnv pointer | |
alwaysOnTop | if true the window is always on top |
void JQWindowBridge::setLocationRelativeTo | ( | JNIEnv * | env, | |
jlong | windowBridge | |||
) | [slot] |
Sets window location relative to the specified window.
env | the JNIEnv pointer | |
windowBridge | the referent window |
void JQWindowBridge::toFront | ( | JNIEnv * | env | ) | [slot] |
Brings the window to front.
env | the JNIEnv pointer |
void JQWindowBridge::toBack | ( | JNIEnv * | env | ) | [slot] |
Moves the window to back.
env | the JNIEnv pointer |
void JQWindowBridge::setBorderDecoration | ( | JNIEnv * | env, | |
jint | borderDecoration | |||
) | [slot] |
Sets border decoration.
env | the JNIEnv pointer | |
borderDecoration | the border decoration |
void JQWindowBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes JQWindowBridge class.
env | the JNIEnv pointer | |
cls | the JQWindow class |
FatalError | if failed |
Reimplemented from JQContainerBridge.
Reimplemented in JQInternalFrameBridge.
jboolean JQWindowBridge::opacitySupported | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Returns true
if the system supports window opacity.
env | the JNIEnv pointer | |
cls | the JQWindow class |
true
if the sitem supports window opacity jboolean JQWindowBridge::alwaysOnTopSupported | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Returns true
if the system supports always on top windows.
env | the JNIEnv pointer | |
cls | the JQWindow class |
true
if the system supports always on top windows jboolean JQWindowBridge::fullScreenSupported | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Returns true
if the system supports full screen windows.
env | the JNIEnv pointer | |
cls | the JQWindow class |
true
if the system supports full screen windows jboolean JQWindowBridge::windowShapeSupported | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
true
if the system supports non-rectangular windows.
env | the JNIEnv pointer | |
cls | the JQWindow class |
true
if the system supports non-rectangular windows jobjectArray JQWindowBridge::getWindows | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Returns all non deleted windows.
env | the JNIEnv pointer | |
cls | the JQWindow class |
jobject JQWindowBridge::getActiveWindow | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Returns active window.
void JQWindowBridge::setWindowOwner | ( | JNIEnv * | env, | |
jclass | cls, | |||
jlong | windowBridge, | |||
jlong | ownerBridge | |||
) | [static] |
Sets the owner of the specified window.
env | the JNIEnv pointer | |
cls | the JQWindow class | |
windowBridge | the window bridge pointer | |
ownerBridge | the owner bridge pointer |
jlong JQWindowBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQContainerBridge.
Reimplemented in JQDialogBridge, JQFrameBridge, JQInternalFrameBridge, JQToolWindowBridge, and SplashScreenBridge.
void JQWindowBridge::windowStateChanged | ( | jint | oldState, | |
jint | newState | |||
) |
Calls windowStateChanged method of the JQComponent object.
oldState | the old window state | |
newState | the new window state |
void JQWindowBridge::showWindow | ( | JNIEnv * | env | ) | [virtual] |
Shows QSwing object for the first time.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
bool JQWindowBridge::filterEvent | ( | QObject * | obj, | |
QEvent * | e | |||
) | [protected, virtual] |
Filters the specified event.
obj | the object | |
e | the event |
Reimplemented from JQComponentBridge.