|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.AdjustmentEvent
public class AdjustmentEvent
由 Adjustable 对象所发出的调整事件。
Adjustable,
AdjustmentListener,
序列化表格| 字段摘要 | |
|---|---|
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
单位增量调整类型。 |
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
AdjustmentEvent(Adjustable source,
int id,
int type,
int value)
用指定的 Adjustable 源、事件类型、调整类型和值构造一个 AdjustmentEvent 对象。 |
|
AdjustmentEvent(Adjustable source,
int id,
int type,
int value,
boolean isAdjusting)
用指定的 Adjustable 源、事件类型、调整类型和值构造一个 AdjustmentEvent 对象。 |
|
| 方法摘要 | |
|---|---|
Adjustable |
getAdjustable()
返回发起此事件的 Adjustable 对象。 |
int |
getAdjustmentType()
返回导致值更改事件的调整类型。 |
int |
getValue()
返回调整事件中的当前值。 |
boolean |
getValueIsAdjusting()
如果此事件是多个调整事件之一,则返回 true。 |
String |
paramString()
返回表示此 Event 状态的字符串。 |
| 从类 java.awt.AWTEvent 继承的方法 |
|---|
consume, getID, isConsumed, setSource, toString |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int ADJUSTMENT_FIRST
public static final int ADJUSTMENT_LAST
public static final int ADJUSTMENT_VALUE_CHANGED
public static final int UNIT_INCREMENT
public static final int UNIT_DECREMENT
public static final int BLOCK_DECREMENT
public static final int BLOCK_INCREMENT
public static final int TRACK
| 构造方法详细信息 |
|---|
public AdjustmentEvent(Adjustable source,
int id,
int type,
int value)
Adjustable 源、事件类型、调整类型和值构造一个 AdjustmentEvent 对象。
注意,传入无效 id 会导致未指定的行为。如果 source 为 null,则此方法抛出 IllegalArgumentException。
source - 发起事件的 Adjustable 对象id - 事件类型type - 调整类型value - 当前调整值
IllegalArgumentException - 如果 source 为 null
public AdjustmentEvent(Adjustable source,
int id,
int type,
int value,
boolean isAdjusting)
AdjustmentEvent 对象。
注意,传入无效 id 会导致未指定的行为。如果 source 为 null,则此方法抛出 IllegalArgumentException。
source - 发起事件的 Adjustable 对象id - 事件类型type - 调整类型value - 当前调整值isAdjusting - 如果事件是连续多个调整事件之一,则该参数为 true,否则为 false
IllegalArgumentException - 如果 source 为 null| 方法详细信息 |
|---|
public Adjustable getAdjustable()
Adjustable 对象。
Adjustable 对象public int getValue()
public int getAdjustmentType()
public boolean getValueIsAdjusting()
true。
true;否则返回 falsepublic String paramString()
AWTEvent 复制的描述Event 状态的字符串。此方法仅在进行调试的时候使用,返回的字符串的内容和格式也根据不同的实现而不同。返回的字符串可以为空,但不可以为 null。
AWTEvent 中的 paramString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。