| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject | +--IlvScrollbar
IlvScrollbar is the abstract base class of all scroll bars. | Constructor Summary | |
|---|---|
IlvScrollbar(left, top, length)
|
|
| Method Summary | |
|---|---|
addValueListener(listener)
Adds a listener to be called when the scroll bar's value is changed. |
|
getExtent()
Returns the extent of the scrollbar. |
|
getHeight()
Returns the height of this scrollbar. |
|
getLeft()
Returns the left border of this scrollbar. |
|
getMaxValue()
Returns the maximum value of the scrollbar. |
|
getMinValue()
Returns the minimum value of the scrollbar. |
|
getTop()
Returns the top border of this scrollbar. |
|
getUnitIncrement()
Returns the unit increment of the scrollbar. |
|
getValue()
Returns the value of the scrollbar. |
|
getWidth()
Returns the width of this scrollbar. |
|
isEnabled()
Returns whether the scrollbar is enabled. |
|
isVisible()
Returns the visibility of this scrollbar. |
|
removeValueListener(listener)
Removes a listener installed with addValueListener. |
|
setBounds(left, top, length)
Changes the location and size of the scrollbar. |
|
setEnabled(enabled)
Enables or disables the scrollbar. |
|
setLocation(left, top)
Moves the scrollbar to the specified location. |
|
setUnitIncrement(increment)
Sets the unit increment of the scrollbar. |
|
setValue(value)
Sets the value of the scrollbar. |
|
setValues(value, extent, min, max)
Sets the values of the scrollbar. |
|
setVisible(visible)
Sets the visibility of this scrollbar. |
|
toHTML()
Creates the HTML for this scroll bar. |
|
| Constructor Detail |
IlvScrollbar(left, top, length)
| Method Detail |
addValueListener(listener)
listener - The listener function, which must have the following
parameters:
scrollbar: The IlvScrollbar.
getExtent()
getHeight()
getLeft()
getMaxValue()
getMinValue()
getTop()
getUnitIncrement()
getValue()
getWidth()
isEnabled()
isVisible()
removeValueListener(listener)
addValueListener. listener - The listener to remove.setBounds(left, top, length)
left - The absolute x position of the scrollbar on the page.top - The absolute y position of the scrollbar on the page.length - The length of the scrollbar.setEnabled(enabled)
setLocation(left, top)
left - Position of the left side,
relative to the upper-left corner of the window.top - Position of the top side,
relative to the upper-left corner of the window.setUnitIncrement(increment)
setValue(value)
value - The value of the scrollbar.setValues(value, extent, min, max)
minimum <= value <= value+extent <= maximum
value - The value of the scrollbar.extent - The extent of the scrollbar.min - The minimum value of the scrollbar.max - The maximum value of the scrollbar.setVisible(visible)
toHTML()
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |