|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Adjustable
This interface is for objects that take a numeric value that can be adjusted within a bounded range. For example, a scroll bar.
| Field Summary | |
|---|---|
static int |
HORIZONTAL
Constant for an adjustable object with horizontal orientation. |
static int |
NO_ORIENTATION
Constant for an adjustable object with no orientation. |
static int |
VERTICAL
Constant for an adjustable object with vertical orientation. |
| Method Summary | |
|---|---|
void |
addAdjustmentListener(AdjustmentListener listener)
Adds a listener that will receive adjustment events for this object. |
int |
getBlockIncrement()
Returns the increment value for incrementing the value by blocks. |
int |
getMaximum()
Returns the maximum value this object can have. |
int |
getMinimum()
Returns the minimum value this object can have. |
int |
getOrientation()
Returns a constant representing the orientation of the object. |
int |
getUnitIncrement()
Returns the increment value for incrementing the value by units. |
int |
getValue()
Returns the current value of the object. |
int |
getVisibleAmount()
Returns the length of the indicator for this object. |
void |
removeAdjustmentListener(AdjustmentListener listener)
Removes an adjustment listener from this object. |
void |
setBlockIncrement(int increment)
Sets the increment value for incrementing the value by blocks. |
void |
setMaximum(int maximum)
Sets the maximum value this object can have. |
void |
setMinimum(int minimum)
Sets the minimum value this object can have. |
void |
setUnitIncrement(int increment)
Sets the increment value for incrementing the value by units. |
void |
setValue(int value)
Sets the current value of the object. |
void |
setVisibleAmount(int length)
Sets the length of the indicator for this object to the specified value. |
| Field Detail |
|---|
static final int HORIZONTAL
static final int VERTICAL
static final int NO_ORIENTATION
| Method Detail |
|---|
int getOrientation()
HORIZONTAL,
VERTICAL,
NO_ORIENTATIONvoid setMinimum(int minimum)
minimum - the new minimum valueint getMinimum()
void setMaximum(int maximum)
maximum - the new maximum valueint getMaximum()
void setUnitIncrement(int increment)
increment - the unit increment valueint getUnitIncrement()
void setBlockIncrement(int increment)
increment - the block increment valueint getBlockIncrement()
void setVisibleAmount(int length)
length - the indicator lengthint getVisibleAmount()
void setValue(int value)
value - the new valueint getValue()
void addAdjustmentListener(AdjustmentListener listener)
listener - the adjustment listener to addAdjustmentEventvoid removeAdjustmentListener(AdjustmentListener listener)
listener - the adjustment listener to removeAdjustmentEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||