JQTextPaneBridge Class Reference

JQTextPane Bridge. More...

#include <JQTextPaneBridge.h>

Inheritance diagram for JQTextPaneBridge:

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)
 Paint component view.
QTextPaneqTextPane () const
 Returns QTextPane adaptee.
virtual void setDocument (JNIEnv *env, jobject document)
 Sets document.
virtual void setEditable (JNIEnv *env, jboolean editable)
 Sets whether or not text pane 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 JQTextPaneBridge class.
static jlong newInstance (JNIEnv *env, jobject obj)
 Returns new instance of the bridge object.

Protected Member Functions

 JQTextPaneBridge (JNIEnv *env, jobject obj)
 Constructs new JQTextPaneBridge object.
virtual void filterEnabledEvents ()


Detailed Description

JQTextPane Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQTextPaneBridge object.

Parameters:
env the JNIEnv pointer
obj the JQTextPane object


Member Function Documentation

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

Sets text wrapping mode.

Parameters:
env the JNIEnv pointer
textWrap true if wrapping text

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

Paints default component view.

Parameters:
env the JNIEnv pointer
graphicsPointer the QSwingGraphics pointer

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

Initializes JQTextPaneBridge class.

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

Reimplemented from JQTextComponentBridge.

jlong JQTextPaneBridge::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 JQTextPaneBridge::paintView ( jlong  graphicsPointer,
jint  x,
jint  y,
jint  width,
jint  height 
)

Paint 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

QTextPane * JQTextPaneBridge::qTextPane (  )  const [inline]

Returns QTextPane adaptee.

Returns:
QTextPane adaptee

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

Sets document.

Parameters:
env the JNIEnv pointer
document the new document

Implements JQTextComponentBridge.

void JQTextPaneBridge::setEditable ( JNIEnv *  env,
jboolean  editable 
) [virtual]

Sets whether or not text pane is editable.

Parameters:
env the JNIEnv pointer
editable true if editable

Implements JQTextComponentBridge.

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

Inserts text.

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

Implements JQTextComponentBridge.

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

Cuts selected text.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

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

Paste text form the system clipboard.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

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

Clears selected text.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

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

Selects all text.

Parameters:
env the JNIEnv pointer

Implements JQTextComponentBridge.

jobject JQTextPaneBridge::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 JQTextPaneBridge::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 JQTextPaneBridge::setNullBackground ( JNIEnv *  env  )  [virtual]

Sets the application default background color.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

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

Returns current cursor.

Parameters:
env the JNIEnv pointer
Returns:
current cursor

Reimplemented from JQComponentBridge.

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

Sets cursor.

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

Reimplemented from JQComponentBridge.

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

Filters enabled events..

Reimplemented from JQComponentBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.