JQLabelBridge Class Reference

JQLabel Bridge. More...

#include <JQLabelBridge.h>

Inheritance diagram for JQLabelBridge:

JQComponentBridge QObjectBridge

List of all members.

Public Slots

void setText (JNIEnv *env, jstring text)
 Sets label text.
void setTextFormat (JNIEnv *env, jint textFormat)
 Sets text format.
void setWordWrap (JNIEnv *env, jboolean wordWrap)
 Sets text wrap status.
void setAlignment (JNIEnv *env, jint ha, jint va)
 Sets text alignment.
void setIcon (JNIEnv *env, jobject iconSet)
 Sets the icon set.
void setIconSize (JNIEnv *env, jint width, jint height)
 Sets icon size.
void setBorderType (JNIEnv *env, jint borderType)
 Sets border type.
void setBorderStyle (JNIEnv *env, jint borderStyle)
 Sets border style.
void setBorderWidth (JNIEnv *env, jint borderWidth)
 Sets border width.

Public Member Functions

QLabelAdapterqLabelAdapter () const
 Returns QLabel adaptee.

Static Public Member Functions

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

Protected Member Functions

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


Detailed Description

JQLabel Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQLabelBridge object.

Parameters:
env the JNIEnv pointer
obj the JQLabel object


Member Function Documentation

void JQLabelBridge::setText ( JNIEnv *  env,
jstring  text 
) [slot]

Sets label text.

Parameters:
env the JNIEnv pointer
text the text

void JQLabelBridge::setTextFormat ( JNIEnv *  env,
jint  textFormat 
) [slot]

Sets text format.

Parameters:
env the JNIEnv pointer
textFormat the text format

void JQLabelBridge::setWordWrap ( JNIEnv *  env,
jboolean  wordWrap 
) [slot]

Sets text wrap status.

Parameters:
env the JNIEnv pointer
wordWrap if true the label will wrap the text

void JQLabelBridge::setAlignment ( JNIEnv *  env,
jint  ha,
jint  va 
) [slot]

Sets text alignment.

Parameters:
env the JNIEnv pointer
ha the horizontal alignment
va the vertical alignment

void JQLabelBridge::setIcon ( JNIEnv *  env,
jobject  iconSet 
) [slot]

Sets the icon set.

Parameters:
env the JNIEnv pointer
iconSet the icon set

void JQLabelBridge::setIconSize ( JNIEnv *  env,
jint  width,
jint  height 
) [slot]

Sets icon size.

Parameters:
env the JNIEnv pointer
width the icon width
height the icon height

void JQLabelBridge::setBorderType ( JNIEnv *  env,
jint  borderType 
) [slot]

Sets border type.

Parameters:
env the JNIEnv pointer
borderType the border type

void JQLabelBridge::setBorderStyle ( JNIEnv *  env,
jint  borderStyle 
) [slot]

Sets border style.

Parameters:
env the JNIEnv pointer
borderStyle the border style

void JQLabelBridge::setBorderWidth ( JNIEnv *  env,
jint  borderWidth 
) [slot]

Sets border width.

Parameters:
env the JNIEnv pointer
borderWidth the border width

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

Initializes JQLabelBridge class.

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

Reimplemented from JQComponentBridge.

jlong JQLabelBridge::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 JQComponentBridge.

QLabelAdapter * JQLabelBridge::qLabelAdapter (  )  const [inline]

Returns QLabel adaptee.

Returns:
QLabel adaptee


Copyright © 2007 ETF and contributors. All Rights Reserved.