JQComponentBridge Class Reference

JQComponent Bridge. More...

#include <JQComponentBridge.h>

Inheritance diagram for JQComponentBridge:

QObjectBridge GLJQComponentBridge JQAbstractButtonBridge JQActionComponentBridge JQContainerBridge JQLabelBridge JQProgressBarBridge JQScrollBarBridge JQScrollPaneBridge JQSliderBridge JQSplitPaneBridge JQTextComponentBridge JQTextFieldBridge JQTreeBridge

List of all members.

Public Slots

virtual void setVisible (JNIEnv *env, jboolean visible)
 Shows/hides the QSwing object.
virtual void showWindow (JNIEnv *env)
 Shows QSwing object for the first time.
virtual void setEnabled (JNIEnv *env, jboolean enabled)
 Enables/disables the QSwing object.
virtual void setFocusable (JNIEnv *env, jboolean focusable)
 Sets focusable state of the component.
virtual void requestFocus (JNIEnv *env)
 Requests the focus.
virtual void setLocation (JNIEnv *env, jint x, jint y)
 Sets location of the component.
virtual jobject getPreferredSize (JNIEnv *env)
 Returns preferred size of the native widget.
virtual void setSize (JNIEnv *env, jint width, jint height)
 Sets size of the component.
virtual void setMaximumSize (JNIEnv *env, jint width, jint height)
 Sets component's maximum size.
virtual void setMinimumSize (JNIEnv *env, jint width, jint height)
 Sets component's minimum size.
virtual void setFixedSize (JNIEnv *env, jint width, jint height)
 Sets componenet's fixed size.
virtual void setBounds (JNIEnv *env, jint x, jint y, jint width, jint height)
 Sets component's bounds.
virtual jobject getBackground (JNIEnv *env, jclass colorClass)
 Returns background color.
virtual void setBackground (JNIEnv *env, jint argb)
 Sets the background color.
virtual void setNullBackground (JNIEnv *env)
 Sets the application default background color.
virtual jobject getForeground (JNIEnv *env, jclass colorClass)
 Returns foreground color.
virtual void setForeground (JNIEnv *env, jint argb)
 Sets the foreground color.
virtual void setNullForeground (JNIEnv *env)
 Sets the application default foreground color.
virtual void setOpaque (JNIEnv *env, jboolean opaque)
 Sets whether or not QSwing object paints all background.
virtual jobject getFont (JNIEnv *env, jclass fontClass)
 Returns font.
virtual void setFont (JNIEnv *env, jobject font)
 Sets the font.
virtual void setStyleSheet (JNIEnv *env, jstring styleSheetText)
 Sets style sheet.
virtual void setStyleSheetProperties (JNIEnv *env)
 Sets style sheet properties.
virtual void removeStyleSheetProperties (JNIEnv *env)
 Removes style sheet properties.
virtual jint getCursor (JNIEnv *env)
 Returns current cursor.
virtual void setCursor (JNIEnv *env, jint type)
 Sets cursor.
virtual void repaint (JNIEnv *env)
 Repaints the component.
virtual void repaint (JNIEnv *env, jint x, jint y, jint width, jint height)
 Repaints the component region.
virtual void update (JNIEnv *env)
 Updates the component.
virtual void update (JNIEnv *env, jint x, jint y, jint width, jint height)
 Updates the component region.
virtual void setUpdatesEnabled (JNIEnv *env, jboolean enabled)
 Enables/disables updates.
virtual void polish (JNIEnv *env)
 Polishes the component.
virtual void setComponentOrientation (JNIEnv *env, jint orientation)
 Sets the QSwing object orientation.
virtual void setToolTipText (JNIEnv *env, jstring text)
 Sets tool tip text.
virtual void setStatusTipText (JNIEnv *env, jstring text)
 Sets status tip text.
virtual void setWhatsThisText (JNIEnv *env, jstring text)
 Sets what's this text.
virtual void setEnabledEvents (JNIEnv *env, jlong events)
 Enables specified events.
virtual void paintComponent (JNIEnv *env, jlong graphicsBridge)
 Paints the component.

Public Member Functions

void visibleChanged (bool visible)
 Calls visibleChanged method of the JQComponent object.
void enabledChanged (bool enabled)
 Calls enabledChanged method of the JQComponent object.
void positionChanged (jint x, jint y)
 Calls positionChanged method of the JQComponent object.
void sizeChanged (jint width, jint height)
 Calls sizeChanged method of the JQComponent object.
void paint (jint x, jint y, jint width, jint height)
 Calls paint method of the JQComponent object.
void styleChanged ()
 Calls styleChanged method of the JQComponent object.
void styleSheetChanged (bool removed)
 Calls styleSheetChanged method of the JQComponent object.
void focusGained ()
 Calls focusGained method of the JQComponent object.
void focusLost ()
 Calls focusLost method of the JQComponent object.
void keyPressed (jint modifiers, jint keyCode, jchar keyChar)
 Calls keyPressed method of the JQComponent object.
void keyReleased (jint modifiers, jint keyCode, jchar keyChar)
 Calls keyReleased method of the JQComponent object.
void keyTyped (jint modifiers, jint keyCode, jchar keyChar)
 Calls keyTyped method of the JQComponent object.
void mouseEntered (jint button, jint modifiers, jint x, jint y)
 Calls mouseEntered method of the JQComponent object.
void mouseExited (jint button, jint modifiers, jint x, jint y)
 Calls mouseExited method of the JQComponent object.
void mousePressed (jint button, jint modifiers, jint x, jint y)
 Calls mousePressed method of the JQComponent object.
void mouseReleased (jint button, jint modifiers, jint x, jint y)
 Calls mouseReleased method of the JQComponent object.
void mouseClicked (jint button, jint modifiers, jint x, jint y)
 Calls mouseClicked method of the JQComponent object.
void mouseDoubleClicked (jint button, jint modifiers, jint x, jint y)
 Calls mouseDoubleClicked method of the JQComponent object.
void contextMenuTriggered (jint reason, jint modifiers, jint x, jint y, jint globalX, jint globalY)
 Calls contextMenuTriggered method of the JQComponent object.
void mouseMoved (jint button, jint modifiers, jint x, jint y)
 Calls mouseMoved method of the JQComponent object.
void mouseDragged (jint button, jint modifiers, jint x, jint y)
 Calls mouseDragged method of the JQComponent object.
void mouseWheelMoved (jint modifiers, jint x, jint y, jint wheelRotation)
 Calls mouseDragged method of the JQComponent object.
QSize getPreferredSize ()
 Returns preferred size of the QSwing component.
jstring getToolTipText (int x, int y)
 Returns tooltip for the specified location.
virtual void setParentBridge (JQContainerBridge *parentBridge)
 Sets parent bridge.
virtual QWidget * qWidget ()
 Returns QWidget.
virtual QAction * qAction ()
 Returns widget action.
bool eventFilterEnabled () const
 Returns true if filtering events.
void setEventFilterEnabled (bool enabled)
 Enables/disables event filter.
virtual void destroy (JNIEnv *env, bool notify=false)

Static Public Member Functions

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

Static Public Attributes

static const QVariant STYLE_SHEET_PROPERTY_VALUE

Protected Member Functions

 JQComponentBridge (JNIEnv *env, jobject obj, QWidget *widget)
 Constructs new JQComponentBridge object.
 JQComponentBridge (JNIEnv *env, jobject obj)
 Constructs new JQComponentBridge object.
virtual ~JQComponentBridge ()
 Destructs JQComponentBridge object.
virtual void widgetActionDeleted (QAction *action)
 Notifies bridge that an action is deleted.
virtual bool filterEvent (QObject *obj, QEvent *e)
 Filters the specified event.
virtual bool filterShowEvent (QObject *obj, QShowEvent *e)
 Filters show event.
virtual bool filterHideEvent (QObject *obj, QHideEvent *e)
 Filters hide event.
virtual bool filterEnabledChangeEvent (QObject *obj, QEvent *e)
 Filters enabled change event.
virtual bool filterStyleChangeEvent (QObject *obj, QEvent *e)
 Filters style change event.
virtual bool filterResizeEvent (QObject *obj, QResizeEvent *e)
 Filters resize event.
virtual bool filterMoveEvent (QObject *obj, QMoveEvent *e)
 Filters move event.
virtual bool filterFocusGainedEvent (QObject *obj, QFocusEvent *e)
 Filters focus gained event.
virtual bool filterFocusLostEvent (QObject *obj, QFocusEvent *e)
 Filters focus lost event.
virtual bool filterKeyPressedEvent (QObject *obj, QKeyEvent *e)
 Filters key pressed event.
virtual bool filterKeyReleasedEvent (QObject *obj, QKeyEvent *e)
 Filters key released event.
virtual bool filterKeyTypedEvent (QObject *obj, QKeyEvent *e)
 Filters key typed event.
virtual bool filterMouseEnterEvent (QObject *obj, QMouseEvent *e)
 Filters mouse enter event.
virtual bool filterMouseMoveEvent (QObject *obj, QMouseEvent *e)
 Filters mouse moved event.
virtual bool filterMouseLeaveEvent (QObject *obj, QMouseEvent *e)
 Filters mouse leave event.
virtual bool filterMousePressedEvent (QObject *obj, QMouseEvent *e)
 Filters mouse button pressed event.
virtual bool filterMouseReleasedEvent (QObject *obj, QMouseEvent *e)
 Filters mouse button released event.
virtual bool filterMouseClickedEvent (QObject *obj, QMouseEvent *e)
 Filters mouse button clicked event.
virtual bool filterMouseDoubleClickedEvent (QObject *obj, QMouseEvent *e)
 Filters mouse button double clicked event.
virtual bool filterMouseWheelEvent (QObject *obj, QWheelEvent *e)
 Filters mouse wheel event.
virtual bool filterToolTipEvent (QObject *obj, QHelpEvent *e)
 Filters tooltip event.
virtual bool filterWhatsThisEvent (QObject *obj, QHelpEvent *e)
 Filters what's this event.
virtual bool filterContextMenuEvent (QObject *obj, QContextMenuEvent *e)
 Filters context menu event.
virtual void filterEnabledEvents ()
 Filters enabled events.
virtual QWidget * paintingWidget ()
 Painting widget.
jlong enabledEvents () const
 Returns enabled events.
bool eventEnabled (jlong eventMask) const
 Tests if the specified event is enabled.
QEvent * currentEvent () const
 Returns current event.
int previousEventType () const
 Returns previous event type.
JQContainerBridgeparentBridge () const
 Returns parent bridge.
virtual jfieldID bridgePointerFID () const
 Returns bridge pointer FID.
virtual bool eventFilter (QObject *obj, QEvent *e)
 Filters events of the qObject.

Static Protected Member Functions

static jmethodID createMID ()
 Returns createMID.

Friends

class JQActionComponentBridge
class QWidgetActionAdapter


Detailed Description

JQComponent Bridge.

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

Constructor & Destructor Documentation

JQComponentBridge::JQComponentBridge ( JNIEnv *  env,
jobject  obj,
QWidget *  widget 
) [protected]

Constructs new JQComponentBridge object.

Parameters:
env the JNIEnv pointer
obj the QSwing object
widget the Qt widget

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

Constructs new JQComponentBridge object.

Parameters:
env the JNIEnv pointer
obj the java object


Member Function Documentation

void JQComponentBridge::setVisible ( JNIEnv *  env,
jboolean  visible 
) [virtual, slot]

Shows/hides the QSwing object.

Parameters:
env the JNIEnv pointer
visible if true the object will be shown

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::showWindow ( JNIEnv *  env  )  [virtual, slot]

Shows QSwing object for the first time.

Parameters:
env the JNIEnv pointer

Reimplemented in JQActionComponentBridge, and JQWindowBridge.

void JQComponentBridge::setEnabled ( JNIEnv *  env,
jboolean  enabled 
) [virtual, slot]

Enables/disables the QSwing object.

Parameters:
env the JNIEnv pointer
enabled if true the object will be enabled

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setFocusable ( JNIEnv *  env,
jboolean  focusable 
) [virtual, slot]

Sets focusable state of the component.

Parameters:
env the JNIEnv pointer
focusable the focusable state

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::requestFocus ( JNIEnv *  env  )  [virtual, slot]

Requests the focus.

Parameters:
env the JNIEnv pointer

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setLocation ( JNIEnv *  env,
jint  x,
jint  y 
) [virtual, slot]

Sets location of the component.

Parameters:
env the JNIEnv pointer
x the x coordinate of the location
y the y coordinate of the location

Reimplemented in JQActionComponentBridge.

jobject JQComponentBridge::getPreferredSize ( JNIEnv *  env  )  [virtual, slot]

Returns preferred size of the native widget.

Parameters:
env the JNIEnv pointer
Returns:
preferred size of the native widget

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setSize ( JNIEnv *  env,
jint  width,
jint  height 
) [virtual, slot]

Sets size of the component.

Parameters:
env the JNIEnv pointer
width the width of the component
height the height of the component

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setMaximumSize ( JNIEnv *  env,
jint  width,
jint  height 
) [virtual, slot]

Sets component's maximum size.

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

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setMinimumSize ( JNIEnv *  env,
jint  width,
jint  height 
) [virtual, slot]

Sets component's minimum size.

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

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setFixedSize ( JNIEnv *  env,
jint  width,
jint  height 
) [virtual, slot]

Sets componenet's fixed size.

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

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setBounds ( JNIEnv *  env,
jint  x,
jint  y,
jint  width,
jint  height 
) [virtual, slot]

Sets component's bounds.

Parameters:
env the JNIEnv pointer
x the x coordinate of the bounds
y the y coordinate of the bounds
width the width of the bounds
height the height of the bounds

Reimplemented in JQActionComponentBridge.

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

Returns background color.

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

Reimplemented in JQAbstractButtonBridge, JQActionComponentBridge, JQDesktopPaneBridge, JQInternalFrameBridge, JQTextAreaBridge, JQTextPaneBridge, and JQTreeBridge.

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

Sets the background color.

Parameters:
env the JNIEnv pointer
argb the argb value of the color

Reimplemented in JQAbstractButtonBridge, JQActionComponentBridge, JQDesktopPaneBridge, JQInternalFrameBridge, JQTextAreaBridge, JQTextPaneBridge, and JQTreeBridge.

void JQComponentBridge::setNullBackground ( JNIEnv *  env  )  [virtual, slot]

Sets the application default background color.

Parameters:
env the JNIEnv pointer

Reimplemented in JQAbstractButtonBridge, JQActionComponentBridge, JQDesktopPaneBridge, JQInternalFrameBridge, JQTextAreaBridge, JQTextPaneBridge, and JQTreeBridge.

jobject JQComponentBridge::getForeground ( JNIEnv *  env,
jclass  colorClass 
) [virtual, slot]

Returns foreground color.

Parameters:
env the JNIEnv pointer
colorClass the QSwing color class
Returns:
foreground color

Reimplemented in JQAbstractButtonBridge, JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setForeground ( JNIEnv *  env,
jint  argb 
) [virtual, slot]

Sets the foreground color.

Parameters:
env the JNIEnv pointer
argb the argb value of the color

Reimplemented in JQAbstractButtonBridge, JQActionComponentBridge, JQInternalFrameBridge, and JQSeparatorBridge.

void JQComponentBridge::setNullForeground ( JNIEnv *  env  )  [virtual, slot]

Sets the application default foreground color.

Parameters:
env the JNIEnv pointer

Reimplemented in JQAbstractButtonBridge, JQActionComponentBridge, JQInternalFrameBridge, and JQSeparatorBridge.

void JQComponentBridge::setOpaque ( JNIEnv *  env,
jboolean  opaque 
) [virtual, slot]

Sets whether or not QSwing object paints all background.

Parameters:
env the JNIEnv pointer
opaque true if the object should paint all background

Reimplemented in JQActionComponentBridge.

jobject JQComponentBridge::getFont ( JNIEnv *  env,
jclass  fontClass 
) [virtual, slot]

Returns font.

Parameters:
env the JNIEnv pointer
fontClass the QSwing font class
Returns:
font

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setFont ( JNIEnv *  env,
jobject  font 
) [virtual, slot]

Sets the font.

Parameters:
env the JNIEnv pointer
font the QSwing font

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setStyleSheet ( JNIEnv *  env,
jstring  styleSheetText 
) [virtual, slot]

Sets style sheet.

Parameters:
env the JNIEnv pointer
styleSheetText the style sheet text

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setStyleSheetProperties ( JNIEnv *  env  )  [virtual, slot]

Sets style sheet properties.

Parameters:
env the JNIEnv pointer

void JQComponentBridge::removeStyleSheetProperties ( JNIEnv *  env  )  [virtual, slot]

Removes style sheet properties.

Parameters:
env the JNIEnv pointer

jint JQComponentBridge::getCursor ( JNIEnv *  env  )  [virtual, slot]

Returns current cursor.

Parameters:
env the JNIEnv pointer
Returns:
current cursor

Reimplemented in JQActionComponentBridge, JQInternalFrameBridge, JQTextAreaBridge, JQTextPaneBridge, and JQTreeBridge.

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

Sets cursor.

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

Reimplemented in JQActionComponentBridge, JQInternalFrameBridge, JQTextAreaBridge, JQTextPaneBridge, and JQTreeBridge.

void JQComponentBridge::repaint ( JNIEnv *  env  )  [virtual, slot]

Repaints the component.

Parameters:
env the JNIEnv pointer

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::repaint ( JNIEnv *  env,
jint  x,
jint  y,
jint  width,
jint  height 
) [virtual, slot]

Repaints the component region.

Parameters:
env the JNIEnv pointer
x the x coordinate of the region
y the y coordinate of the region
width the width of the region
height the height of the region

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::update ( JNIEnv *  env  )  [virtual, slot]

Updates the component.

Parameters:
env the JNIEnv pointer

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::update ( JNIEnv *  env,
jint  x,
jint  y,
jint  width,
jint  height 
) [virtual, slot]

Updates the component region.

Parameters:
env the JNIEnv pointer
x the x coordinate of the region
y the y coordinate of the region
width the width of the region
height the height of the region

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setUpdatesEnabled ( JNIEnv *  env,
jboolean  enabled 
) [virtual, slot]

Enables/disables updates.

Parameters:
env the JNIEnv pointer
enabled true if enabled

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::polish ( JNIEnv *  env  )  [virtual, slot]

Polishes the component.

Parameters:
env the JNIEnv pointer

Reimplemented in JQActionComponentBridge.

void JQComponentBridge::setComponentOrientation ( JNIEnv *  env,
jint  orientation 
) [virtual, slot]

Sets the QSwing object orientation.

Parameters:
env the JNIEnv pointer
orientation the object orientation

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setToolTipText ( JNIEnv *  env,
jstring  text 
) [virtual, slot]

Sets tool tip text.

Parameters:
env the JNIEnv pointer
text the tool tip text

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setStatusTipText ( JNIEnv *  env,
jstring  text 
) [virtual, slot]

Sets status tip text.

Parameters:
env the JNIEnv pointer
text the status tip text

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setWhatsThisText ( JNIEnv *  env,
jstring  text 
) [virtual, slot]

Sets what's this text.

Parameters:
env the JNIEnv pointer
text the what's this text

Reimplemented in JQActionComponentBridge, and JQInternalFrameBridge.

void JQComponentBridge::setEnabledEvents ( JNIEnv *  env,
jlong  events 
) [virtual, slot]

Enables specified events.

Parameters:
env the JNIEnv pointer
events the events to be enabled

void JQComponentBridge::paintComponent ( JNIEnv *  env,
jlong  graphicsPointer 
) [virtual, slot]

Paints the component.

Parameters:
env the JNIEnv pointer
graphicsPointer the graphics pointer

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

Initializes JQComponentBridge class.

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

Reimplemented from QObjectBridge.

Reimplemented in ContentPaneBridge, JQAbstractButtonBridge, JQCheckBoxMenuItemBridge, JQContainerBridge, JQDesktopPaneBridge, JQInternalFrameBridge, JQLabelBridge, JQMenuItemBridge, JQRadioButtonMenuItemBridge, JQScrollBarBridge, JQSeparatorBridge, JQSliderBridge, JQSplitPaneBridge, JQStatusBarBridge, JQTabbedPaneBridge, JQTextAreaBridge, JQTextComponentBridge, JQTextFieldBridge, JQTextPaneBridge, JQToolBarBridge, JQWindowBridge, and GLJQComponentBridge.

jlong JQComponentBridge::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 in ContentPaneBridge, JQAbstractButtonBridge, JQButtonBridge, JQCheckBoxBridge, JQCheckBoxMenuItemBridge, JQContainerBridge, JQDesktopPaneBridge, JQDialogBridge, JQFrameBridge, JQInternalFrameBridge, JQLabelBridge, JQMenuBarBridge, JQMenuBridge, JQMenuItemBridge, JQPanelBridge, JQProgressBarBridge, JQRadioButtonBridge, JQRadioButtonMenuItemBridge, JQScrollBarBridge, JQScrollPaneBridge, JQSeparatorBridge, JQSliderBridge, JQSplitPaneBridge, JQStatusBarBridge, JQTabbedPaneBridge, JQTextAreaBridge, JQTextFieldBridge, JQTextPaneBridge, JQToggleButtonBridge, JQToggleToolButtonBridge, JQToolBarBridge, JQToolButtonBridge, JQToolWindowBridge, JQTreeBridge, JQWindowBridge, SplashScreenBridge, and GLJQComponentBridge.

void JQComponentBridge::visibleChanged ( bool  visible  ) 

Calls visibleChanged method of the JQComponent object.

Parameters:
visible true if visible

void JQComponentBridge::enabledChanged ( bool  enabled  ) 

Calls enabledChanged method of the JQComponent object.

Parameters:
enabled true if enabled

void JQComponentBridge::positionChanged ( jint  x,
jint  y 
)

Calls positionChanged method of the JQComponent object.

Parameters:
x the x coordinate of the new position
y the y coordinate of the new position

void JQComponentBridge::sizeChanged ( jint  width,
jint  height 
)

Calls sizeChanged method of the JQComponent object.

Parameters:
width the new width of the component
height the new height of the component

void JQComponentBridge::paint ( jint  x,
jint  y,
jint  width,
jint  height 
)

Calls paint method of the JQComponent object.

Parameters:
x the x coordinate of the rectangle to be painted
y the y coordinate of the rectangle to be painted
width the width coordinate of the rectangle to be painted
height the height coordinate of the rectangle to be painted

void JQComponentBridge::styleSheetChanged ( bool  removed  ) 

Calls styleSheetChanged method of the JQComponent object.

Parameters:
removed true if the style sheet has been removed

void JQComponentBridge::keyPressed ( jint  modifiers,
jint  keyCode,
jchar  keyChar 
)

Calls keyPressed method of the JQComponent object.

Parameters:
modifiers the modifiers
keyCode the key code
keyChar the key char

void JQComponentBridge::keyReleased ( jint  modifiers,
jint  keyCode,
jchar  keyChar 
)

Calls keyReleased method of the JQComponent object.

Parameters:
modifiers the modifiers
keyCode the key code
keyChar the key char

void JQComponentBridge::keyTyped ( jint  modifiers,
jint  keyCode,
jchar  keyChar 
)

Calls keyTyped method of the JQComponent object.

Parameters:
modifiers the modifiers
keyCode the key code
keyChar the key char

void JQComponentBridge::mouseEntered ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseEntered method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mouseExited ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseExited method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mousePressed ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mousePressed method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mouseReleased ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseReleased method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mouseClicked ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseClicked method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mouseDoubleClicked ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseDoubleClicked method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::contextMenuTriggered ( jint  reason,
jint  modifiers,
jint  x,
jint  y,
jint  globalX,
jint  globalY 
)

Calls contextMenuTriggered method of the JQComponent object.

Parameters:
reason the reason
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer
globalX the global x coordinate of the mouse pointer
globalY the global y coordinate of the mouse pointer

void JQComponentBridge::mouseMoved ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseMoved method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mouseDragged ( jint  button,
jint  modifiers,
jint  x,
jint  y 
)

Calls mouseDragged method of the JQComponent object.

Parameters:
button the mouse button
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer

void JQComponentBridge::mouseWheelMoved ( jint  modifiers,
jint  x,
jint  y,
jint  wheelRotation 
)

Calls mouseDragged method of the JQComponent object.

Parameters:
modifiers the modifiers
x the x coordinate of the mouse pointer
y the y coordinate of the mouse pointer
wheelRotation the wheel rotation

QSize JQComponentBridge::getPreferredSize (  ) 

Returns preferred size of the QSwing component.

Returns:
preferred size of the QSwing component

jstring JQComponentBridge::getToolTipText ( int  x,
int  y 
)

Returns tooltip for the specified location.

Parameters:
x the x-coordinate of the tooltip location
y the y-coordinate of the tooltip location
Returns:
tooltip for the specified location

void JQComponentBridge::setParentBridge ( JQContainerBridge parentBridge  )  [virtual]

Sets parent bridge.

Parameters:
parentBridge the parent bridge

Reimplemented in JQActionComponentBridge, JQSeparatorBridge, and JQStatusBarBridge.

QWidget * JQComponentBridge::qWidget (  )  [virtual]

Returns QWidget.

Returns:
QWidget

Reimplemented in JQActionComponentBridge.

QAction * JQComponentBridge::qAction (  )  [virtual]

Returns widget action.

Returns:
widget action

Reimplemented in JQActionComponentBridge, and JQMenuBridge.

bool JQComponentBridge::eventFilterEnabled (  )  const [inline]

Returns true if filtering events.

Returns:
true if filtering events

void JQComponentBridge::setEventFilterEnabled ( bool  enabled  )  [inline]

Enables/disables event filter.

Parameters:
enabled true if enabled

void JQComponentBridge::destroy ( JNIEnv *  env,
bool  notify = false 
) [virtual]

Destroys the QObjectBridge object.

Parameters:
env the JNIEnv pointer
notify if true the Java object will be notified about destroy

Reimplemented from QObjectBridge.

void JQComponentBridge::widgetActionDeleted ( QAction *  action  )  [protected, virtual]

Notifies bridge that an action is deleted.

Parameters:
action the action

bool JQComponentBridge::filterEvent ( QObject *  obj,
QEvent *  e 
) [protected, virtual]

Filters the specified event.

Parameters:
obj the object
e the event

Reimplemented in JQWindowBridge.

bool JQComponentBridge::filterShowEvent ( QObject *  obj,
QShowEvent *  e 
) [protected, virtual]

Filters show event.

Parameters:
obj the object
e the show event

bool JQComponentBridge::filterHideEvent ( QObject *  obj,
QHideEvent *  e 
) [protected, virtual]

Filters hide event.

Parameters:
obj the object
e the hide event

bool JQComponentBridge::filterEnabledChangeEvent ( QObject *  obj,
QEvent *  e 
) [protected, virtual]

Filters enabled change event.

Parameters:
obj the object
e the event

bool JQComponentBridge::filterStyleChangeEvent ( QObject *  obj,
QEvent *  e 
) [protected, virtual]

Filters style change event.

Parameters:
obj the object
e the event

bool JQComponentBridge::filterResizeEvent ( QObject *  obj,
QResizeEvent *  e 
) [protected, virtual]

Filters resize event.

Parameters:
obj the object
e the resize event

Reimplemented in JQScrollPaneBridge.

bool JQComponentBridge::filterMoveEvent ( QObject *  obj,
QMoveEvent *  e 
) [protected, virtual]

Filters move event.

Parameters:
obj the object
e the move event

bool JQComponentBridge::filterFocusGainedEvent ( QObject *  obj,
QFocusEvent *  e 
) [protected, virtual]

Filters focus gained event.

Parameters:
obj the object
e the focus event

bool JQComponentBridge::filterFocusLostEvent ( QObject *  obj,
QFocusEvent *  e 
) [protected, virtual]

Filters focus lost event.

Parameters:
obj the object
e the focus event

bool JQComponentBridge::filterKeyPressedEvent ( QObject *  obj,
QKeyEvent *  e 
) [protected, virtual]

Filters key pressed event.

Parameters:
obj the object
e the key event

Reimplemented in JQAbstractButtonBridge.

bool JQComponentBridge::filterKeyReleasedEvent ( QObject *  obj,
QKeyEvent *  e 
) [protected, virtual]

Filters key released event.

Parameters:
obj the object
e the key event

Reimplemented in JQAbstractButtonBridge.

bool JQComponentBridge::filterKeyTypedEvent ( QObject *  obj,
QKeyEvent *  e 
) [protected, virtual]

Filters key typed event.

Parameters:
obj the object
e the key event

bool JQComponentBridge::filterMouseEnterEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse enter event.

Parameters:
obj the object
e the mouse event

Reimplemented in JQAbstractButtonBridge.

bool JQComponentBridge::filterMouseMoveEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse moved event.

Parameters:
obj the object
e the mouse event

bool JQComponentBridge::filterMouseLeaveEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse leave event.

Parameters:
obj the object
e the mouse event

Reimplemented in JQAbstractButtonBridge.

bool JQComponentBridge::filterMousePressedEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse button pressed event.

Parameters:
obj the object
e the mouse event

bool JQComponentBridge::filterMouseReleasedEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse button released event.

Parameters:
obj the object
e the mouse event

bool JQComponentBridge::filterMouseClickedEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse button clicked event.

Parameters:
obj the object
e the mouse event

bool JQComponentBridge::filterMouseDoubleClickedEvent ( QObject *  obj,
QMouseEvent *  e 
) [protected, virtual]

Filters mouse button double clicked event.

Parameters:
obj the object
e the mouse event

bool JQComponentBridge::filterMouseWheelEvent ( QObject *  obj,
QWheelEvent *  e 
) [protected, virtual]

Filters mouse wheel event.

Parameters:
obj the object
e the wheel event

bool JQComponentBridge::filterToolTipEvent ( QObject *  obj,
QHelpEvent *  e 
) [protected, virtual]

Filters tooltip event.

Parameters:
obj the object
e the help event

bool JQComponentBridge::filterWhatsThisEvent ( QObject *  obj,
QHelpEvent *  e 
) [protected, virtual]

Filters what's this event.

Parameters:
obj the object
e the help event

bool JQComponentBridge::filterContextMenuEvent ( QObject *  obj,
QContextMenuEvent *  e 
) [protected, virtual]

Filters context menu event.

Parameters:
obj the object
e the context menu event

QWidget * JQComponentBridge::paintingWidget (  )  [protected, virtual]

Painting widget.

Returns:
painting widget

Reimplemented in JQInternalFrameBridge.

jlong JQComponentBridge::enabledEvents (  )  const [inline, protected]

Returns enabled events.

Returns:
enabled events

bool JQComponentBridge::eventEnabled ( jlong  eventMask  )  const [inline, protected]

Tests if the specified event is enabled.

Parameters:
eventMask the event to test
Returns:
true if event is enabled

QEvent * JQComponentBridge::currentEvent (  )  const [inline, protected]

Returns current event.

Returns:
current event

int JQComponentBridge::previousEventType (  )  const [inline, protected]

Returns previous event type.

Returns:
previous event type

JQContainerBridge * JQComponentBridge::parentBridge (  )  const [inline, protected]

Returns parent bridge.

Returns:
parent bridge

jmethodID JQComponentBridge::createMID (  )  [inline, static, protected]

Returns createMID.

Returns:
createMID

jfieldID JQComponentBridge::bridgePointerFID (  )  const [protected, virtual]

Returns bridge pointer FID.

Returns:
bridge pointer FID

Implements QObjectBridge.

bool JQComponentBridge::eventFilter ( QObject *  obj,
QEvent *  e 
) [protected, virtual]

Filters events of the qObject.

Parameters:
obj the qObject
e the event
Returns:
true if the event is filtered

Reimplemented in JQInternalFrameBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.