public class EventExtraData
extends java.lang.Object
Constructor and Description |
---|
EventExtraData() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAltKey()
Returns whether or not the "ALT" key was pressed when an event was
triggered
|
java.lang.Boolean |
getAltLeft()
Returns true if the left Alt key is down at the time the event fired.
|
java.lang.Integer |
getButton()
Returns an integer value indicating the button that changed state.
0 for standard 'click', usually left button 1 for middle button, usually
wheel-click 2 for right button, usually right-click
Note that this convention is not followed in Internet Explorer: see
QuirksMode for details.
|
java.lang.Integer |
getClientX()
Returns the horizontal coordinate of the mouse pointer when an event was
triggered
|
java.lang.Integer |
getClientY()
Returns the vertical coordinate of the mouse pointer when an event was
triggered
|
java.lang.Boolean |
getCtrlKey()
Returns whether or not the "CTRL" key was pressed when an event was
triggered
|
java.lang.Boolean |
getCtrlLeft()
Returns true if the left or right Control key was pressed at the instant
the event fired.
|
java.lang.String |
getKeyCode()
Returns the Unicode value of a non-character key in a keypress event or
any key in any other type of keyboard event
|
java.lang.Integer |
getLayerX()
Provide the horizontal (x) coordinate of the mouse at the moment the
current event fired.
|
java.lang.Integer |
getLayerY()
Provide the vertical (y) coordinate of the mouse at the moment the
current event fired.
|
java.lang.Boolean |
getMetaKey()
Returns true if the keyboard's Meta key (Command key on the Macintosh
keyboard) was pressed at the instant the event fired.
|
java.lang.Integer |
getOffsetX()
Provide the left and top coordinates of the mouse pointer relative to the
containing element (exclusive of padding, borders, or margins) when the
event fired.
|
java.lang.Integer |
getOffsetY()
Provide the left and top coordinates of the mouse pointer relative to the
containing element (exclusive of padding, borders, or margins) when the
event fired.
|
java.lang.Integer |
getPageX()
Provide the left and top coordinates of the element's content relative to
the top-left corner of the page area when the event fired.
|
java.lang.Integer |
getPageY()
Provide the left and top coordinates of the element's content relative to
the top-left corner of the page area when the event fired.
|
java.lang.Boolean |
getRepeat()
For an onkeydown event only, returns Boolean true if the key has been
down long enough to enter auto-repeat mode.
|
java.lang.Integer |
getScreenX()
Returns the horizontal coordinate of the mouse pointer when an event was
triggered
|
java.lang.Integer |
getScreenY()
Returns the vertical coordinate of the mouse pointer when an event was
triggered
|
java.lang.Boolean |
getShiftKey()
Returns whether or not the "SHIFT" key was pressed when an event was
triggered
|
java.lang.Boolean |
getShiftLeft()
Returns true if the left Shift key was pressed at the instant the event
fired.
|
java.lang.String |
getWhich()
Contains the numeric code for a particular key pressed, depending on
whether an alphanumeric or non-alphanumeric key was pressed
|
protected void |
setAltKey(java.lang.Boolean altKey) |
protected void |
setAltLeft(java.lang.Boolean altLeft) |
protected void |
setButton(java.lang.Integer button) |
protected void |
setClientX(java.lang.Integer clientX) |
protected void |
setClientY(java.lang.Integer clientY) |
protected void |
setCtrlKey(java.lang.Boolean ctrlKey) |
protected void |
setCtrlLeft(java.lang.Boolean ctrlLeft) |
protected void |
setKeyCode(java.lang.String keyCode) |
protected void |
setLayerX(java.lang.Integer layerX) |
protected void |
setLayerY(java.lang.Integer layerY) |
protected void |
setMetaKey(java.lang.Boolean metaKey) |
protected void |
setOffsetX(java.lang.Integer offsetX) |
protected void |
setOffsetY(java.lang.Integer offsetY) |
protected void |
setPageX(java.lang.Integer pageX) |
protected void |
setPageY(java.lang.Integer pageY) |
protected void |
setRepeat(java.lang.Boolean repeat) |
protected void |
setScreenX(java.lang.Integer screenX) |
protected void |
setScreenY(java.lang.Integer screenY) |
protected void |
setShiftKey(java.lang.Boolean shiftKey) |
protected void |
setShiftLeft(java.lang.Boolean shiftLeft) |
protected void |
setWhich(java.lang.String which) |
public java.lang.Integer getButton()
protected void setButton(java.lang.Integer button)
button
- the button to setpublic java.lang.Integer getClientX()
protected void setClientX(java.lang.Integer clientX)
clientX
- the clientX to setpublic java.lang.Integer getClientY()
protected void setClientY(java.lang.Integer clientY)
clientY
- the clientY to setpublic java.lang.Integer getScreenX()
protected void setScreenX(java.lang.Integer screenX)
screenX
- the screenX to setpublic java.lang.Integer getScreenY()
protected void setScreenY(java.lang.Integer screenY)
screenY
- the screenY to setpublic java.lang.Integer getPageX()
protected void setPageX(java.lang.Integer pageX)
pageX
- the pageX to setpublic java.lang.Integer getPageY()
protected void setPageY(java.lang.Integer pageY)
pageY
- the pageY to setpublic java.lang.Integer getLayerX()
protected void setLayerX(java.lang.Integer layerX)
layerX
- the layerX to setpublic java.lang.Integer getLayerY()
protected void setLayerY(java.lang.Integer layerY)
layerY
- the layerY to setpublic java.lang.Integer getOffsetX()
protected void setOffsetX(java.lang.Integer offsetX)
offsetX
- the offsetX to setpublic java.lang.Integer getOffsetY()
protected void setOffsetY(java.lang.Integer offsetY)
offsetY
- the offsetY to setpublic java.lang.Boolean getCtrlKey()
protected void setCtrlKey(java.lang.Boolean ctrlKey)
ctrlKey
- the ctrlKey to setpublic java.lang.Boolean getCtrlLeft()
protected void setCtrlLeft(java.lang.Boolean ctrlLeft)
ctrlLeft
- the ctrlLeft to setpublic java.lang.Boolean getAltKey()
protected void setAltKey(java.lang.Boolean altKey)
altKey
- the altKey to setpublic java.lang.Boolean getAltLeft()
protected void setAltLeft(java.lang.Boolean altLeft)
altLeft
- the altLeft to setpublic java.lang.Boolean getShiftKey()
protected void setShiftKey(java.lang.Boolean shiftKey)
shiftKey
- the shiftKey to setpublic java.lang.Boolean getShiftLeft()
protected void setShiftLeft(java.lang.Boolean shiftLeft)
shiftLeft
- the shiftLeft to setpublic java.lang.Boolean getMetaKey()
protected void setMetaKey(java.lang.Boolean metaKey)
metaKey
- the metaKey to setpublic java.lang.String getKeyCode()
protected void setKeyCode(java.lang.String keyCode)
keyCode
- the keyCode to setpublic java.lang.String getWhich()
protected void setWhich(java.lang.String which)
which
- the which to setpublic java.lang.Boolean getRepeat()
protected void setRepeat(java.lang.Boolean repeat)
repeat
- the repeat to set