The Adjustable interface is useful for scrollbars, sliders, dials, and other components that have an adjustable numeric value. Classes that implement the Adjustable interface should send AdjustmentEvent objects to listeners that have registered via addAdjustmentListener(AdjustmentListener).
public abstract interface java.awt.Adjustable { // Constants public final static int HORIZONTAL = 0; public final static int VERTICAL = 1; // Interface Methods public abstract void addAdjustmentListener (AdjustmentListener l); public abstract int getBlockIncrement(); public abstract int getMaximum(); public abstract int getMinimum(); public abstract int getOrientation(); public abstract int getUnitIncrement(); public abstract int getValue(); public abstract int getVisibleAmount(); public abstract void removeAdjustmentListener (AdjustmentListener l); public abstract void setBlockIncrement (int b); public abstract void setMaximum (int max); public abstract void setMinimum (int min); public abstract void setUnitIncrement (int u); public abstract void setValue (int v); public abstract void setVisibleAmount (int v); }
A constant representing horizontal orientation.
A constant representing vertical orientation.
An object that implements the AdjustmentListener interface.
Add a listener for adjustment event.
The amount to scroll when a paging area is selected.
The maximum value that the Adjustable object can take.
The minimum value that the Adjustable object can take.
A value representing the direction of the Adjustable object.
The unit amount to scroll.
The current setting for the Adjustable object.
The current visible setting (i.e., size) for the Adjustable object.
One of the object's AdjustmentListeners.
Remove an adjustment event listener.
New block increment amount.
Changes the block increment amount for the Adjustable object.
New maximum value.
Changes the maximum value for the Adjustable object.
New minimum value.
Changes the minimum value for the Adjustable object.
New unit increment amount.
Changes the unit increment amount for the Adjustable object.
New value.
Changes the current value of the Adjustable object.
New amount visible.
Changes the current visible amount of the Adjustable object.
AdjustmentEvent, AdjustmentListener, Scrollbar
This HTML Help has been published using the chm2web software. |