|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sgx.j2s.html.Event
public abstract class Event
please use jsUtils.normalizeEvent() in javascript event handlers sgurin has modified this class so only html dom event object compatible attributes are supported. see: http://www.w3schools.com/htmldom/dom_obj_event.asp
Field Summary | |
---|---|
boolean |
altKey
Returns whether or not the "ALT" key was pressed when an event was triggered |
int |
button
Returns which mouse button was clicked when an event was triggered |
static int |
CLICK_LEFT
|
int |
clientX
RETURNS THE HORIZONTAL COORDINATE OF THE MOUSE POINTER WHEN AN EVENT WAS TRIGGERED |
int |
clientY
Returns the vertical coordinate of the mouse pointer when an event was triggered |
boolean |
ctrlKey
Returns whether or not the "CTRL" key was pressed when an event was triggered |
boolean |
metaKey
Returns whether or not the "meta" key was pressed when an event was triggered |
int |
offsetX
position respecting to src parent |
int |
offsetY
position respecting to src parent |
Element |
relatedTarget
Returns the element related to the element that triggered the event |
int |
screenX
|
int |
screenY
Returns the vertical coordinate of the mouse pointer when an event was triggered |
boolean |
shiftKey
Returns whether or not the "SHIFT" key was pressed when an event was triggered |
Element |
src
Returns the horizontal coordinate of the mouse pointer when an event was triggered |
Constructor Summary | |
---|---|
Event()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CLICK_LEFT
public boolean altKey
public int button
public int clientX
public int clientY
public int offsetX
public int offsetY
public boolean ctrlKey
public boolean metaKey
public Element relatedTarget
public Element src
public int screenX
public int screenY
public boolean shiftKey
Constructor Detail |
---|
public Event()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |