public interface java.awt
Adjustable


Show All Login
Java SE 6
  
Implemented by: JScrollBar, Scrollbar, ScrollPaneAdjustable
Details
The interface for objects which have an adjustable numeric value contained within a bounded range of values.
version1.19 11/17/05

Fields
final public static int HORIZONTAL
Indicates that the Adjustable has horizontal orientation.
final public static int VERTICAL
Indicates that the Adjustable has vertical orientation.
final public static int NO_ORIENTATION
Indicates that the Adjustable has no orientation.

Methods
public void addAdjustmentListener(AdjustmentListener l) Details
Adds a listener to receive adjustment events when the value of the adjustable object changes.
lthe listener to receive events
See also java.awt.event.AdjustmentEvent
public void removeAdjustmentListener(AdjustmentListener l) Details
Removes an adjustment listener.
lthe listener being removed
See also java.awt.event.AdjustmentEvent

Properties
public void setBlockIncrement(int b) Details
Sets the block value increment for the adjustable object.
bthe block increment
public int getBlockIncrement() Details
Gets the block value increment for the adjustable object.
returnthe block value increment for the adjustable object
public void setMaximum(int max) Details
Sets the maximum value of the adjustable object.
maxthe maximum value
public int getMaximum() Details
Gets the maximum value of the adjustable object.
returnthe maximum value of the adjustable object
public void setMinimum(int min) Details
Sets the minimum value of the adjustable object.
minthe minimum value
public int getMinimum() Details
Gets the minimum value of the adjustable object.
returnthe minimum value of the adjustable object
public int getOrientation() Details
Gets the orientation of the adjustable object.
returnthe orientation of the adjustable object; either HORIZONTAL, VERTICAL, or NO_ORIENTATION
public void setUnitIncrement(int u) Details
Sets the unit value increment for the adjustable object.
uthe unit increment
public int getUnitIncrement() Details
Gets the unit value increment for the adjustable object.
returnthe unit value increment for the adjustable object
public void setValue(int v) Details
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.
vthe current value, between minimum and maximum - visibleAmount

public int getValue() Details
Gets the current value of the adjustable object.
returnthe current value of the adjustable object
public void setVisibleAmount(int v) Details
Sets the length of the proportional indicator of the adjustable object.
vthe length of the indicator
public int getVisibleAmount() Details
Gets the length of the proportional indicator.
returnthe length of the proportional indicator