#include <JQLabelBridge.h>
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 | |
QLabelAdapter * | qLabelAdapter () 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. |
JQLabelBridge::JQLabelBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
void JQLabelBridge::setText | ( | JNIEnv * | env, | |
jstring | text | |||
) | [slot] |
Sets label text.
env | the JNIEnv pointer | |
text | the text |
void JQLabelBridge::setTextFormat | ( | JNIEnv * | env, | |
jint | textFormat | |||
) | [slot] |
Sets text format.
env | the JNIEnv pointer | |
textFormat | the text format |
void JQLabelBridge::setWordWrap | ( | JNIEnv * | env, | |
jboolean | wordWrap | |||
) | [slot] |
Sets text wrap status.
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.
env | the JNIEnv pointer | |
ha | the horizontal alignment | |
va | the vertical alignment |
void JQLabelBridge::setIcon | ( | JNIEnv * | env, | |
jobject | iconSet | |||
) | [slot] |
Sets the icon set.
env | the JNIEnv pointer | |
iconSet | the icon set |
void JQLabelBridge::setIconSize | ( | JNIEnv * | env, | |
jint | width, | |||
jint | height | |||
) | [slot] |
Sets icon size.
env | the JNIEnv pointer | |
width | the icon width | |
height | the icon height |
void JQLabelBridge::setBorderType | ( | JNIEnv * | env, | |
jint | borderType | |||
) | [slot] |
Sets border type.
env | the JNIEnv pointer | |
borderType | the border type |
void JQLabelBridge::setBorderStyle | ( | JNIEnv * | env, | |
jint | borderStyle | |||
) | [slot] |
Sets border style.
env | the JNIEnv pointer | |
borderStyle | the border style |
void JQLabelBridge::setBorderWidth | ( | JNIEnv * | env, | |
jint | borderWidth | |||
) | [slot] |
Sets border width.
env | the JNIEnv pointer | |
borderWidth | the border width |
void JQLabelBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes JQLabelBridge class.
env | the JNIEnv pointer | |
cls | the JQLabel class |
FatalError | if failed |
Reimplemented from JQComponentBridge.
jlong JQLabelBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQComponentBridge.
QLabelAdapter * JQLabelBridge::qLabelAdapter | ( | ) | const [inline] |
Returns QLabel adaptee.