interface XScrollBar in module com::sun::star::awt::

(Global Index)

Syntax

interface XScrollBar : com::sun::star::uno::XInterface ;

Description

gives access to the value and settings of a scroll bar and makes it possible to register event listeners.

Method Summary

addAdjustmentListener registers an adjustment event listener.

removeAdjustmentListener unregisters an adjustment event listener.

setValue sets the value (position) of the scrollbar.

setValues sets the value (position), visible area and scale of the scollbar.

getValue

setMaximum sets the maximum value (scale) for the scrollbar.

getMaximum

setLineIncrement sets the increment for a single line move.

getLineIncrement

setBlockIncrement sets the increment for a block move.

getBlockIncrement

setVisibleSize sets the visible size for this scrollbar.

getVisibleSize

setOrientation sets the ScrollBarOrientation of this scrollbar.

getOrientation

Known Services Which Export this Interface

com::sun::star::awt::UnoControlScrollBar

Method Details



addAdjustmentListener

Syntax

oneway void addAdjustmentListener (
com::sun::star::awt::XAdjustmentListener l );

Description

registers an adjustment event listener.


removeAdjustmentListener

Syntax

oneway void removeAdjustmentListener (
com::sun::star::awt::XAdjustmentListener l );

Description

unregisters an adjustment event listener.


setValue

Syntax

oneway void setValue (
long n );

Description

sets the value (position) of the scrollbar.


setValues

Syntax

oneway void setValues (
long nValue,
long nVisible,
long nMax );

Description

sets the value (position), visible area and scale of the scollbar.


getValue

Syntax

long getValue ();

Returns

the current value (position) of the scrollbar.

setMaximum

Syntax

oneway void setMaximum (
long n );

Description

sets the maximum value (scale) for the scrollbar.


getMaximum

Syntax

long getMaximum ();

Returns

the currently set value (scale) for the scrollbar.

setLineIncrement

Syntax

oneway void setLineIncrement (
long n );

Description

sets the increment for a single line move.


getLineIncrement

Syntax

long getLineIncrement ();

Returns

the currently set increment of a single line move.

setBlockIncrement

Syntax

oneway void setBlockIncrement (
long n );

Description

sets the increment for a block move.


getBlockIncrement

Syntax

long getBlockIncrement ();

Returns

the currently set increment of a block move.

setVisibleSize

Syntax

oneway void setVisibleSize (
long n );

Description

sets the visible size for this scrollbar.


getVisibleSize

Syntax

long getVisibleSize ();

Returns

the currently visible size for this scrollbar.

setOrientation

Syntax

oneway void setOrientation (
long n );

Description

sets the ScrollBarOrientation of this scrollbar.


getOrientation

Syntax

long getOrientation ();

Returns

the currently set ScrollBarOrientation of this scrollbar.
Top of Page