JQTabbedPaneBridge Class Reference

JQTabbedPane Bridge. More...

#include <JQTabbedPaneBridge.h>

Inheritance diagram for JQTabbedPaneBridge:

JQContainerBridge JQComponentBridge QObjectBridge

List of all members.

Public Slots

void insertTab (JNIEnv *env, jlong tabBridge, jint index, jstring title)
 Inserts tab at specified position.
void removeChild (JNIEnv *env, jlong childBridge)
 Removes the specified child.
void setTabPlacement (JNIEnv *env, jint tabPlacement)
 Sets tab placement.
void setTabEnabled (JNIEnv *env, jint index, jboolean enabled)
 Enables/disables the specified tab.
void setTabTitleText (JNIEnv *env, jint index, jstring titleText)
 Sets tab title.
void setTabToolTipText (JNIEnv *env, jint index, jstring toolTipText)
 Sets tooltip of the specified tab.
void setTabWhatsThisText (JNIEnv *env, jint index, jstring whatsThisText)
 Sets what's this text of the specified tab.
void setTabIcon (JNIEnv *env, jint index, jobject iconSet)
 Sets tab icon.
void setCurrentIndex (JNIEnv *env, jint index)
 Sets currently selected tab index.

Public Member Functions

void currentChanged (jint selectedIndex)
 Calls currentChanged method of the tabbed pan object.
QTabWidget * qTabWidget () const
 Returns QTabWidget adaptee.

Static Public Member Functions

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

Protected Slots

void currentChangedSlot (int index)
 currentChanged slot.

Protected Member Functions

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


Detailed Description

JQTabbedPane Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQTabbedPaneBridge object.

Parameters:
env the JNIEnv pointer
obj JQTabbedPane object


Member Function Documentation

void JQTabbedPaneBridge::insertTab ( JNIEnv *  env,
jlong  tabBridge,
jint  index,
jstring  title 
) [slot]

Inserts tab at specified position.

Parameters:
env the JNIEnv pointer
tabBridge the tab brige pointer
index the index
title the tab title

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

Removes the specified child.

Parameters:
env the JNIEnv pointer
childBridge the child bridge pointer

Reimplemented from JQContainerBridge.

void JQTabbedPaneBridge::setTabPlacement ( JNIEnv *  env,
jint  tabPlacement 
) [slot]

Sets tab placement.

Parameters:
env the JNIEnv pointer
tabPlacement the tab placement

void JQTabbedPaneBridge::setTabEnabled ( JNIEnv *  env,
jint  index,
jboolean  enabled 
) [slot]

Enables/disables the specified tab.

Parameters:
env the JNIEnv pointer
index the tab index
enabled true if enabled

void JQTabbedPaneBridge::setTabTitleText ( JNIEnv *  env,
jint  index,
jstring  titleText 
) [slot]

Sets tab title.

Parameters:
env the JNIEnv pointer
index the tab index
titleText the title text

void JQTabbedPaneBridge::setTabToolTipText ( JNIEnv *  env,
jint  index,
jstring  toolTipText 
) [slot]

Sets tooltip of the specified tab.

Parameters:
env the JNIEnv pointer
index the tab index
toolTipText the tool tip text

void JQTabbedPaneBridge::setTabWhatsThisText ( JNIEnv *  env,
jint  index,
jstring  whatsThisText 
) [slot]

Sets what's this text of the specified tab.

Parameters:
env the JNIEnv pointer
index the tab index
whatsThisText the what's this text

void JQTabbedPaneBridge::setTabIcon ( JNIEnv *  env,
jint  index,
jobject  iconSet 
) [slot]

Sets tab icon.

Parameters:
env the JNIEnv pointer
index the tab index
iconSet the tab icon

void JQTabbedPaneBridge::setCurrentIndex ( JNIEnv *  env,
jint  index 
) [slot]

Sets currently selected tab index.

Parameters:
env the JNIEnv pointer
index the index

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

Initializes JQTabbedPaneBridge class.

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

Reimplemented from JQContainerBridge.

jlong JQTabbedPaneBridge::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 JQTabbedPaneBridge::currentChanged ( jint  selectedIndex  ) 

Calls currentChanged method of the tabbed pan object.

Parameters:
selectedIndex the selected index

QTabWidget * JQTabbedPaneBridge::qTabWidget (  )  const [inline]

Returns QTabWidget adaptee.

Returns:
QTabWidget adaptee

void JQTabbedPaneBridge::currentChangedSlot ( int  index  )  [protected, slot]

currentChanged slot.

Parameters:
index the index


Copyright © 2007 ETF and contributors. All Rights Reserved.