JQWindowBridge Class Reference

JQWindow Bridge. More...

#include <JQWindowBridge.h>

Inheritance diagram for JQWindowBridge:

JQContainerBridge JQComponentBridge QObjectBridge JQDialogBridge JQFrameBridge JQInternalFrameBridge JQToolWindowBridge SplashScreenBridge

List of all members.

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)


Detailed Description

JQWindow Bridge.

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

Constructor & Destructor Documentation

JQWindowBridge::JQWindowBridge ( JNIEnv *  env,
jobject  obj,
QWidget *  widget 
) [protected]

Constructs new JQWindowBridge object.

Parameters:
env the JNIEnv pointer
obj the JQWindow object
widget the window widget

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

Constructs new JQWindowBridge object.

Parameters:
env the JNIEnv pointer
obj the JQWindow object


Member Function Documentation

void JQWindowBridge::setWindowType ( JNIEnv *  env,
jint  windowType 
) [slot]

Sets window type.

Parameters:
env the JNIEnv pointer
windowType the window type

void JQWindowBridge::setTitle ( JNIEnv *  env,
jstring  title 
) [slot]

Sets window title.

Parameters:
env the JNIEnv pointer
title the title

void JQWindowBridge::setIconImage ( JNIEnv *  env,
jlong  imagePointer 
) [slot]

Sets window icon.

Parameters:
env the JNIEnv pointer
imagePointer the image pointer

void JQWindowBridge::setIconImage ( JNIEnv *  env,
jbyteArray  imageData,
jint  length 
) [slot]

Sets window icon.

Parameters:
env the JNIEnv pointer
imageData the image data
length the image data length

void JQWindowBridge::setOpacity ( JNIEnv *  env,
jdouble  opacity 
) [slot]

Sets window opacity.

Parameters:
env the JNIEnv pointer
opacity the opacity

void JQWindowBridge::setAcceptClose ( JNIEnv *  env,
jboolean  accept 
) [slot]

Sets whether or not the window can be closed.

Parameters:
env the JNIEnv pointer
accept if true the window can be closed

void JQWindowBridge::setModality ( JNIEnv *  env,
jint  modality 
) [slot]

Sets window modality.

Parameters:
env the JNIEnv pointer
modality the modality

void JQWindowBridge::setState ( JNIEnv *  env,
jint  state 
) [slot]

Sets window state.

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

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

Parameters:
env the JNIEnv pointer
windowBridge the referent window

void JQWindowBridge::toFront ( JNIEnv *  env  )  [slot]

Brings the window to front.

Parameters:
env the JNIEnv pointer

void JQWindowBridge::toBack ( JNIEnv *  env  )  [slot]

Moves the window to back.

Parameters:
env the JNIEnv pointer

void JQWindowBridge::setBorderDecoration ( JNIEnv *  env,
jint  borderDecoration 
) [slot]

Sets border decoration.

Parameters:
env the JNIEnv pointer
borderDecoration the border decoration

void JQWindowBridge::initialize ( JNIEnv *  env,
jclass  cls 
) [static]

Initializes JQWindowBridge class.

Parameters:
env the JNIEnv pointer
cls the JQWindow class
Exceptions:
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.

Parameters:
env the JNIEnv pointer
cls the JQWindow class
Returns:
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.

Parameters:
env the JNIEnv pointer
cls the JQWindow class
Returns:
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.

Parameters:
env the JNIEnv pointer
cls the JQWindow class
Returns:
true if the system supports full screen windows

jboolean JQWindowBridge::windowShapeSupported ( JNIEnv *  env,
jclass  cls 
) [static]

true if the system supports non-rectangular windows.

Parameters:
env the JNIEnv pointer
cls the JQWindow class
Returns:
true if the system supports non-rectangular windows

jobjectArray JQWindowBridge::getWindows ( JNIEnv *  env,
jclass  cls 
) [static]

Returns all non deleted windows.

Parameters:
env the JNIEnv pointer
cls the JQWindow class
Returns:
all non deleted windows

jobject JQWindowBridge::getActiveWindow ( JNIEnv *  env,
jclass  cls 
) [static]

Returns active window.

Returns:
active window

void JQWindowBridge::setWindowOwner ( JNIEnv *  env,
jclass  cls,
jlong  windowBridge,
jlong  ownerBridge 
) [static]

Sets the owner of the specified window.

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

Parameters:
env the JNIEnv pointer
obj the QSwing object
Returns:
new instance of the bridge 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.

Parameters:
oldState the old window state
newState the new window state

void JQWindowBridge::showWindow ( JNIEnv *  env  )  [virtual]

Shows QSwing object for the first time.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

bool JQWindowBridge::filterEvent ( QObject *  obj,
QEvent *  e 
) [protected, virtual]

Filters the specified event.

Parameters:
obj the object
e the event

Reimplemented from JQComponentBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.