public final class DOMEventType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DOMEventType |
OnAbort
Fires when an object/image is stopped from loading before completely loaded.
当对象/图像在完全加载之前停止加载时触发。 |
static DOMEventType |
OnBlur
Fires when an element loses focus either via the pointing device or by tabbing navigation.
当元素通过定位设备或通过制表键导航失去焦点时触发。 |
static DOMEventType |
OnChange
Fires when a control loses the input focus and its value has been modified since gaining focus.
当控件失去输入焦点并且自获得焦点以来其值已被修改时触发。 |
static DOMEventType |
OnClick
Fires when the pointing device button is clicked over an element.
在元素上单击定位设备按钮时触发。 |
static DOMEventType |
OnDoubleClick
Fires when the pointing device button is double clicked over an element.
在元素上双击指针设备按钮时触发。 |
static DOMEventType |
OnError
Fires when an object/image/frame cannot be loaded properly.
当无法正确加载对象/图像/框架时触发。 |
static DOMEventType |
OnFocus
Fires when an element receives focus either via the pointing device or by tab navigation.
当元素通过定位设备或选项卡导航获得焦点时触发。 |
static DOMEventType |
OnKeyDown
Fires before keypress, when a key on the keyboard is pressed.
当按下键盘上的某个键时,会在按键之前触发。 |
static DOMEventType |
OnKeyPress
Fires after keydown, when a key on the keyboard is pressed.
当按下键盘上的某个键时,在按下键后触发。 |
static DOMEventType |
OnKeyUp
Fires when a key on the keyboard is released
释放键盘上的键时触发 |
static DOMEventType |
OnLoad
Fires when the user agent finishes loading all content within a document, including window, frames, objects and images.
用户代理完成文档中所有内容的加载(包括窗口,框架,对象和图像)时触发。 |
static DOMEventType |
OnMouseDown
Fires when the pointing device button is pressed over an element.
在元素上按下定位设备按钮时触发。 |
static DOMEventType |
OnMouseMove
Fires when the pointing device is moved while it is over an element.
当定点设备在元素上方移动时触发。 |
static DOMEventType |
OnMouseOut
Fires when the pointing device is moved away from an element.
当定点设备从某个元素移开时触发。 |
static DOMEventType |
OnMouseOver
Fires when the pointing device is moved onto an element.
当定点设备移动到元素上时触发。 |
static DOMEventType |
OnMouseUp
Fires when the pointing device button is released over an element.
在元素上释放定位设备按钮时触发。 |
static DOMEventType |
OnReset
Fires when a form is reset.
重置表单时触发。 |
static DOMEventType |
OnResize
Fires when a document view is resized.
调整文档视图大小时触发。 |
static DOMEventType |
OnScroll
Fires when a document view is scrolled.
滚动文档视图时触发。 |
static DOMEventType |
OnSelect
Fires when a user selects some text in a text field, including input and textarea.
当用户在文本字段中选择某些文本(包括输入和文本区域)时触发。 |
static DOMEventType |
OnSubmit
Fires when a form is submitted.
提交表单时触发。 |
static DOMEventType |
OnUnload
Fires when the user agent removes all content from a window or frame.
当用户代理从窗口或框架中删除所有内容时触发。 |
Constructor and Description |
---|
DOMEventType(java.lang.String eventType)
Constructs a new
DOMEventType instance with the given
eventType .
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getValue()
Returns a string that represents event type.
返回表示事件类型的字符串。 |
int |
hashCode() |
public static final DOMEventType OnClick
public static final DOMEventType OnDoubleClick
public static final DOMEventType OnMouseDown
public static final DOMEventType OnMouseUp
public static final DOMEventType OnMouseOver
public static final DOMEventType OnMouseMove
public static final DOMEventType OnMouseOut
public static final DOMEventType OnKeyDown
public static final DOMEventType OnKeyUp
public static final DOMEventType OnKeyPress
public static final DOMEventType OnLoad
public static final DOMEventType OnUnload
public static final DOMEventType OnAbort
public static final DOMEventType OnError
public static final DOMEventType OnResize
public static final DOMEventType OnScroll
public static final DOMEventType OnSelect
public static final DOMEventType OnChange
public static final DOMEventType OnSubmit
public static final DOMEventType OnReset
public static final DOMEventType OnFocus
public static final DOMEventType OnBlur
public DOMEventType(java.lang.String eventType)
DOMEventType
instance with the given
eventType
.
eventType
- name of event. Cannot be
null
or empty.
-事件名称。不能为空。
java.lang.IllegalArgumentException
- when
eventType
is
null
or empty.
public java.lang.String getValue()
public boolean equals(java.lang.Object obj)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object