|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt
Interface Adjustable

- All Known Implementing Classes:
- Scrollbar, ScrollPaneAdjustable
- 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.
- Since:
- 1.0
| 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(java.awt.event.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(java.awt.event.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 |
HORIZONTAL
public static final int HORIZONTAL
- Constant for an adjustable object with horizontal orientation.
- See Also:
- Constant Field Values
VERTICAL
public static final int VERTICAL
- Constant for an adjustable object with vertical orientation.
- See Also:
- Constant Field Values
NO_ORIENTATION
public static final int NO_ORIENTATION
- Constant for an adjustable object with no orientation.
- See Also:
- Constant Field Values
| Method Detail |
getOrientation
public int getOrientation()
- Returns a constant representing the orientation of the object.
setMinimum
public void setMinimum(int minimum)
- Sets the minimum value this object can have.
getMinimum
public int getMinimum()
- Returns the minimum value this object can have.
setMaximum
public void setMaximum(int maximum)
- Sets the maximum value this object can have.
getMaximum
public int getMaximum()
- Returns the maximum value this object can have.
setUnitIncrement
public void setUnitIncrement(int increment)
- Sets the increment value for incrementing the value by units.
getUnitIncrement
public int getUnitIncrement()
- Returns the increment value for incrementing the value by units.
setBlockIncrement
public void setBlockIncrement(int increment)
- Sets the increment value for incrementing the value by blocks.
getBlockIncrement
public int getBlockIncrement()
- Returns the increment value for incrementing the value by blocks.
setVisibleAmount
public void setVisibleAmount(int length)
- Sets the length of the indicator for this object to the specified value.
getVisibleAmount
public int getVisibleAmount()
- Returns the length of the indicator for this object.
setValue
public void setValue(int value)
- Sets the current value of the object.
getValue
public int getValue()
- Returns the current value of the object.
addAdjustmentListener
public void addAdjustmentListener(java.awt.event.AdjustmentListener listener)
- Adds a listener that will receive adjustment events for this object.
removeAdjustmentListener
public void removeAdjustmentListener(java.awt.event.AdjustmentListener listener)
- Removes an adjustment listener from this object.
|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC