public interface UIEvent extends Event
UIEvent接口提供了特定的语境信息与用户界面事件相关。
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE| Modifier and Type | Method and Description |
|---|---|
int |
getDetail()
指定一些关于
Event细节信息,根据事件的类型。
|
AbstractView |
getView()
的
view属性标识
AbstractView生成此事件。
|
void |
initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg)
的
initUIEvent方法是用来初始化一个
UIEvent通过
DocumentEvent界面创造价值。
|
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagationAbstractView getView()
view属性标识
AbstractView生成此事件。
int getDetail()
Event细节信息,根据事件的类型。
void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg)
initUIEvent方法是用来初始化一个
UIEvent通过
DocumentEvent界面创造价值。此方法只可在
UIEvent已派出通过
dispatchEvent方法,尽管它可能被多次调用,在这个阶段,如果有必要的话。如果调用了多次,最终的调用将优先顺序。
typeArg -指定事件类型。
canBubbleArg -指定事件是否能泡。
cancelableArg -指定是否可以阻止事件的默认行为。
viewArg -指定的
AbstractView
Event。
detailArg指定
Event的细节。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.