|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jq.Event
public class Event
A DOM event.
Method Summary | |
---|---|
static Map |
filterMetaData(Map data)
Returns only the properties that are meta data, such as ctrlKey, altKey, ctrlKey and which. |
static void |
fire(DOMElement el,
String evtnm)
Fires a DOM element. |
Map |
keyData()
Retrieve the mouse information of a DOM event. |
Map |
metaData()
Retrieve the meta-information of a DOM event. |
Map |
mouseData()
Retrieve the mouse information of a DOM event. |
void |
stop()
Stops the event propagation. |
static void |
stop(Event evt)
Stops the event propagation of the specified event. |
static Event |
zk(Event evt,
Widget wgt)
Converts a DOM event ( Event ) to a ZK event (Event ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void stop()
public Map mouseData()
Event.data
public Map keyData()
metaData()
).
Event.data
public Map metaData()
Event.data
public static void stop(Event evt)
jq(el).mousemove(jq.Event.stop)
evt
- the event.public static Map filterMetaData(Map data)
For example, the following returns {ctrlKey:true}
.
jq.event.filterMetaData({some:1,ctrlKey:true});
data
- a map of data. It is usually the value returned
by mouseData()
or metaData()
.
public static Event zk(Event evt, Widget wgt)
Event
) to a ZK event (Event
).
evt
- the DOM eventwgt
- the target widget. It is used if the widget
can be resolved from the event (zk.Widget.$(evt)
)
public static void fire(DOMElement el, String evtnm)
el
- the target elementevtnm
- the name of the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |