#include <JQTextAreaBridge.h>
Public Slots | ||||
void | setWrapText (JNIEnv *env, jboolean textWrap) | |||
Sets text wrapping mode. | ||||
void | paintComponentView (JNIEnv *env, jlong graphicsPointer) | |||
Paints default component view. | ||||
Public Member Functions | ||||
void | paintView (jlong graphicsPointer, jint x, jint y, jint width, jint height) | |||
Paints component view. | ||||
QTextArea * | qTextArea () const | |||
Returns QTextArea adaptee. | ||||
virtual void | setDocument (JNIEnv *env, jobject document) | |||
Sets document. | ||||
virtual void | setEditable (JNIEnv *env, jboolean editable) | |||
Sets whether or not text area is editable. | ||||
virtual void | insertText (JNIEnv *env, jstring text) | |||
Inserts text. | ||||
virtual void | cut (JNIEnv *env) | |||
Cuts selected text. | ||||
virtual void | copy (JNIEnv *env) | |||
| ||||
virtual void | paste (JNIEnv *env) | |||
Paste text form the system clipboard. | ||||
virtual void | clear (JNIEnv *env) | |||
Clears selected text. | ||||
virtual void | selectAll (JNIEnv *env) | |||
Selects all text. | ||||
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) | |||
Initializes JQTextAreaBridge class. | ||||
static jlong | newInstance (JNIEnv *env, jobject obj) | |||
Returns new instance of the bridge object. | ||||
Protected Member Functions | ||||
JQTextAreaBridge (JNIEnv *env, jobject obj) | ||||
Constructs new JQTextAreaBridge object. | ||||
virtual void | filterEnabledEvents () |
JQTextAreaBridge::JQTextAreaBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
Constructs new JQTextAreaBridge object.
env | the JNIEnv pointer | |
obj | the JQTextArea object. |
void JQTextAreaBridge::setWrapText | ( | JNIEnv * | env, | |
jboolean | textWrap | |||
) | [slot] |
Sets text wrapping mode.
env | the JNIEnv pointer | |
textWrap | true if wrapping text |
void JQTextAreaBridge::paintComponentView | ( | JNIEnv * | env, | |
jlong | graphicsPointer | |||
) | [slot] |
Paints default component view.
env | the JNIEnv pointer | |
graphicsPointer | the QSwingGraphics pointer |
void JQTextAreaBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes JQTextAreaBridge class.
env | the JNIEnv pointer | |
cls | the JQTextArea class |
FatalError | if failed |
Reimplemented from JQTextComponentBridge.
jlong JQTextAreaBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQComponentBridge.
void JQTextAreaBridge::paintView | ( | jlong | graphicsPointer, | |
jint | x, | |||
jint | y, | |||
jint | width, | |||
jint | height | |||
) |
Paints component view.
graphicsPointer | the graphics pointer | |
x | the x-coordinate of the view | |
y | the y-coordinate of the view | |
width | width the width of the view | |
height | height the height of the view |
QTextArea * JQTextAreaBridge::qTextArea | ( | ) | const [inline] |
void JQTextAreaBridge::setDocument | ( | JNIEnv * | env, | |
jobject | document | |||
) | [virtual] |
Sets document.
env | the JNIEnv pointer | |
document | the new document |
Implements JQTextComponentBridge.
void JQTextAreaBridge::setEditable | ( | JNIEnv * | env, | |
jboolean | editable | |||
) | [virtual] |
Sets whether or not text area is editable.
env | the JNIEnv pointer | |
editable | true if editable |
Implements JQTextComponentBridge.
void JQTextAreaBridge::insertText | ( | JNIEnv * | env, | |
jstring | text | |||
) | [virtual] |
Inserts text.
env | the JNIEnv pointer | |
text | text the text to be inserted |
Implements JQTextComponentBridge.
void JQTextAreaBridge::cut | ( | JNIEnv * | env | ) | [virtual] |
void JQTextAreaBridge::paste | ( | JNIEnv * | env | ) | [virtual] |
Paste text form the system clipboard.
env | the JNIEnv pointer |
Implements JQTextComponentBridge.
void JQTextAreaBridge::clear | ( | JNIEnv * | env | ) | [virtual] |
void JQTextAreaBridge::selectAll | ( | JNIEnv * | env | ) | [virtual] |
jobject JQTextAreaBridge::getBackground | ( | JNIEnv * | env, | |
jclass | colorClass | |||
) | [virtual] |
Returns background color.
env | the JNIEnv pointer | |
colorClass | the java color class |
Reimplemented from JQComponentBridge.
void JQTextAreaBridge::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 JQTextAreaBridge::setNullBackground | ( | JNIEnv * | env | ) | [virtual] |
Sets the application default background color.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
jint JQTextAreaBridge::getCursor | ( | JNIEnv * | env | ) | [virtual] |
Returns current cursor.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
void JQTextAreaBridge::setCursor | ( | JNIEnv * | env, | |
jint | type | |||
) | [virtual] |
Sets cursor.
env | the JNIEnv pointer | |
type | the type of the cursor |
Reimplemented from JQComponentBridge.
void JQTextAreaBridge::filterEnabledEvents | ( | ) | [protected, virtual] |
Filters enabled events..
Reimplemented from JQComponentBridge.