Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


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

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

Methods' Summary
addAdjustmentListener registers an adjustment event listener.  
removeAdjustmentListener unregisters an adjustment event listener.  
setValue sets the scroll value of the scroll bar.  
setValues sets the scroll value, visible area and maximum scroll value of the scoll bar.  
getValue returns the current scroll value of the scroll bar.  
setMaximum sets the maximum scroll value of the scroll bar.  
getMaximum returns the currently set maximum scroll value of the scroll bar.  
setLineIncrement sets the increment for a single line move.  
getLineIncrement returns the currently set increment for a single line move.  
setBlockIncrement sets the increment for a block move.  
getBlockIncrement returns the currently set increment for a block move.  
setVisibleSize sets the visible size of the scroll bar.  
getVisibleSize returns the currently visible size of the scroll bar.  
setOrientation sets the ScrollBarOrientation of the scroll bar.  
getOrientation returns the currently set ScrollBarOrientation of the scroll bar.  
Methods' Details
addAdjustmentListener
[oneway] void
addAdjustmentListener( [in] XAdjustmentListener  l );

Description
registers an adjustment event listener.
removeAdjustmentListener
[oneway] void
removeAdjustmentListener( [in] XAdjustmentListener  l );

Description
unregisters an adjustment event listener.
setValue
[oneway] void
setValue( [in] long  n );

Description
sets the scroll value of the scroll bar.
setValues
[oneway] void
setValues( [in] long  nValue,
[in] long  nVisible,
[in] long  nMax );

Description
sets the scroll value, visible area and maximum scroll value of the scoll bar.
getValue
long
getValue();

Description
returns the current scroll value of the scroll bar.
setMaximum
[oneway] void
setMaximum( [in] long  n );

Description
sets the maximum scroll value of the scroll bar.
getMaximum
long
getMaximum();

Description
returns the currently set maximum scroll value of the scroll bar.
setLineIncrement
[oneway] void
setLineIncrement( [in] long  n );

Description
sets the increment for a single line move.
getLineIncrement
long
getLineIncrement();

Description
returns the currently set increment for a single line move.
setBlockIncrement
[oneway] void
setBlockIncrement( [in] long  n );

Description
sets the increment for a block move.
getBlockIncrement
long
getBlockIncrement();

Description
returns the currently set increment for a block move.
setVisibleSize
[oneway] void
setVisibleSize( [in] long  n );

Description
sets the visible size of the scroll bar.
getVisibleSize
long
getVisibleSize();

Description
returns the currently visible size of the scroll bar.
setOrientation
[oneway] void
setOrientation( [in] long  n );

Description
sets the ScrollBarOrientation of the scroll bar.
getOrientation
long
getOrientation();

Description
returns the currently set ScrollBarOrientation of the scroll bar.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.