org.sgx.j2s.html
Class Event

Package class diagram package Event
java.lang.Object
  extended by org.sgx.j2s.html.Event

public abstract class Event
extends java.lang.Object

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

CLICK_LEFT

public static final int CLICK_LEFT
See Also:
Constant Field Values

altKey

public boolean altKey
Returns whether or not the "ALT" key was pressed when an event was triggered


button

public int button
Returns which mouse button was clicked when an event was triggered


clientX

public int clientX
RETURNS THE HORIZONTAL COORDINATE OF THE MOUSE POINTER WHEN AN EVENT WAS TRIGGERED


clientY

public int clientY
Returns the vertical coordinate of the mouse pointer when an event was triggered


offsetX

public int offsetX
position respecting to src parent


offsetY

public int offsetY
position respecting to src parent


ctrlKey

public boolean ctrlKey
Returns whether or not the "CTRL" key was pressed when an event was triggered


metaKey

public boolean metaKey
Returns whether or not the "meta" key was pressed when an event was triggered


relatedTarget

public Element relatedTarget
Returns the element related to the element that triggered the event


src

public Element src
Returns the horizontal coordinate of the mouse pointer when an event was triggered


screenX

public int screenX

screenY

public int screenY
Returns the vertical coordinate of the mouse pointer when an event was triggered


shiftKey

public boolean shiftKey
Returns whether or not the "SHIFT" key was pressed when an event was triggered

Constructor Detail

Event

public Event()