Java™ Platform
Standard Ed. 8
java.awt
Interface Adjustable
-
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
static int |
HORIZONTAL |
Indicates that the Adjustable has horizontal orientation.
|
static int |
NO_ORIENTATION |
Indicates that the Adjustable has no orientation.
|
static int |
VERTICAL |
Indicates that the Adjustable has vertical orientation.
|
-
Method Summary
All Methods Instance Methods Abstract Methods
| Modifier and Type |
Method |
Description |
void |
addAdjustmentListener(AdjustmentListener l) |
Adds a listener to receive adjustment events when the value of
the adjustable object changes.
|
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() |
Gets the orientation of the adjustable object.
|
int |
getUnitIncrement() |
Gets the unit value increment for the adjustable object.
|
int |
getValue() |
Gets the current value of the adjustable object.
|
int |
getVisibleAmount() |
Gets the length of the proportional indicator.
|
void |
removeAdjustmentListener(AdjustmentListener l) |
Removes an adjustment listener.
|
void |
setBlockIncrement(int b) |
Sets the block value increment for the adjustable object.
|
void |
setMaximum(int max) |
Sets the maximum value of the adjustable object.
|
void |
setMinimum(int min) |
Sets the minimum value of the adjustable object.
|
void |
setUnitIncrement(int u) |
Sets the unit value increment for the adjustable object.
|
void |
setValue(int v) |
Sets the current value of the adjustable object.
|
void |
setVisibleAmount(int v) |
Sets the length of the proportional indicator of the
adjustable object.
|
-
-
Method Detail
-
setValue
void setValue(int v)
Sets the current value of the adjustable object. If
the value supplied is less than
minimum
or greater than
maximum -
visibleAmount,
then one of those values is substituted, as appropriate.
Calling this method does not fire an
AdjustmentEvent.
- Parameters:
v - the current value, between minimum
and maximum - visibleAmount
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.