java.awt.Scrollbar and java.awt.ScrollPane .
When the user changes the value of the scrolling component,
it receives an instance of AdjustmentEvent.
An unspecified behavior will be caused if the id parameter
of any particular AdjustmentEvent instance is not
in the range from ADJUSTMENT_FIRST to ADJUSTMENT_LAST.
The type of any AdjustmentEvent instance takes one of the following
values:
UNIT_INCREMENT
UNIT_DECREMENT
BLOCK_INCREMENT
BLOCK_DECREMENT
TRACK
java.awt.Adjustable , AdjustmentListener
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Adjustable | adjustable
The adjustable object that fired the event. |
| public static final int | ADJUSTMENT_FIRST
Marks the first integer id for the range of adjustment event ids. |
| public static final int | ADJUSTMENT_LAST
Marks the last integer id for the range of adjustment event ids. |
| public static final int | ADJUSTMENT_VALUE_CHANGED
The adjustment value changed event. |
| pack-priv int | adjustmentType
The |
| public static final int | BLOCK_DECREMENT
The block decrement adjustment type. |
| public static final int | BLOCK_INCREMENT
The block increment adjustment type. |
| pack-priv boolean | isAdjusting
The |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability.
|
| public static final int | TRACK
The absolute tracking adjustment type. |
| public static final int | UNIT_DECREMENT
The unit decrement adjustment type. |
| public static final int | UNIT_INCREMENT
The unit increment adjustment type. |
| pack-priv int | value
|
| Access | Constructor and Description |
|---|---|
| public | AdjustmentEvent(Adjustable
The source, int Adjustable object where the
event originatedAn integer indicating the type of event.
For information on allowable values, see
the class description for id, int AdjustmentEventAn integer indicating the adjustment type.
For information on allowable values, see
the class description for type, int AdjustmentEventThe current value of the adjustment value)Constructs an |
| public | AdjustmentEvent(Adjustable
The source, int Adjustable object where the
event originatedAn integer indicating the type of event.
For information on allowable values, see
the class description for id, int AdjustmentEventAn integer indicating the adjustment type.
For information on allowable values, see
the class description for type, int AdjustmentEventThe current value of the adjustment value, boolean A boolean that equals isAdjusting)true if the event is one
of a series of multiple adjusting events,
otherwise falseConstructs an |
| Modifier and Type | Method and Description |
|---|---|
| public Adjustable | Returns: theAdjustable object where this event originatedReturns the |
| public int | Returns: one of the adjustment values listed aboveReturns the type of adjustment which caused the value changed event. |
| public int | Returns: the current value in the adjustment eventReturns the current value in the adjustment event. |
| public boolean | Returns: true if this is one of multiple
adjustment events, otherwise returns falseReturns |
| public String | paramString()
Overrides java. Returns a string representing the state of this |
| adjustable | back to summary |
|---|---|
| pack-priv Adjustable adjustable The adjustable object that fired the event.
| |
| ADJUSTMENT_FIRST | back to summary |
|---|---|
| public static final int ADJUSTMENT_FIRST Marks the first integer id for the range of adjustment event ids. | |
| ADJUSTMENT_LAST | back to summary |
|---|---|
| public static final int ADJUSTMENT_LAST Marks the last integer id for the range of adjustment event ids. | |
| ADJUSTMENT_VALUE_CHANGED | back to summary |
|---|---|
| public static final int ADJUSTMENT_VALUE_CHANGED The adjustment value changed event. | |
| adjustmentType | back to summary |
|---|---|
| pack-priv int adjustmentType The
| |
| BLOCK_DECREMENT | back to summary |
|---|---|
| public static final int BLOCK_DECREMENT The block decrement adjustment type. | |
| BLOCK_INCREMENT | back to summary |
|---|---|
| public static final int BLOCK_INCREMENT The block increment adjustment type. | |
| isAdjusting | back to summary |
|---|---|
| pack-priv boolean isAdjusting The
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.1 for interoperability. | |
| TRACK | back to summary |
|---|---|
| public static final int TRACK The absolute tracking adjustment type. | |
| UNIT_DECREMENT | back to summary |
|---|---|
| public static final int UNIT_DECREMENT The unit decrement adjustment type. | |
| UNIT_INCREMENT | back to summary |
|---|---|
| public static final int UNIT_INCREMENT The unit increment adjustment type. | |
| value | back to summary |
|---|---|
| pack-priv int value
| |
| AdjustmentEvent | back to summary |
|---|---|
| public AdjustmentEvent(Adjustable source, int id, int type, int value) Constructs an This method throws an
| |
| AdjustmentEvent | back to summary |
|---|---|
| public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting) Constructs an This method throws an
| |
| getAdjustable | back to summary |
|---|---|
| public Adjustable getAdjustable() Returns the
| |
| getAdjustmentType | back to summary |
|---|---|
| public int getAdjustmentType() Returns the type of adjustment which caused the value changed event. It will have one of the following values:
| |
| getValue | back to summary |
|---|---|
| public int getValue() Returns the current value in the adjustment event.
| |
| getValueIsAdjusting | back to summary |
|---|---|
| public boolean getValueIsAdjusting() Returns
| |
| paramString | back to summary |
|---|---|
| public String paramString() Overrides java. Doc from java. Returns a string representing the state of this | |