java.lang.Object | |
↳ | java.awt.ScrollPaneAdjustable |
This class represents the state of a horizontal or vertical
scrollbar of a ScrollPane
. Objects of this class are
returned by ScrollPane
methods.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.awt.Adjustable
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified adjustment listener to receive adjustment
events from this
ScrollPaneAdjustable . | |||||||||||
Returns an array of all the adjustment listeners
registered on this
ScrollPaneAdjustable . | |||||||||||
Gets the block value increment for the adjustable object.
| |||||||||||
Gets the maximum value of the adjustable object.
| |||||||||||
Gets the minimum value of the adjustable object.
| |||||||||||
Returns the orientation of this scrollbar.
| |||||||||||
Gets the unit value increment for the adjustable object.
| |||||||||||
Gets the current value of the adjustable object.
| |||||||||||
Returns true if the value is in the process of changing as a
result of actions being taken by the user.
| |||||||||||
Gets the length of the proportional indicator.
| |||||||||||
Returns a string representing the state of this scrollbar.
| |||||||||||
Removes the specified adjustment listener so that it no longer
receives adjustment events from this
ScrollPaneAdjustable . | |||||||||||
Sets the block value increment for the adjustable object.
| |||||||||||
This method should NOT be called by user code.
| |||||||||||
This method should NOT be called by user code.
| |||||||||||
Sets the unit value increment for the adjustable object.
| |||||||||||
Sets the value of this scrollbar to the specified value.
| |||||||||||
Sets the
valueIsAdjusting property. | |||||||||||
This method should NOT be called by user code.
| |||||||||||
Returns a string representation of this scrollbar and its values.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.awt.Adjustable
|
Adds the specified adjustment listener to receive adjustment
events from this 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.
l | the adjustment listener. |
---|
Returns an array of all the adjustment listeners
registered on this ScrollPaneAdjustable
.
ScrollPaneAdjustable
's
AdjustmentListener
s
or an empty array if no adjustment
listeners are currently registeredGets the block value increment for the adjustable object.
Gets the maximum value of the adjustable object.
Gets the minimum value of the adjustable object.
Returns the orientation of this scrollbar.
Adjustable.HORIZONTAL
or
Adjustable.VERTICAL
Gets the unit value increment for the adjustable object.
Gets the current value of the adjustable object.
Returns true if the value is in the process of changing as a result of actions being taken by the user.
valueIsAdjusting
propertyGets the length of the proportional indicator.
Returns a string representing the state of this scrollbar.
This method is intended to be used only for debugging purposes,
and the content and format of the returned string may vary
between implementations. The returned string may be empty but
may not be null
.
Removes the specified adjustment listener so that it no longer
receives adjustment events from this 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.
l | the adjustment listener. |
---|
Sets the block value increment for the adjustable object.
b | the block increment |
---|
This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable
interface.
max | the maximum value |
---|
Always throws an error when called. |
This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable
interface.
min | the minimum value |
---|
Always throws an error when called. |
Sets the unit value increment for the adjustable object.
u | the unit increment |
---|
Sets the value of this scrollbar to the specified value.
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.
v | the new value of the scrollbar |
---|
Sets the valueIsAdjusting
property.
b | new adjustment-in-progress status |
---|
This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable
interface.
v | the length of the indicator |
---|
Always throws an error when called. |
Returns a string representation of this scrollbar and its values.