JScrollBar

Extends
JComponent
Methods
13
Fields
3

Getting one

JScrollBar.new()
JScrollPane.new():getVerticalScrollBar()
JScrollPane.new():getHorizontalScrollBar()

Methods

MethodReturnsDescription
getOrientation()numberThe orientation.
setUnitIncrement(number)()How far one arrow step or wheel line scrolls (the look sets 16).
getUnitIncrement()numberThe unit increment.
setBlockIncrement(number)()How far a page step scrolls.
getBlockIncrement()numberThe block increment.
getValue()numberThe value: where the visible part starts.
setValue(number)()Scrolls to value (clamped to the range); the scroll pane's view follows.
getMinimum()numberThe range's minimum.
getMaximum()numberThe range's maximum.
getVisibleAmount()numberThe visible amount (the model's extent).
new()JScrollBar() -> JScrollBar: A vertical scroll bar.
new(number)JScrollBar
init(JScrollBar)()(JScrollBar) -> (): A vertical scroll bar.
init(JScrollBar, number)()
isInstance(any)booleanWhether obj is a JScrollBar object, a class(JScrollBar) subclass's included.

Fields

FieldTypeDescription
HORIZONTALnumberAdjustable.HORIZONTAL: 0.
VERTICALnumberAdjustable.VERTICAL: 1.
superJComponentClassJComponent's class table: the base class.

Returned by

MethodReturnsDescription
JScrollBarClass.newJScrollBar() -> JScrollBar: A vertical scroll bar.
JScrollPane.getHorizontalScrollBarJScrollBar?The horizontal scroll bar.
JScrollPane.getVerticalScrollBarJScrollBar?The vertical scroll bar.

Method details

setValue

setValue: (JScrollBar, number) -> ()

Scrolls to value (clamped to the range); the scroll pane's view follows.

new

new: (() -> JScrollBar) & ((number) -> JScrollBar)

() -> JScrollBar: A vertical scroll bar.

(number) -> JScrollBar: A scroll bar along orientation (JScrollBar.HORIZONTAL, VERTICAL).

init

init: ((JScrollBar) -> ()) & ((JScrollBar, number) -> ())

(JScrollBar) -> (): A vertical scroll bar.

(JScrollBar, number) -> (): A scroll bar along orientation (JScrollBar.HORIZONTAL, VERTICAL).

isInstance

isInstance: (any) -> boolean

Whether obj is a JScrollBar object, a class(JScrollBar) subclass's included.