JQDesktopPaneBridge Class Reference

JQDesktopPane Bridge. More...

#include <JQDesktopPaneBridge.h>

Inheritance diagram for JQDesktopPaneBridge:

JQContainerBridge JQComponentBridge QObjectBridge

List of all members.

Public Slots

void insertChild (JNIEnv *env, jlong childBridge, jint index)
 Inserts child.
void removeChild (JNIEnv *env, jlong childBridge)
 Removes the specified child.
void setCurrentComponent (JNIEnv *env, jlong componentBridge)
 Sets current component.
void selectNextComponent (JNIEnv *env)
 Selects next comopnent.
void selectPreviousComponent (JNIEnv *env)
 Selects previous component.
void closeCurrentComponent (JNIEnv *env)
 Closes the current component.
void closeAllComponents (JNIEnv *env)
 Closes all components.
void cascadeComponents (JNIEnv *env)
 Cascades the components.
void tileComponents (JNIEnv *env)
 Tiles the components.

Public Member Functions

void activeComponentChanged (jobject component)
 Calls activeComponentChanged method of the desktop pane object.
virtual jobject getBackground (JNIEnv *env, jclass colorClass)
virtual void setBackground (JNIEnv *env, jint argb)
virtual void setNullBackground (JNIEnv *env)
QMdiArea * qMdiArea () const
 Returns QMdiArea adaptee.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls)
 Initializes JQDesktopPaneBridge class.
static jlong newInstance (JNIEnv *env, jobject obj)
 Returns new instance of the bridge object.

Protected Slots

void subWindowActivatedSlot (QMdiSubWindow *window)
 Sub window activated slot.

Protected Member Functions

 JQDesktopPaneBridge (JNIEnv *env, jobject obj)
 Constructs new JQDesktopPaneBridge object.


Detailed Description

JQDesktopPane Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQDesktopPaneBridge object.

Parameters:
env the JNIEnv pointer
obj the JQDesktopPane object


Member Function Documentation

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

Inserts child.

Parameters:
env the JNIEnv pointer
childBridge the child pointer
index the child index

Reimplemented from JQContainerBridge.

void JQDesktopPaneBridge::removeChild ( JNIEnv *  env,
jlong  childBridge 
) [slot]

Removes the specified child.

Parameters:
env the JNIEnv pointer
childBridge the child bridge pointer

Reimplemented from JQContainerBridge.

void JQDesktopPaneBridge::setCurrentComponent ( JNIEnv *  env,
jlong  componentBridge 
) [slot]

Sets current component.

Parameters:
env the JNIEnv pointer
componentBridge the component bridge pointer

void JQDesktopPaneBridge::selectNextComponent ( JNIEnv *  env  )  [slot]

Selects next comopnent.

Parameters:
env the JNIEnv pointer

void JQDesktopPaneBridge::selectPreviousComponent ( JNIEnv *  env  )  [slot]

Selects previous component.

Parameters:
env the JNIEnv pointer

void JQDesktopPaneBridge::closeCurrentComponent ( JNIEnv *  env  )  [slot]

Closes the current component.

Parameters:
env the JNIEnv pointer

void JQDesktopPaneBridge::closeAllComponents ( JNIEnv *  env  )  [slot]

Closes all components.

Parameters:
env the JNIEnv pointer

void JQDesktopPaneBridge::cascadeComponents ( JNIEnv *  env  )  [slot]

Cascades the components.

Parameters:
env the JNIEnv pointer

void JQDesktopPaneBridge::tileComponents ( JNIEnv *  env  )  [slot]

Tiles the components.

Parameters:
env the JNIEnv pointer

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

Initializes JQDesktopPaneBridge class.

Parameters:
env the JNIEnv pointer
cls the JQDesktopPane class
Exceptions:
FatalError if failed

Reimplemented from JQContainerBridge.

jlong JQDesktopPaneBridge::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.

void JQDesktopPaneBridge::activeComponentChanged ( jobject  component  ) 

Calls activeComponentChanged method of the desktop pane object.

Parameters:
component the component

jobject JQDesktopPaneBridge::getBackground ( JNIEnv *  env,
jclass  colorClass 
) [virtual]

Returns background color.

Parameters:
env the JNIEnv pointer
colorClass the java color class
Returns:
background color

Reimplemented from JQComponentBridge.

void JQDesktopPaneBridge::setBackground ( JNIEnv *  env,
jint  argb 
) [virtual]

Sets the background color.

Parameters:
env the JNIEnv pointer
argb the argb value of the color

Reimplemented from JQComponentBridge.

void JQDesktopPaneBridge::setNullBackground ( JNIEnv *  env  )  [virtual]

Sets the application default background color.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

QMdiArea * JQDesktopPaneBridge::qMdiArea (  )  const [inline]

Returns QMdiArea adaptee.

Returns:
QMdiArea adaptee

void JQDesktopPaneBridge::subWindowActivatedSlot ( QMdiSubWindow *  window  )  [protected, slot]

Sub window activated slot.

Parameters:
window the activated window


Copyright © 2007 ETF and contributors. All Rights Reserved.