ScrollPane
. Objects of this class are
returned by ScrollPane
methods.HORIZONTAL, NO_ORIENTATION, VERTICAL
Modifier and Type | Method and Description |
---|---|
void |
addAdjustmentListener(AdjustmentListener l)
Adds the specified adjustment listener to receive adjustment
events from this
ScrollPaneAdjustable . |
AdjustmentListener[] |
getAdjustmentListeners()
Returns an array of all the adjustment listeners
registered on this
ScrollPaneAdjustable . |
int |
getBlockIncrement()
Gets the block value increment for the adjustable object.
|
int |
getMaximum()
Gets the maximum value of the adjustable object.
|
int |
getMinimum()
Gets the minimum value of the adjustable object.
|
int |
getOrientation()
Returns the orientation of this scrollbar.
|
int |
getUnitIncrement()
Gets the unit value increment for the adjustable object.
|
int |
getValue()
Gets the current value of the adjustable object.
|
boolean |
getValueIsAdjusting()
Returns true if the value is in the process of changing as a
result of actions being taken by the user.
|
int |
getVisibleAmount()
Gets the length of the proportional indicator.
|
java.lang.String |
paramString()
Returns a string representing the state of this scrollbar.
|
void |
removeAdjustmentListener(AdjustmentListener l)
Removes the specified adjustment listener so that it no longer
receives adjustment events from this
ScrollPaneAdjustable . |
void |
setBlockIncrement(int b)
Sets the block value increment for the adjustable object.
|
void |
setMaximum(int max)
This method should NOT be called by user code.
|
void |
setMinimum(int min)
This method should NOT be called by user code.
|
void |
setUnitIncrement(int u)
Sets the unit value increment for the adjustable object.
|
void |
setValue(int v)
Sets the value of this scrollbar to the specified value.
|
void |
setValueIsAdjusting(boolean b)
Sets the
valueIsAdjusting property. |
void |
setVisibleAmount(int v)
This method should NOT be called by user code.
|
java.lang.String |
toString()
Returns a string representation of this scrollbar and its values.
|
getOrientation
in interface Adjustable
Adjustable.HORIZONTAL
or
Adjustable.VERTICAL
Adjustable
interface.setMinimum
in interface Adjustable
min
- the minimum valueAWTError
- Always throws an error when called.Adjustable
getMinimum
in interface Adjustable
Adjustable
interface.setMaximum
in interface Adjustable
max
- the maximum valueAWTError
- Always throws an error when called.Adjustable
getMaximum
in interface Adjustable
Adjustable
setUnitIncrement
in interface Adjustable
u
- the unit incrementAdjustable
getUnitIncrement
in interface Adjustable
Adjustable
setBlockIncrement
in interface Adjustable
b
- the block incrementAdjustable
getBlockIncrement
in interface Adjustable
Adjustable
interface.setVisibleAmount
in interface Adjustable
v
- the length of the indicatorAWTError
- Always throws an error when called.Adjustable
getVisibleAmount
in interface Adjustable
valueIsAdjusting
property.b
- new adjustment-in-progress statusgetValueIsAdjusting()
valueIsAdjusting
propertysetValueIsAdjusting(boolean)
If the value supplied is less than the current minimum or greater than the current maximum, then one of those values is substituted, as appropriate.
setValue
in interface Adjustable
v
- the new value of the scrollbarAdjustable
getValue
in interface Adjustable
ScrollPaneAdjustable
.
If l
is null
, no exception is thrown
and no action is performed.
Refer to AWT Threading Issues for details on AWT's threading model.
addAdjustmentListener
in interface Adjustable
l
- the adjustment listener.removeAdjustmentListener(java.awt.event.AdjustmentListener)
,
getAdjustmentListeners()
,
AdjustmentListener
,
AdjustmentEvent
ScrollPaneAdjustable
.
If l
is null
, no exception is thrown
and no action is performed.
Refer to AWT Threading Issues for details on AWT's threading model.
removeAdjustmentListener
in interface Adjustable
l
- the adjustment listener.addAdjustmentListener(java.awt.event.AdjustmentListener)
,
getAdjustmentListeners()
,
AdjustmentListener
,
AdjustmentEvent
ScrollPaneAdjustable
.ScrollPaneAdjustable
's
AdjustmentListener
s
or an empty array if no adjustment
listeners are currently registeredaddAdjustmentListener(java.awt.event.AdjustmentListener)
,
removeAdjustmentListener(java.awt.event.AdjustmentListener)
,
AdjustmentListener
,
AdjustmentEvent
toString
in class java.lang.Object
null
.