swingwt.awt.event
Class AdjustmentEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byswingwt.awt.AWTEvent
          extended byswingwt.awt.event.AdjustmentEvent
All Implemented Interfaces:
java.io.Serializable

public class AdjustmentEvent
extends AWTEvent

The adjustment event emitted by Adjustable objects.

See Also:
Serialized Form

Field Summary
static int ADJUSTMENT_FIRST
           
static int ADJUSTMENT_LAST
           
static int ADJUSTMENT_VALUE_CHANGED
           
static int BLOCK_DECREMENT
           
static int BLOCK_INCREMENT
           
static int TRACK
           
static int UNIT_DECREMENT
           
static int UNIT_INCREMENT
           
 
Fields inherited from class swingwt.awt.AWTEvent
consumed, eventID
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AdjustmentEvent(Adjustable source, int id, int type, int value)
           
AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting)
           
 
Method Summary
 Adjustable getAdjustable()
           
 int getAdjustmentType()
           
 int getValue()
           
 boolean getValueIsAdjusting()
           
 
Methods inherited from class swingwt.awt.AWTEvent
consume, getID, isConsumed, setSource
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADJUSTMENT_FIRST

public static final int ADJUSTMENT_FIRST
See Also:
Constant Field Values

ADJUSTMENT_LAST

public static final int ADJUSTMENT_LAST
See Also:
Constant Field Values

ADJUSTMENT_VALUE_CHANGED

public static final int ADJUSTMENT_VALUE_CHANGED
See Also:
Constant Field Values

UNIT_INCREMENT

public static final int UNIT_INCREMENT
See Also:
Constant Field Values

UNIT_DECREMENT

public static final int UNIT_DECREMENT
See Also:
Constant Field Values

BLOCK_DECREMENT

public static final int BLOCK_DECREMENT
See Also:
Constant Field Values

BLOCK_INCREMENT

public static final int BLOCK_INCREMENT
See Also:
Constant Field Values

TRACK

public static final int TRACK
See Also:
Constant Field Values
Constructor Detail

AdjustmentEvent

public AdjustmentEvent(Adjustable source,
                       int id,
                       int type,
                       int value)
Parameters:
source - the Adjustable object where the event originated
id - the event type
type - the adjustment type
value - the current value of the adjustment

AdjustmentEvent

public AdjustmentEvent(Adjustable source,
                       int id,
                       int type,
                       int value,
                       boolean isAdjusting)
Parameters:
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,
Method Detail

getAdjustable

public Adjustable getAdjustable()
Returns:
the Adjustable object where this event originated

getValue

public int getValue()
Returns:
the current value in the adjustment event

getAdjustmentType

public int getAdjustmentType()
Returns:
one of the adjustment values listed above

getValueIsAdjusting

public boolean getValueIsAdjusting()
Returns:
true if this is one of multiple adjustment events