| |
|
| java.awt.AWTEvent java.awt.event.AdjustmentEvent
Field Summary | |
final public static int | ADJUSTMENT_FIRST Marks the first integer id for the range of adjustment event ids. | final public static int | ADJUSTMENT_LAST Marks the last integer id for the range of adjustment event ids. | final public static int | ADJUSTMENT_VALUE_CHANGED The adjustment value changed event. | final public static int | BLOCK_DECREMENT The block decrement adjustment type. | final public static int | BLOCK_INCREMENT The block increment adjustment type. | final public static int | TRACK The absolute tracking adjustment type. | final public static int | UNIT_DECREMENT The unit decrement adjustment type. | final public static int | UNIT_INCREMENT The unit increment adjustment type. | Adjustable | adjustable The adjustable object that fired the event. | int | adjustmentType The adjustmentType describes how the adjustable
object value has changed. | boolean | isAdjusting The isAdjusting is true if the event is one
of the series of multiple adjustment events. | int | value value will contain the new value of the
adjustable object. |
Constructor Summary | |
public | AdjustmentEvent(Adjustable source, int id, int type, int value) Constructs an AdjustmentEvent object with the
specified Adjustable source, event type,
adjustment type, and value. | public | AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting) 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. |
ADJUSTMENT_FIRST | final public static int ADJUSTMENT_FIRST(Code) | | Marks the first integer id for the range of adjustment event ids.
|
ADJUSTMENT_LAST | final public static int ADJUSTMENT_LAST(Code) | | Marks the last integer id for the range of adjustment event ids.
|
ADJUSTMENT_VALUE_CHANGED | final public static int ADJUSTMENT_VALUE_CHANGED(Code) | | The adjustment value changed event.
|
BLOCK_DECREMENT | final public static int BLOCK_DECREMENT(Code) | | The block decrement adjustment type.
|
BLOCK_INCREMENT | final public static int BLOCK_INCREMENT(Code) | | The block increment adjustment type.
|
TRACK | final public static int TRACK(Code) | | The absolute tracking adjustment type.
|
UNIT_DECREMENT | final public static int UNIT_DECREMENT(Code) | | The unit decrement adjustment type.
|
UNIT_INCREMENT | final public static int UNIT_INCREMENT(Code) | | The unit increment adjustment type.
|
adjustmentType | int adjustmentType(Code) | | The adjustmentType describes how the adjustable
object value has changed.
This value can be increased/decreased by a block or unit amount
where the block is associated with page increments/decrements,
and a unit is associated with line increments/decrements.
See Also: AdjustmentEvent.getAdjustmentType |
value | int value(Code) | | value will contain the new value of the
adjustable object. This value will always be in a
range associated adjustable object.
See Also: AdjustmentEvent.getValue |
AdjustmentEvent | public AdjustmentEvent(Adjustable source, int id, int type, int value)(Code) | | 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 .
Parameters: source - the Adjustable object where theevent originated Parameters: id - the event type Parameters: type - the adjustment type Parameters: value - the current value of the adjustment throws: IllegalArgumentException - if source is null |
AdjustmentEvent | public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting)(Code) | | 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 .
Parameters: source - the Adjustable object where theevent originated Parameters: id - the event type Parameters: type - the adjustment type Parameters: value - the current value of the adjustment Parameters: isAdjusting - true if the event is oneof a series of multiple adjusting events,otherwise false throws: IllegalArgumentException - if source is null since: 1.4 |
getAdjustable | public Adjustable getAdjustable()(Code) | | Returns the Adjustable object where this event originated.
the Adjustable object where this event originated |
getAdjustmentType | public int getAdjustmentType()(Code) | | Returns the type of adjustment which caused the value changed
event. It will have one of the following values:
one of the adjustment values listed above |
getValue | public int getValue()(Code) | | Returns the current value in the adjustment event.
the current value in the adjustment event |
getValueIsAdjusting | public boolean getValueIsAdjusting()(Code) | | Returns true if this is one of multiple
adjustment events.
true if this is one of multipleadjustment events, otherwise returns false since: 1.4 |
|
|
|