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 -- 单元递增调整类型。

类构造函数

序号构造函数 & 描述
1

AdjustmentEvent(Adjustable source, int id, int type, int value)

使用指定的 Adjustable 源、事件类型、调整类型和值构造 AdjustmentEvent 对象。

2

AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting)

使用指定的 Adjustable 源、事件类型、调整类型和值构造 AdjustmentEvent 对象。

类方法

序号方法 & 描述
1

Adjustable getAdjustable()

返回此事件发出的 Adjustable 对象。

2

int getAdjustmentType()

返回导致值更改事件的调整类型。

3

int getValue()

返回调整事件中的当前值。

4

boolean getValueIsAdjusting()

如果这是多个调整事件之一,则返回 true。

5

String paramString()

返回表示此事件状态的字符串。

继承的方法

此接口继承自以下类的方法

  • java.awt.AWTEvent

  • java.util.EventObject

  • java.lang.Object

awt_event_classes.htm
广告
© . All rights reserved.