java.awt.event
public class AdjustmentEvent extends AWTEvent
Since: 1.1
See Also: Adjustable AdjustmentListener
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
static int | ADJUSTMENT_FIRST This is the first id in the range of ids used by adjustment events. |
static int | ADJUSTMENT_LAST This is the last id in the range of ids used by adjustment events. |
static int | ADJUSTMENT_VALUE_CHANGED This is the id indicating an adjustment value changed. |
static int | BLOCK_DECREMENT Adjustment type for block decrements. |
static int | BLOCK_INCREMENT Adjustment type for block increments. |
static int | TRACK Adjustment type for tracking adjustments. |
static int | UNIT_DECREMENT Adjustment type for unit decrements. |
static int | UNIT_INCREMENT Adjustment type for unit increments. |
Constructor Summary | |
---|---|
AdjustmentEvent(Adjustable source, int id, int type, int value)
Initializes an instance of AdjustmentEvent with the
specified source, id, type, and value. | |
AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting)
Initializes an instance of AdjustmentEvent with the
specified source, id, type, and value. |
Method Summary | |
---|---|
Adjustable | getAdjustable()
This method returns the source of the event as an Adjustable .
|
int | getAdjustmentType()
Returns the type of the event, which will be one of
{@link #UNIT_INCREMENT}, {@link #UNIT_DECREMENT},
{@link #BLOCK_INCREMENT}, {@link #BLOCK_DECREMENT}, or {@link #TRACK}.
|
int | getValue()
Returns the new value of the adjustable object.
|
boolean | getValueIsAdjusting()
Test if this event is part of a sequence of multiple adjustements.
|
String | paramString()
Returns a string that describes the event. |
AdjustmentEvent
with the
specified source, id, type, and value. Note that an invalid id leads to
unspecified results.
Parameters: source the source of the event id the event id type the event type, one of the constants of this class value the value of the adjustment
Throws: IllegalArgumentException if source is null
AdjustmentEvent
with the
specified source, id, type, and value. Note that an invalid id leads to
unspecified results.
Parameters: source the source of the event id the event id type the event type, one of the constants of this class value the value of the adjustment isAdjusting if this event is in a chain of adjustments
Throws: IllegalArgumentException if source is null
Since: 1.4
Adjustable
.
Returns: the Adjustable
source of the event
Returns: the type of the event
Returns: the value of the event
Returns: true if this is not the last adjustment
Since: 1.4
"ADJUSTMENT_VALUE_CHANGED,adjType=" + <type> + ",value="
+ getValue() + ",isAdjusting=" + getValueIsAdjusting()
, where
type is the name of the constant returned by getAdjustmentType().
Returns: a string that describes the event