AdjustmentEvent

Name

AdjustmentEvent

[Graphic: Figure from the text]

Description

AdjustmentEvents are generated by objects that implement the Adjustable interface. Scrollbar is one example of such an object.

Class Definition

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();
}

Constants

ADJUSTMENT_FIRST

public final static int ADJUSTMENT_FIRST

Specifies the beginning range of adjustment event ID values.

ADJUSTMENT_LAST

public final static int ADJUSTMENT_LAST

Specifies the ending range of adjustment event ID values.

ADJUSTMENT_VALUE_CHANGED

public final static int ADJUSTMENT_VALUE_CHANGED

Event type ID for value changed.

BLOCK_DECREMENT

public final static int BLOCK_DECREMENT

Adjustment type for block decrement.

BLOCK_INCREMENT

public final static int BLOCK_INCREMENT

Adjustment type for block increment.

TRACK

public final static int TRACK

Adjustment type for tracking.

UNIT_DECREMENT

public final static int UNIT_DECREMENT

Adjustment type for unit decrement.

UNIT_INCREMENT

public final static int UNIT_INCREMENT

Adjustment type for unit increment.

Constructors

AdjustmentEvent

public AdjustmentEvent (Adjustable source, int id, int type, int value)

Instance Methods

getAdjustable

public Adjustable getAdjustable()

getAdjustmentType

public int getAdjustmentType()

getValue

public int getValue()

paramString

public String paramString()

See Also

Adjustable, AdjustmentListener, AWTEvent, Scrollbar