java.awt.event
Class AdjustmentEvent
- java.lang.Object
-
- java.util.EventObject
-
- java.awt.AWTEvent
-
- java.awt.event.AdjustmentEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class AdjustmentEvent extends AWTEventThe adjustment event emitted by Adjustable objects likeScrollbar
andScrollPane
. When the user changes the value of the scrolling component, it receives an instance ofAdjustmentEvent
.An unspecified behavior will be caused if the
id
parameter of any particularAdjustmentEvent
instance is not in the range fromADJUSTMENT_FIRST
toADJUSTMENT_LAST
.The
type
of anyAdjustmentEvent
instance takes one of the following values:-
UNIT_INCREMENT
-
UNIT_DECREMENT
-
BLOCK_INCREMENT
-
BLOCK_DECREMENT
-
TRACK
- Since:
- 1.1
- See Also:
Adjustable
,AdjustmentListener
, Serialized Form
-
-
Fields Modifier and Type Field and Description ACTION_EVENT_MASK The event mask for selecting action events.ADJUSTMENT_EVENT_MASK The event mask for selecting adjustment events.ADJUSTMENT_FIRST Marks the first integer id for the range of adjustment event ids.ADJUSTMENT_LAST Marks the last integer id for the range of adjustment event ids.ADJUSTMENT_VALUE_CHANGED The adjustment value changed event.BLOCK_DECREMENT The block decrement adjustment type.BLOCK_INCREMENT The block increment adjustment type.COMPONENT_EVENT_MASK The event mask for selecting component events.consumed Controls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not.CONTAINER_EVENT_MASK The event mask for selecting container events.FOCUS_EVENT_MASK The event mask for selecting focus events.HIERARCHY_BOUNDS_EVENT_MASK The event mask for selecting hierarchy bounds events.HIERARCHY_EVENT_MASK The event mask for selecting hierarchy events.id The event's id.INPUT_METHOD_EVENT_MASK The event mask for selecting input method events.INVOCATION_EVENT_MASK The event mask for selecting invocation events.ITEM_EVENT_MASK The event mask for selecting item events.KEY_EVENT_MASK The event mask for selecting key events.MOUSE_EVENT_MASK The event mask for selecting mouse events.MOUSE_MOTION_EVENT_MASK The event mask for selecting mouse motion events.MOUSE_WHEEL_EVENT_MASK The event mask for selecting mouse wheel events.PAINT_EVENT_MASK The event mask for selecting paint events.RESERVED_ID_MAX The maximum value for reserved AWT event IDs.source The object on which the Event initially occurred.TEXT_EVENT_MASK The event mask for selecting text events.TRACK The absolute tracking adjustment type.UNIT_DECREMENT The unit decrement adjustment type.UNIT_INCREMENT The unit increment adjustment type.WINDOW_EVENT_MASK The event mask for selecting window events.WINDOW_FOCUS_EVENT_MASK The event mask for selecting window focus events.WINDOW_STATE_EVENT_MASK The event mask for selecting window state events.
-
Methods Modifier and Type Method and Description consume Consumes this event, if this event can be consumed.getAdjustable Returns theAdjustable
object where this event originated.getAdjustmentType Returns the type of adjustment which caused the value changed event.getID Returns the event type.getSource The object on which the Event initially occurred.getValue Returns the current value in the adjustment event.getValueIsAdjusting Returnstrue
if this is one of multiple adjustment events.isConsumed Returns whether this event has been consumed.paramString Returns a string representing the state of thisEvent
.setSource Retargets an event to a new source.toString Returns a String representation of this object.
-