#include <JQActionComponentBridge.h>
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. | |
JQActionComponentData * | actionData () |
Returns action data. | |
JQActionComponentData * | getActionData (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) |
JQActionComponentBridge::JQActionComponentBridge | ( | JNIEnv * | env, | |
jobject | obj, | |||
QAction * | action | |||
) | [protected] |
Constructs new QActionComponentBridge object.
env | the JNIEnv pointer | |
obj | the JQComponent object | |
action | the action |
JQActionComponentBridge::JQActionComponentBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
Constructs new QActionComponentBridge object.
env | the JNIEnv pointer | |
obj | the JQComponent object |
void JQActionComponentBridge::setVisible | ( | JNIEnv * | env, | |
jboolean | visible | |||
) | [virtual, slot] |
Shows/hides the QSwing object.
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.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setEnabled | ( | JNIEnv * | env, | |
jboolean | enabled | |||
) | [virtual, slot] |
Enables/disables the QSwing object.
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.
env | the JNIEnv pointer | |
focusable | the focusable state |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::requestFocus | ( | JNIEnv * | env | ) | [virtual, slot] |
void JQActionComponentBridge::setLocation | ( | JNIEnv * | env, | |
jint | x, | |||
jint | y | |||
) | [virtual, slot] |
Sets location of the component.
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.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setSize | ( | JNIEnv * | env, | |
jint | width, | |||
jint | height | |||
) | [virtual, slot] |
Sets size of the component.
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.
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.
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.
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.
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.
env | the JNIEnv pointer | |
colorClass | the java color class |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setBackground | ( | JNIEnv * | env, | |
jint | argb | |||
) | [virtual, slot] |
Sets the background color.
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.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
jobject JQActionComponentBridge::getForeground | ( | JNIEnv * | env, | |
jclass | colorClass | |||
) | [virtual, slot] |
Returns foreground color.
env | the JNIEnv pointer | |
colorClass | the QSwing color class |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setForeground | ( | JNIEnv * | env, | |
jint | argb | |||
) | [virtual, slot] |
Sets the foreground color.
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.
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.
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.
env | the JNIEnv pointer | |
fontClass | the QSwing font class |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setFont | ( | JNIEnv * | env, | |
jobject | font | |||
) | [virtual, slot] |
Sets the font.
env | the JNIEnv pointer | |
font | the QSwing font |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setStyleSheet | ( | JNIEnv * | env, | |
jstring | styleSheetText | |||
) | [virtual, slot] |
Sets style sheet.
env | the JNIEnv pointer | |
styleSheetText | the style sheet text |
Reimplemented from JQComponentBridge.
jint JQActionComponentBridge::getCursor | ( | JNIEnv * | env | ) | [virtual, slot] |
Returns current cursor.
env | the JNIEnv pointer |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setCursor | ( | JNIEnv * | env, | |
jint | type | |||
) | [virtual, slot] |
Sets cursor.
env | the JNIEnv pointer | |
type | the type of the cursor |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::repaint | ( | JNIEnv * | env | ) | [virtual, slot] |
void JQActionComponentBridge::repaint | ( | JNIEnv * | env, | |
jint | x, | |||
jint | y, | |||
jint | width, | |||
jint | height | |||
) | [virtual, slot] |
Repaints the component region.
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] |
void JQActionComponentBridge::update | ( | JNIEnv * | env, | |
jint | x, | |||
jint | y, | |||
jint | width, | |||
jint | height | |||
) | [virtual, slot] |
Updates the component region.
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.
env | the JNIEnv pointer | |
enabled | true if enabled |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::polish | ( | JNIEnv * | env | ) | [virtual, slot] |
void JQActionComponentBridge::setComponentOrientation | ( | JNIEnv * | env, | |
jint | orientation | |||
) | [virtual, slot] |
Sets the QSwing object orientation.
env | the JNIEnv pointer | |
orientation | the object orientation |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setToolTipText | ( | JNIEnv * | env, | |
jstring | text | |||
) | [virtual, slot] |
Sets tool tip text.
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.
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.
env | the JNIEnv pointer | |
text | the what's this text |
Reimplemented from JQComponentBridge.
void JQActionComponentBridge::setParentBridge | ( | JQContainerBridge * | parentBridge | ) | [virtual] |
Sets parent bridge.
parentBridge | the parent bridge |
Reimplemented from JQComponentBridge.
Reimplemented in JQSeparatorBridge.
QWidget * JQActionComponentBridge::qWidget | ( | ) | [virtual] |
QAction * JQActionComponentBridge::qAction | ( | ) | [virtual] |
void JQActionComponentBridge::deleteQWidget | ( | QWidget * | widget | ) | [protected, virtual] |
Deletes QWidget.
Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, and JQRadioButtonMenuItemBridge.
void JQActionComponentBridge::deleteQAction | ( | QAction * | action | ) | [protected, virtual] |
Deletes QAction.
Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, and JQRadioButtonMenuItemBridge.
QWidget * JQActionComponentBridge::convertToQWidget | ( | QAction * | action | ) | [protected, virtual] |
Converts QAction into QWidget.
Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, JQRadioButtonMenuItemBridge, and JQSeparatorBridge.
QAction * JQActionComponentBridge::convertToQAction | ( | QWidget * | widget | ) | [protected, virtual] |
Converts QWidget into QAction.
Reimplemented in JQCheckBoxMenuItemBridge, JQMenuItemBridge, JQRadioButtonMenuItemBridge, and JQSeparatorBridge.
JQActionComponentData * JQActionComponentBridge::createActionData | ( | ) | [protected, virtual] |
void JQActionComponentBridge::filterEnabledEvents | ( | ) | [protected, virtual] |
Filters enabled events.
Reimplemented from JQComponentBridge.
bool JQActionComponentBridge::isQWidget | ( | ) | [protected] |
Returns true
if the bridge adaptee is QWidget.
true
if the bridge adaptee is QWidget JQActionComponentData * JQActionComponentBridge::actionData | ( | ) | [protected] |
Returns action data.
JQActionComponentData * JQActionComponentBridge::getActionData | ( | QAction * | action | ) | [protected] |
Returns action data of the specified action.
action | the action |
QWidget * JQActionComponentBridge::widget | ( | ) | const [inline, protected] |
Returns widget data member.
QAction * JQActionComponentBridge::action | ( | ) | const [inline, protected] |
Returns action data member.
void JQActionComponentBridge::objectDestroyed | ( | QObject * | qObj | ) | [protected, virtual] |