SWING AdjustmentEvent事件處理
AdjustmentEvent類指調整可調對象發出的事件。
類聲明
以下是聲明 java.awt.event.AdjustmentEvent類:
public class AdjustmentEvent extends AWTEvent
字段域
以下是java.awt.Component類的字段:
static int ADJUSTMENT_FIRST -- Marks the first integer id for the range of adjustment event ids.
static int ADJUSTMENT_LAST -- Marks the last integer id for the range of adjustment event ids.
static int ADJUSTMENT_VALUE_CHANGED -- The adjustment value changed event.
static int BLOCK_DECREMENT -- The block decrement adjustment type.
static int BLOCK_INCREMENT -- The block increment adjustment type.
static int TRACK -- The absolute tracking adjustment type.
static int UNIT_DECREMENT -- The unit decrement adjustment type.
static int UNIT_INCREMENT -- The unit increment adjustment type.
類構造函數
S.N.
構造函數 & 描述
1
AdjustmentEvent(Adjustable source, int id, int type, int value)
Constructs an AdjustmentEvent object with the specified Adjustable source, event type, adjustment type, and value.
2
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.
類方法
S.N.
方法 & 描述
1
Adjustable getAdjustable()
Returns the Adjustable object where this event originated.
2
int getAdjustmentType()
Returns the type of adjustment which caused the value changed event.
3
int getValue()
Returns the current value in the adjustment event.
4
boolean getValueIsAdjusting()
Returns true if this is one of multiple adjustment events.
5
String paramString()
Returns a string representing the state of this Event.
方法繼承
這個接口繼承的方法從以下類別:
java.awt.AWTEvent
java.util.EventObject
java.lang.Object