JQActionComponentBridge Class Reference

QAction-Component Bridge. More...

#include <JQActionComponentBridge.h>

Inheritance diagram for JQActionComponentBridge:

JQComponentBridge QObjectBridge JQCheckBoxMenuItemBridge JQMenuItemBridge JQRadioButtonMenuItemBridge JQSeparatorBridge

List of all members.

Public Slots

virtual void setVisible (JNIEnv *env, jboolean visible)
virtual void showWindow (JNIEnv *env)
virtual void setEnabled (JNIEnv *env, jboolean enabled)
virtual void setFocusable (JNIEnv *env, jboolean focusable)
virtual void requestFocus (JNIEnv *env)
virtual void setLocation (JNIEnv *env, jint x, jint y)
virtual jobject getPreferredSize (JNIEnv *env)
virtual void setSize (JNIEnv *env, jint width, jint height)
virtual void setMaximumSize (JNIEnv *env, jint width, jint height)
virtual void setMinimumSize (JNIEnv *env, jint width, jint height)
virtual void setFixedSize (JNIEnv *env, jint width, jint height)
virtual void setBounds (JNIEnv *env, jint x, jint y, jint width, jint height)
virtual jobject getBackground (JNIEnv *env, jclass colorClass)
virtual void setBackground (JNIEnv *env, jint argb)
virtual void setNullBackground (JNIEnv *env)
virtual jobject getForeground (JNIEnv *env, jclass colorClass)
virtual void setForeground (JNIEnv *env, jint argb)
virtual void setNullForeground (JNIEnv *env)
virtual void setOpaque (JNIEnv *env, jboolean opaque)
virtual jobject getFont (JNIEnv *env, jclass fontClass)
virtual void setFont (JNIEnv *env, jobject font)
virtual void setStyleSheet (JNIEnv *env, jstring styleSheetText)
virtual jint getCursor (JNIEnv *env)
virtual void setCursor (JNIEnv *env, jint type)
virtual void repaint (JNIEnv *env)
virtual void repaint (JNIEnv *env, jint x, jint y, jint width, jint height)
virtual void update (JNIEnv *env)
virtual void update (JNIEnv *env, jint x, jint y, jint width, jint height)
virtual void setUpdatesEnabled (JNIEnv *env, jboolean enabled)
virtual void polish (JNIEnv *env)
virtual void setComponentOrientation (JNIEnv *env, jint orientation)
virtual void setToolTipText (JNIEnv *env, jstring text)
virtual void setStatusTipText (JNIEnv *env, jstring text)
virtual void setWhatsThisText (JNIEnv *env, jstring text)

Public Member Functions

virtual void setParentBridge (JQContainerBridge *parentBridge)
virtual QWidget * qWidget ()
virtual QAction * qAction ()

Protected Member Functions

 JQActionComponentBridge (JNIEnv *env, jobject obj, QAction *action)
 Constructs new QActionComponentBridge object.
 JQActionComponentBridge (JNIEnv *env, jobject obj)
 Constructs new QActionComponentBridge object.
virtual ~JQActionComponentBridge ()
 Destructs JQActionComponentBridge object.
virtual QWidget * createQWidget ()=0
virtual QAction * createQAction ()=0
virtual void deleteQWidget (QWidget *widget)
 Deletes QWidget.
virtual void deleteQAction (QAction *action)
 Deletes QAction.
virtual void switchToQWidget ()
 Switches to QWidget.
virtual void switchToQAction ()
 Switches to QAction.
virtual QWidget * convertToQWidget (QAction *action)
 Converts QAction into QWidget.
virtual QAction * convertToQAction (QWidget *widget)
 Converts QWidget into QAction.
virtual
JQActionComponentData
createActionData ()
 Creates new action data.
virtual void filterEnabledEvents ()
bool isQWidget ()
 Returns true if the bridge adaptee is QWidget.
JQActionComponentDataactionData ()
 Returns action data.
JQActionComponentDatagetActionData (QAction *action)
 Returns action data of the specified action.
QWidget * widget () const
 Returns widget data member.
QAction * action () const
 Returns action data member.
virtual void objectDestroyed (QObject *qObj)


Detailed Description

QAction-Component Bridge.

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

Constructor & Destructor Documentation

JQActionComponentBridge::JQActionComponentBridge ( JNIEnv *  env,
jobject  obj,
QAction *  action 
) [protected]

Constructs new QActionComponentBridge object.

Parameters:
env the JNIEnv pointer
obj the JQComponent object
action the action

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

Constructs new QActionComponentBridge object.

Parameters:
env the JNIEnv pointer
obj the JQComponent object


Member Function Documentation

void JQActionComponentBridge::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 from JQComponentBridge.

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

Shows QSwing object for the first time.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

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

Sets focusable state of the component.

Parameters:
env the JNIEnv pointer
focusable the focusable state

Reimplemented from JQComponentBridge.

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

Requests the focus.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

jobject JQActionComponentBridge::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 from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

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

Returns background color.

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

Reimplemented from JQComponentBridge.

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

Sets the background color.

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

Reimplemented from JQComponentBridge.

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

Sets the application default background color.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

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

Returns foreground color.

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

Reimplemented from JQComponentBridge.

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

Sets the foreground color.

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

Reimplemented from JQComponentBridge.

Reimplemented in JQSeparatorBridge.

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

Sets the application default foreground color.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

Reimplemented in JQSeparatorBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

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

Returns font.

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

Reimplemented from JQComponentBridge.

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

Sets the font.

Parameters:
env the JNIEnv pointer
font the QSwing font

Reimplemented from JQComponentBridge.

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

Sets style sheet.

Parameters:
env the JNIEnv pointer
styleSheetText the style sheet text

Reimplemented from JQComponentBridge.

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

Returns current cursor.

Parameters:
env the JNIEnv pointer
Returns:
current cursor

Reimplemented from JQComponentBridge.

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

Sets cursor.

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

Reimplemented from JQComponentBridge.

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

Repaints the component.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

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

Updates the component.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

void JQActionComponentBridge::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 from JQComponentBridge.

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

Enables/disables updates.

Parameters:
env the JNIEnv pointer
enabled true if enabled

Reimplemented from JQComponentBridge.

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

Polishes the component.

Parameters:
env the JNIEnv pointer

Reimplemented from JQComponentBridge.

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

Sets the QSwing object orientation.

Parameters:
env the JNIEnv pointer
orientation the object orientation

Reimplemented from JQComponentBridge.

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

Sets tool tip text.

Parameters:
env the JNIEnv pointer
text the tool tip text

Reimplemented from JQComponentBridge.

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

Sets status tip text.

Parameters:
env the JNIEnv pointer
text the status tip text

Reimplemented from JQComponentBridge.

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

Sets what's this text.

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

Reimplemented from JQComponentBridge.

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

Sets parent bridge.

Parameters:
parentBridge the parent bridge

Reimplemented from JQComponentBridge.

Reimplemented in JQSeparatorBridge.

QWidget * JQActionComponentBridge::qWidget (  )  [virtual]

Returns QWidget.

Returns:
QWidget

Reimplemented from JQComponentBridge.

QAction * JQActionComponentBridge::qAction (  )  [virtual]

Returns widget action.

Returns:
widget action

Reimplemented from JQComponentBridge.

void JQActionComponentBridge::deleteQWidget ( QWidget *  widget  )  [protected, virtual]

Deletes QWidget.

Returns:
widget the widget to be deleted

Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, and JQRadioButtonMenuItemBridge.

void JQActionComponentBridge::deleteQAction ( QAction *  action  )  [protected, virtual]

Deletes QAction.

Returns:
action the action to be deleted

Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, and JQRadioButtonMenuItemBridge.

QWidget * JQActionComponentBridge::convertToQWidget ( QAction *  action  )  [protected, virtual]

Converts QAction into QWidget.

Returns:
QAction converted into QWidget

Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, JQRadioButtonMenuItemBridge, and JQSeparatorBridge.

QAction * JQActionComponentBridge::convertToQAction ( QWidget *  widget  )  [protected, virtual]

Converts QWidget into QAction.

Returns:
QWidget converted into QAction

Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, JQRadioButtonMenuItemBridge, and JQSeparatorBridge.

JQActionComponentData * JQActionComponentBridge::createActionData (  )  [protected, virtual]

Creates new action data.

Returns:
action data

Reimplemented in JQSeparatorBridge.

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

Filters enabled events.

Reimplemented from JQComponentBridge.

bool JQActionComponentBridge::isQWidget (  )  [protected]

Returns true if the bridge adaptee is QWidget.

Returns:
true if the bridge adaptee is QWidget

JQActionComponentData * JQActionComponentBridge::actionData (  )  [protected]

Returns action data.

Returns:
action data

JQActionComponentData * JQActionComponentBridge::getActionData ( QAction *  action  )  [protected]

Returns action data of the specified action.

Parameters:
action the action
Returns:
action data

QWidget * JQActionComponentBridge::widget (  )  const [inline, protected]

Returns widget data member.

Returns:
widget data member

QAction * JQActionComponentBridge::action (  )  const [inline, protected]

Returns action data member.

Returns:
action data member

void JQActionComponentBridge::objectDestroyed ( QObject *  qObj  )  [protected, virtual]

Object destroyed slot.

Returns:
qObj the destroyed object

Reimplemented from QObjectBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.