JQCheckBoxMenuItemBridge Class Reference

JQCheckBoxMenuItem Bridge. More...

#include <JQCheckBoxMenuItemBridge.h>

Inheritance diagram for JQCheckBoxMenuItemBridge:

JQActionComponentBridge JQComponentBridge QObjectBridge

List of all members.

Public Slots

void setText (JNIEnv *env, jstring text)
 Sets text.
void setShortcut (JNIEnv *env, jstring shortcut)
 Sets short cut.
void setIcon (JNIEnv *env, jobject iconSet)
 Sets icon.
void setChecked (JNIEnv *env, jboolean checked)
 Sets whether or not the item is checked.

Public Member Functions

void checkedChanged (jint modifiers, jboolean checked)
 Calls checkedChanged method of the JQMenuItemBridge object.

Static Public Member Functions

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

Protected Slots

void toggledSlot (bool checked)
 Toggled slot.
void stateChangedSlot (int state)
 State changed slot.

Protected Member Functions

 JQCheckBoxMenuItemBridge (JNIEnv *env, jobject obj)
 Constructs new JQCheckBoxMenuItemBridge object.
QCheckBox * checkBox () const
 Returns check box member.
virtual QWidget * createQWidget ()
 Creates QWidget adaptee.
virtual QAction * createQAction ()
 Creates QAction adaptee.
virtual void deleteQWidget (QWidget *widget)
virtual void deleteQAction (QAction *action)
virtual QWidget * convertToQWidget (QAction *action)
virtual QAction * convertToQAction (QWidget *widget)


Detailed Description

JQCheckBoxMenuItem Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQCheckBoxMenuItemBridge object.

Parameters:
env the JNIEnv pointer
obj the JQCheckBoxMenuItem object


Member Function Documentation

void JQCheckBoxMenuItemBridge::setText ( JNIEnv *  env,
jstring  text 
) [slot]

Sets text.

Parameters:
env the JNIEnv pointer
text the text

void JQCheckBoxMenuItemBridge::setShortcut ( JNIEnv *  env,
jstring  shortcut 
) [slot]

Sets short cut.

Parameters:
env the JNIEnv pointer
shortcut the shortcut

void JQCheckBoxMenuItemBridge::setIcon ( JNIEnv *  env,
jobject  iconSet 
) [slot]

Sets icon.

Parameters:
env the JNIEnv pointer
iconSet the icon

void JQCheckBoxMenuItemBridge::setChecked ( JNIEnv *  env,
jboolean  checked 
) [slot]

Sets whether or not the item is checked.

Parameters:
env the JNIEnv pointer
checked true if checked

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

Initializes JQCheckBoxMenuItemBridge class.

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

Reimplemented from JQComponentBridge.

jlong JQCheckBoxMenuItemBridge::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 JQCheckBoxMenuItemBridge::checkedChanged ( jint  modifiers,
jboolean  checked 
)

Calls checkedChanged method of the JQMenuItemBridge object.

Parameters:
modifiers the keyboard modifiers
checked true if the item is checked

void JQCheckBoxMenuItemBridge::toggledSlot ( bool  checked  )  [protected, slot]

Toggled slot.

Parameters:
checked true if the item is checked

void JQCheckBoxMenuItemBridge::stateChangedSlot ( int  state  )  [protected, slot]

State changed slot.

Parameters:
state the state

QCheckBox * JQCheckBoxMenuItemBridge::checkBox (  )  const [inline, protected]

Returns check box member.

Returns:
check box member

QWidget * JQCheckBoxMenuItemBridge::createQWidget (  )  [protected, virtual]

Creates QWidget adaptee.

Returns:
QWidget adaptee

Implements JQActionComponentBridge.

QAction * JQCheckBoxMenuItemBridge::createQAction (  )  [protected, virtual]

Creates QAction adaptee.

Returns:
QAction adaptee

Implements JQActionComponentBridge.

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

Deletes QWidget.

Returns:
widget the widget to be deleted

Reimplemented from JQActionComponentBridge.

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

Deletes QAction.

Returns:
action the action to be deleted

Reimplemented from JQActionComponentBridge.

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

Converts QAction into QWidget.

Returns:
QAction converted into QWidget

Reimplemented from JQActionComponentBridge.

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

Converts QWidget into QAction.

Returns:
QWidget converted into QAction

Reimplemented from JQActionComponentBridge.


Copyright © 2007 ETF and contributors. All Rights Reserved.