AdjustmentEvents are generated by objects that implement the Adjustable interface. Scrollbar is one example of such an object.
public class java.awt.event.AdjustmentEvent extends java.awt.AWTEvent { // Constants public final static int ADJUSTMENT_FIRST; public final static int ADJUSTMENT_LAST; public final static int ADJUSTMENT_VALUE_CHANGED; public final static int BLOCK_DECREMENT; public final static int BLOCK_INCREMENT; public final static int TRACK; public final static int UNIT_DECREMENT; public final static int UNIT_INCREMENT; // Constructors public AdjustmentEvent (Adjustable source, int id, int type, int value); // Instance Methods public Adjustable getAdjustable(); public int getAdjustmentType(); public int getValue(); public String paramString(); }
Specifies the beginning range of adjustment event ID values.
Specifies the ending range of adjustment event ID values.
Event type ID for value changed.
Adjustment type for block decrement.
Adjustment type for block increment.
Adjustment type for tracking.
Adjustment type for unit decrement.
Adjustment type for unit increment.
The object that generated the event.
The event type ID of the event.
The type of adjustment event.
The value of the Adjustable object.
Constructs an AdjustmentEvent with the given characteristics.
The source of this event.
One of the adjustment type constants.
The type will be BLOCK_DECREMENT, BLOCK_INCREMENT, TRACK, UNIT_DECREMENT, or UNIT_INCREMENT.
The new value of the Adjustable object.
String with current settings of the AdjustmentEvent.
AWTEvent.paramString()
Helper method for toString() to generate string of current settings.
Adjustable, AdjustmentListener, AWTEvent, Scrollbar