AWT AdjustmentEvent類


介紹

AdjustmentEvent類指調整可調物件發出的事件。

類的宣告

以下是宣告的java.awt.event.AdjustmentEvent類:

public class AdjustmentEvent
   extends AWTEvent

欄位域

以下是java.awt.Component的類的欄位:

  • static int ADJUSTMENT_FIRST -- 標誌著第一個整數ID為調整事件ID的範圍。

  • static int ADJUSTMENT_LAST -- 標誌著最後一個整數ID為調整事件ID的範圍。

  • static int ADJUSTMENT_VALUE_CHANGED -- 調整值改變事件。

  • static int BLOCK_DECREMENT -- 塊遞減調整型別。

  • static int BLOCK_INCREMENT -- 塊增量調整型別。

  • static int TRACK -- 絕對跟蹤調整型。

  • static int UNIT_DECREMENT -- 單位遞減調整型別。

  • static int UNIT_INCREMENT -- 單位增量調整型別。

類別建構函式

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