#include <JQTreeBridge.h>
Public Member Functions | |
void | createIcon (JNIEnv *env, jobject iconSet) |
Creates icon. | |
void | setUseModel (JNIEnv *env, jboolean useModel) |
Sets whether or not the tree is using tree model. | |
jobject | getRootNode () |
Returns root node. | |
void | nodeSelected (jobject node) |
Calls nodeSelected method of the tree object. | |
jboolean | setNodeIcon (jobject node) |
Calls setNodeIcon method of the tree object. | |
QIcon * | getNodeIcon (jobject node) |
Returns the icon for the specified node. | |
QTreeViewAdapter * | qTreeView () const |
Returns QTreeViewAdapter adaptee. | |
virtual jobject | getBackground (JNIEnv *env, jclass colorClass) |
virtual void | setBackground (JNIEnv *env, jint argb) |
virtual void | setNullBackground (JNIEnv *env) |
virtual jint | getCursor (JNIEnv *env) |
virtual void | setCursor (JNIEnv *env, jint type) |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls, jclass treeNodeClass) |
Initializes the JQTreeBridge class. | |
static jlong | newInstance (JNIEnv *env, jobject obj) |
Returns new instance of the bridge object. | |
Protected Slots | |
void | selectionChangedSlot (const QItemSelection &selected, const QItemSelection &deselected) |
selectionChanged slot. | |
Protected Member Functions | |
JQTreeBridge (JNIEnv *env, jobject obj) | |
Constructs new JQTreeBridge object. | |
virtual | ~JQTreeBridge () |
Destructs JQTreeBridge object. |
JQTreeBridge::JQTreeBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
void JQTreeBridge::createIcon | ( | JNIEnv * | env, | |
jobject | iconSet | |||
) |
Creates icon.
env | the JNIEnv pointer | |
iconSet | the icon set |
void JQTreeBridge::setUseModel | ( | JNIEnv * | env, | |
jboolean | useModel | |||
) |
Sets whether or not the tree is using tree model.
env | the JNIEnv pointer | |
useModel | true if using |
void JQTreeBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls, | |||
jclass | treeNodeClass | |||
) | [static] |
Initializes the JQTreeBridge class.
env | the JNIEnv pointer | |
cls | the JQTree class | |
treeNodeClass | the ThreeNode class |
FatalError | if failed |
jlong JQTreeBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQComponentBridge.
jobject JQTreeBridge::getRootNode | ( | ) |
Returns root node.
void JQTreeBridge::nodeSelected | ( | jobject | node | ) |
Calls nodeSelected
method of the tree object.
node | the node |
jboolean JQTreeBridge::setNodeIcon | ( | jobject | node | ) |
Calls setNodeIcon
method of the tree object.
node | the node |
QIcon * JQTreeBridge::getNodeIcon | ( | jobject | node | ) |
Returns the icon for the specified node.
node | the node |
QTreeViewAdapter * JQTreeBridge::qTreeView | ( | ) | const [inline] |
jobject JQTreeBridge::getBackground | ( | JNIEnv * | env, | |
jclass | colorClass | |||
) | [virtual] |
Returns background color.
env | the JNIEnv pointer | |
colorClass | the java color class |
Reimplemented from JQComponentBridge.
void JQTreeBridge::setBackground | ( | JNIEnv * | env, | |
jint | argb | |||
) | [virtual] |
Sets the background color.
env | the JNIEnv pointer | |
argb | the argb value of the color |
Reimplemented from JQComponentBridge.
void JQTreeBridge::setNullBackground | ( | JNIEnv * | env | ) | [virtual] |
Sets the application default background color.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
jint JQTreeBridge::getCursor | ( | JNIEnv * | env | ) | [virtual] |
Returns current cursor.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
void JQTreeBridge::setCursor | ( | JNIEnv * | env, | |
jint | type | |||
) | [virtual] |
Sets cursor.
env | the JNIEnv pointer | |
type | the type of the cursor |
Reimplemented from JQComponentBridge.
void JQTreeBridge::selectionChangedSlot | ( | const QItemSelection & | selected, | |
const QItemSelection & | deselected | |||
) | [protected, slot] |
selectionChanged
slot.
selected | the selected item | |
deselected | the deselected item |