JQTextAreaBridge Class Reference

JQTextArea Bridge. More...

#include <JQTextAreaBridge.h>

Inheritance diagram for JQTextAreaBridge:

JQTextComponentBridge JQComponentBridge QObjectBridge

List of all members.

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.
QTextAreaqTextArea () 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)
 
Parameters:
env the JNIEnv pointer

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 ()


Detailed Description

JQTextArea Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQTextAreaBridge object.

Parameters:
env the JNIEnv pointer
obj the JQTextArea object.


Member Function Documentation

void JQTextAreaBridge::setWrapText ( JNIEnv *  env,
jboolean  textWrap 
) [slot]

Sets text wrapping mode.

Parameters:
env the JNIEnv pointer
textWrap true if wrapping text

void JQTextAreaBridge::paintComponentView ( JNIEnv *  env,
jlong  graphicsPointer 
) [slot]

Paints default component view.

Parameters:
env the JNIEnv pointer
graphicsPointer the QSwingGraphics pointer

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

Initializes JQTextAreaBridge class.

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

Reimplemented from JQTextComponentBridge.

jlong JQTextAreaBridge::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.

void JQTextAreaBridge::paintView ( jlong  graphicsPointer,
jint  x,
jint  y,
jint  width,
jint  height 
)

Paints component view.

Parameters:
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]

Returns QTextArea adaptee.

Returns:
QTextArea adaptee

void JQTextAreaBridge::setDocument ( JNIEnv *  env,
jobject  document 
) [virtual]

Sets document.

Parameters:
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.

Parameters:
env the JNIEnv pointer
editable true if editable

Implements JQTextComponentBridge.

void JQTextAreaBridge::insertText ( JNIEnv *  env,
jstring  text 
) [virtual]

Inserts text.

Parameters:
env the JNIEnv pointer
text text the text to be inserted

Implements JQTextComponentBridge.

void JQTextAreaBridge::cut ( JNIEnv *  env  )  [virtual]

Cuts selected text.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

void JQTextAreaBridge::paste ( JNIEnv *  env  )  [virtual]

Paste text form the system clipboard.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

void JQTextAreaBridge::clear ( JNIEnv *  env  )  [virtual]

Clears selected text.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

void JQTextAreaBridge::selectAll ( JNIEnv *  env  )  [virtual]

Selects all text.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

jobject JQTextAreaBridge::getBackground ( JNIEnv *  env,
jclass  colorClass 
) [virtual]

Returns background color.

Parameters:
env the JNIEnv pointer
colorClass the java color class
Returns:
background color

Reimplemented from JQComponentBridge.

void JQTextAreaBridge::setBackground ( JNIEnv *  env,
jint  argb 
) [virtual]

Sets the background color.

Parameters:
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.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

jint JQTextAreaBridge::getCursor ( JNIEnv *  env  )  [virtual]

Returns current cursor.

Parameters:
env the JNIEnv pointer
Returns:
current cursor

Reimplemented from JQComponentBridge.

void JQTextAreaBridge::setCursor ( JNIEnv *  env,
jint  type 
) [virtual]

Sets cursor.

Parameters:
env the JNIEnv pointer
type the type of the cursor

Reimplemented from JQComponentBridge.

void JQTextAreaBridge::filterEnabledEvents (  )  [protected, virtual]

Filters enabled events..

Reimplemented from JQComponentBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.