public class Event
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Map |
filterMetaData(Map data)
Returns only the properties that are meta data, such as altKey, ctrlKey, shiftKey, metaKey and which.
|
static void |
fire(DOMElement el,
String evtnm)
Fires a DOM element.
|
Map |
keyData()
Retrieve the key 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)
|
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)
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 eventCopyright © 2005-2023 Potix Corporation. All Rights Reserved.