Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

unpublished interface XSpinValue
Usage Restrictions
not published
Description
gives access to the value and settings of a control which is associated with a spinnable value.

Methods' Summary
addAdjustmentListener registers an adjustment event listener.  
removeAdjustmentListener unregisters an adjustment event listener.  
setValue sets the current value of the control  
setValues sets the value and value range of the control  
getValue returns the current value of the control.  
setMinimum sets the minimum value which can be set on the control  
setMaximum sets the maximum value which can be set on the control  
getMinimum returns the currently set minimum value of the control  
getMaximum returns the currently set maximum value of the control  
setSpinIncrement sets the value by which the current value of the control should be incremented or decremented upon spinning.  
getSpinIncrement returns the value by which the current value of the control should be incremented or decremented upon spinning.  
setOrientation controls the orientation of the control  
getOrientation returns the current orientation of the control  
Methods' Details
addAdjustmentListener
[oneway] void
addAdjustmentListener( [in] XAdjustmentListener  listener );

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

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

Description
sets the current value of the control
setValues
[oneway] void
setValues( [in] long  minValue,
[in] long  maxValue,
[in] long  currentValue );

Description
sets the value and value range of the control
See also
setValue, setMinimum, setMaximum
getValue
long
getValue();

Description
returns the current value of the control.
setMinimum
[oneway] void
setMinimum( [in] long  minValue );

Description
sets the minimum value which can be set on the control
setMaximum
[oneway] void
setMaximum( [in] long  maxValue );

Description
sets the maximum value which can be set on the control
getMinimum
long
getMinimum();

Description
returns the currently set minimum value of the control
getMaximum
long
getMaximum();

Description
returns the currently set maximum value of the control
setSpinIncrement
[oneway] void
setSpinIncrement( [in] long  spinIncrement );

Description
sets the value by which the current value of the control should be incremented or decremented upon spinning.
getSpinIncrement
long
getSpinIncrement();

Description
returns the value by which the current value of the control should be incremented or decremented upon spinning.
setOrientation
void
setOrientation( [in] long  orientation )
raises( ::com::sun::star::lang::NoSupportException );

Description
controls the orientation of the control
Parameter orientation
one of the ScrollBarOrientation values specifying the orientation
Throws
com::sun::star::lang::NoSupportException in case the given orientation is not supported
getOrientation
long
getOrientation();

Description
returns the current orientation of the control
Top of Page

Apache Software Foundation

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

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