AdjustableNameAdjustable
DescriptionThe 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). Interface Definition
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); } ConstantsHORIZONTALpublic static final int HORIZONTALA constant representing horizontal orientation. VERTICALpublic static final int VERTICALA constant representing vertical orientation. Interface MethodsaddAdjustmentListenerpublic abstract void addAdjustmentListener (ActionListener l)
getBlockIncrementpublic abstract int getBlockIncrement()
getMaximumpublic abstract int getMaximum()
getMinimumpublic abstract int getMinimum()
getOrientationpublic abstract int getOrientation()
getUnitIncrementpublic abstract int getUnitIncrement()
getValuepublic abstract int getValue()
getVisibleAmountpublic abstract int getVisibleAmount()
removeAdjustmentListenerpublic abstract void removeAdjustmentListener (AdjustmentListener l)
setBlockIncrementpublic abstract void setBlockIncrement (int b)
setMaximumpublic abstract void setMaximum (int max)
setMinimumpublic abstract void setMinimum (int min)
setUnitIncrementpublic abstract void setUnitIncrement (int u)
setValuepublic abstract void setValue (int v)
setVisibleAmountpublic abstract void setVisibleAmount (int v)
See AlsoAdjustmentEvent, AdjustmentListener, Scrollbar |
|