Serializable
The adjustment event emitted by Adjustable objects like
Scrollbar
and
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
Assigning the value different from listed above will cause an unspecified behavior.
Fields
static final int
Marks the first integer id for the range of adjustment event ids.
static final int
Marks the last integer id for the range of adjustment event ids.
static final int
The adjustment value changed event.
static final int
The block decrement adjustment type.
static final int
The block increment adjustment type.
static final int
The absolute tracking adjustment type.
static final int
The unit decrement adjustment type.
static final int
The unit increment adjustment type.
Fields declared in class java.awt.AWTEventACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
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.
Returns the Adjustable
object where this event originated.
int
Returns the type of adjustment which caused the value changed event.
int
Returns the current value in the adjustment event.
boolean
Returns true
if this is one of multiple adjustment events.
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.
The unit increment adjustment type.
The unit decrement adjustment type.
The block decrement adjustment type.
The block increment adjustment type.
The absolute tracking adjustment type.
Constructs an
AdjustmentEvent
object with the specified
Adjustable
source, event type, adjustment type, and value.
This method throws an IllegalArgumentException
if source
is null
.
source
- The Adjustable
object where the event originated
id
- An integer indicating the type of event. For information on allowable values, see the class description for AdjustmentEvent
type
- An integer indicating the adjustment type. For information on allowable values, see the class description for AdjustmentEvent
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.
This method throws an IllegalArgumentException
if source
is null
.
source
- The Adjustable
object where the event originated
id
- An integer indicating the type of event. For information on allowable values, see the class description for AdjustmentEvent
type
- An integer indicating the adjustment type. For information on allowable values, see the class description for AdjustmentEvent
value
- The current value of the adjustment
isAdjusting
- A boolean that equals 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
public int getValue()
Returns the current value in the adjustment event.
public int getAdjustmentType()
public boolean getValueIsAdjusting()
Returns true
if this is one of multiple adjustment events.
true
if this is one of multiple adjustment events, otherwise returns false
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4