Class UIAdjustmentEvent
public class UIAdjustmentEvent extends UIEvent
{
// Fields
public static final int ADJUSTMENT_VALUE_CHANGED;
public static final int BLOCK_DECREMENT;
public static final int BLOCK_INCREMENT;
public static final int TRACK;
public static final int UNIT_DECREMENT;
public static final int UNIT_INCREMENT;
// Constructors
public UIAdjustmentEvent(IUIComponent source, int id, int type,
int value);
// Methods
public int getAdjustmentType();
public int getValue();
public String paramString();
}
This class represents the adjustment event emitted by components implementing IUIScroll.
EventObject
|
+--UIBaseEvent
|
+--UIEvent
|
+--UIAdjustmentEvent
public UIAdjustmentEvent(IUIComponent source, int id, int type, int value);
Creates a UIAdjustmentEvent object with the specified IUIScroll source, type, and value.
Parameter | Description |
source
| The IUIScroll object where the event originated.
|
id
| The event type.
|
type
| The adjustment type.
|
value
| The current value of the adjustment.
|
public int getAdjustmentType();
Retrieves the type of adjustment that caused the value changed event.
Return Value:
Returns one of the following adjustment types.
public int getValue();
Retrieves the current value in the adjustment event.
Return Value:
Returns the value in the event.
public String paramString();
This method is used internally by the toString method.
Return Value:
Returns a formatted String object that assists with textual representation of the exception.
- ADJUSTMENT_VALUE_CHANGED
- The adjustment value changed event.
- BLOCK_DECREMENT
- The block decrement adjustment type.
- BLOCK_INCREMENT
- The block increment adjustment type.
- TRACK
- The absolute tracking adjustment type.
- UNIT_DECREMENT
- The unit decrement adjustment type.
- UNIT_INCREMENT
- The unit increment adjustment type.