|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface UIEvent
UIEvent 介面提供與使用者介面事件相關聯的特定上下文資訊。
另請參見《Document Object Model (DOM) Level 2 Events Specification》。
| 欄位摘要 |
|---|
| 從介面 org.w3c.dom.events.Event 繼承的欄位 |
|---|
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE |
| 方法摘要 | |
|---|---|
int |
getDetail()
指定關於 Event 的一些詳細資訊,具體取決於事件的型別。 |
org.w3c.dom.views.AbstractView |
getView()
view 屬性標識產生事件的 AbstractView。 |
void |
initUIEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
org.w3c.dom.views.AbstractView viewArg,
int detailArg)
initUIEvent 方法用於初始化通過 DocumentEvent 介面創建的 UIEvent 的值。 |
| 從介面 org.w3c.dom.events.Event 繼承的方法 |
|---|
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation |
| 方法詳細資訊 |
|---|
org.w3c.dom.views.AbstractView getView()
view 屬性標識產生事件的 AbstractView。
int getDetail()
Event 的一些詳細資訊,具體取決於事件的型別。
void initUIEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
org.w3c.dom.views.AbstractView viewArg,
int detailArg)
initUIEvent 方法用於初始化通過 DocumentEvent 介面創建的 UIEvent 的值。此方法只能在通過 dispatchEvent 方法指派了 UIEvent 方法之前調用,儘管在該階段可以多次調用它(如有必要)。如果被多次調用,則最後一次調用優先。
typeArg - 指定事件型別。canBubbleArg - 指定該事件是否可以 bubble。cancelableArg - 指定是否可以阻止事件的預設操作。viewArg - 指定 Event 的 AbstractView。detailArg - 指定 Event 的詳細資訊。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。