public interface Adjustable
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdjustmentListener(AdjustmentListener
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
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.
|
@Native static final int HORIZONTAL
Adjustable has horizontal orientation.
@Native static final int VERTICAL
Adjustable has vertical orientation.
@Native static final int NO_ORIENTATION
Adjustable has no orientation.
int getOrientation()
HORIZONTAL,
VERTICAL, or
NO_ORIENTATION
void setMinimum(int min)
min - the minimum value
int getMinimum()
void setMaximum(int max)
max - the maximum value
int getMaximum()
void setUnitIncrement(int u)
u - the unit increment
int getUnitIncrement()
void setBlockIncrement(int b)
b - the block increment
int getBlockIncrement()
void setVisibleAmount(int v)
v - the length of the indicator
int getVisibleAmount()
void setValue(int v)
minimum or greater than
maximum -
visibleAmount, then one of those values is substituted, as appropriate.
Calling this method does not fire an AdjustmentEvent.
v - the current value, between
minimum and
maximum -
visibleAmount
int getValue()
void addAdjustmentListener(AdjustmentListenerl)
l - the listener to receive events
AdjustmentEvent
void removeAdjustmentListener(AdjustmentListenerl)
l - the listener being removed
AdjustmentEvent