JQScrollBarBridge Class Reference

JQScrollBar Bridge. More...

#include <JQScrollBarBridge.h>

Inheritance diagram for JQScrollBarBridge:

JQComponentBridge QObjectBridge

List of all members.

Public Slots

void setModel (JNIEnv *env, jint minimum, jint maximum, jint value)
 Sets scroll bar model.
void setValue (JNIEnv *env, jint value)
 Sets scroll value.
void setMinimum (JNIEnv *env, jint minimum)
 Sets minimum scroll value.
void setMaximum (JNIEnv *env, jint maximum)
 Sets maximum scroll value.
void setOrientation (JNIEnv *env, jint orientation)
 Sets scroll bar orientation.
void setUnitIncrement (JNIEnv *env, jint unitIncrement)
 Sets scroll unit increment.
void setBlockIncrement (JNIEnv *env, jint blockIncrement)
 Sets scroll block increment.

Public Member Functions

void valueChanged (jint value)
 Calls valueChanged method of the JQScrollBar object.
void valueIsAdjusting (jboolean adjusting)
 Calls valueIsAdjusting method of the JQScrollBar object.
QScrollBar * qScrollBar () const
 Returns QScrollBar adaptee.

Static Public Member Functions

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

Protected Slots

void valueChangedSlot (int value)
 valueChanged slot.
void sliderPressedSlot ()
 sliderPressed slot.
void sliderReleasedSlot ()
 sliderReleased slot.

Protected Member Functions

 JQScrollBarBridge (JNIEnv *env, jobject obj)
 Constructs new JQScrollBarBridge object.


Detailed Description

JQScrollBar Bridge.

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

Constructor & Destructor Documentation

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

Constructs new JQScrollBarBridge object.

Parameters:
env the JNIEnv pointer
obj the JQScrollBar object


Member Function Documentation

void JQScrollBarBridge::setModel ( JNIEnv *  env,
jint  minimum,
jint  maximum,
jint  value 
) [slot]

Sets scroll bar model.

Parameters:
env the JNIEnv pointer
minimum the minimum scroll value
maximum the maximum scroll value
value the scroll value

void JQScrollBarBridge::setValue ( JNIEnv *  env,
jint  value 
) [slot]

Sets scroll value.

Parameters:
env the JNIEnv pointer
value the scroll value

void JQScrollBarBridge::setMinimum ( JNIEnv *  env,
jint  minimum 
) [slot]

Sets minimum scroll value.

Parameters:
env the JNIEnv pointer
minimum the minimum scroll value

void JQScrollBarBridge::setMaximum ( JNIEnv *  env,
jint  maximum 
) [slot]

Sets maximum scroll value.

Parameters:
env the JNIEnv pointer
maximum the maximum scroll value

void JQScrollBarBridge::setOrientation ( JNIEnv *  env,
jint  orientation 
) [slot]

Sets scroll bar orientation.

Parameters:
env the JNIEnv pointer
orientation the orientation

void JQScrollBarBridge::setUnitIncrement ( JNIEnv *  env,
jint  unitIncrement 
) [slot]

Sets scroll unit increment.

Parameters:
env the JNIEnv pointer
unitIncrement the unit increment

void JQScrollBarBridge::setBlockIncrement ( JNIEnv *  env,
jint  blockIncrement 
) [slot]

Sets scroll block increment.

Parameters:
env the JNIEnv pointer
blockIncrement the block increment

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

Initializes the JQScrollBarBridge class.

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

Reimplemented from JQComponentBridge.

jlong JQScrollBarBridge::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 JQScrollBarBridge::valueChanged ( jint  value  ) 

Calls valueChanged method of the JQScrollBar object.

Parameters:
value the changed value

void JQScrollBarBridge::valueIsAdjusting ( jboolean  adjusting  ) 

Calls valueIsAdjusting method of the JQScrollBar object.

Parameters:
adjusting true if adjusting

void JQScrollBarBridge::valueChangedSlot ( int  value  )  [protected, slot]

valueChanged slot.

Parameters:
value the value

QScrollBar * JQScrollBarBridge::qScrollBar (  )  const [inline]

Returns QScrollBar adaptee.

Returns:
QScrollBar adaptee


Copyright © 2007 ETF and contributors. All Rights Reserved.