java.lang.Object | |||
↳ | java.util.EventObject | ||
↳ | java.awt.AWTEvent | ||
↳ | java.awt.event.AdjustmentEvent |
The adjustment event emitted by Adjustable objects.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ADJUSTMENT_FIRST | Marks the first integer id for the range of adjustment event ids. | |||||||||
int | ADJUSTMENT_LAST | Marks the last integer id for the range of adjustment event ids. | |||||||||
int | ADJUSTMENT_VALUE_CHANGED | The adjustment value changed event. | |||||||||
int | BLOCK_DECREMENT | The block decrement adjustment type. | |||||||||
int | BLOCK_INCREMENT | The block increment adjustment type. | |||||||||
int | TRACK | The absolute tracking adjustment type. | |||||||||
int | UNIT_DECREMENT | The unit decrement adjustment type. | |||||||||
int | UNIT_INCREMENT | The unit increment adjustment type. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an
AdjustmentEvent object with the
specified Adjustable source, event type,
adjustment type, and value. | |||||||||||
Constructs an
AdjustmentEvent object with the
specified Adjustable source, event type, adjustment type, and value. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
Adjustable object where this event originated. | |||||||||||
Returns the type of adjustment which caused the value changed
event.
| |||||||||||
Returns the current value in the adjustment event.
| |||||||||||
Returns
true if this is one of multiple
adjustment events. | |||||||||||
Returns a string representing the state of this
Event . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Marks the first integer id for the range of adjustment event ids.
Marks the last integer id for the range of adjustment event ids.
The adjustment value changed event.
The block decrement adjustment type.
The block increment adjustment type.
The absolute tracking adjustment type.
The unit decrement adjustment type.
The unit increment adjustment type.
Constructs an AdjustmentEvent
object with the
specified Adjustable
source, event type,
adjustment type, and value.
Note that passing in an invalid id
results in
unspecified behavior. This method throws an
IllegalArgumentException
if source
is null
.
source | the Adjustable object where the
event originated |
---|---|
id | the event type |
type | the adjustment type |
value | the current value of the adjustment |
IllegalArgumentException | if source is null
|
---|
Constructs an AdjustmentEvent
object with the
specified Adjustable source, event type, adjustment type, and value.
Note that passing in an invalid id
results in
unspecified behavior. This method throws an
IllegalArgumentException
if source
is null
.
source | the Adjustable object where the
event originated |
---|---|
id | the event type |
type | the adjustment type |
value | the current value of the adjustment |
isAdjusting | true if the event is one
of a series of multiple adjusting events,
otherwise false |
IllegalArgumentException | if source is null |
---|
Returns the Adjustable
object where this event originated.
Adjustable
object where this event originated
Returns the type of adjustment which caused the value changed event. It will have one of the following values:
Returns the current value in the adjustment event.
Returns true
if this is one of multiple
adjustment events.
true
if this is one of multiple
adjustment events, otherwise returns false
Returns a string representing the state of this Event
.
This method is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not be
null
.