ooodev.adapter.awt.scroll_bar_partial module
- class ooodev.adapter.awt.scroll_bar_partial.ScrollBarPartial(component, interface=com.sun.star.awt.XScrollBar)[source]
Bases:
object
Partial class for XScrollBar.
- Parameters:
component (XScrollBar) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.awt.XScrollBar)[source]
Constructor
- Parameters:
component (XScrollBar) – UNO Component that implements
com.sun.star.awt.XScrollBar
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XScrollBar
.
- Return type:
None
- add_adjustment_listener(listener)[source]
Registers an adjustment event listener.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XAdjustmentListener) –
- get_line_increment()[source]
Gets the currently set increment for a single line move.
- Return type:
int
- get_maximum()[source]
Gets the currently set maximum scroll value of the scroll bar.
- Return type:
int
- get_orientation()[source]
Gets the currently set ScrollBarOrientation of the scroll bar.
- Return type:
ScrollBarOrientationEnum
- remove_adjustment_listener(listener)[source]
Un-registers an adjustment event listener.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XAdjustmentListener) –
- set_block_increment(n)[source]
Sets the increment for a block move.
- Return type:
None
- Parameters:
n (int) –
- set_line_increment(n)[source]
Sets the increment for a single line move.
- Return type:
None
- Parameters:
n (int) –
- set_maximum(n)[source]
Sets the maximum scroll value of the scroll bar.
- Return type:
None
- Parameters:
n (int) –
- set_orientation(n)[source]
Sets the ScrollBarOrientation of the scroll bar.
0:
HORIZONTAL
1:
VERTICAL
- Parameters:
n (int | ScrollBarOrientationEnum) – ScrollBarOrientation value.
- Return type:
None
- set_value(n)[source]
Sets the scroll value of the scroll bar.
- Return type:
None
- Parameters:
n (int) –