|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vectomatic.dom.svg.impl.DOMHelperImpl
public class DOMHelperImpl
Implementation class for low-level GWT integration (mostly event dispatching)
Field Summary | |
---|---|
protected OMSVGElement |
captureElt
|
protected static boolean |
eventsInitialized
|
protected static int |
EVT_ABORT
|
protected static int |
EVT_ACTIVATE
|
protected static int |
EVT_BEGIN
|
protected static int |
EVT_CLICK
|
protected static int |
EVT_END
|
protected static int |
EVT_ERROR
|
protected static int |
EVT_FOCUSIN
|
protected static int |
EVT_FOCUSOUT
|
protected static int |
EVT_GESTURECHANGE
|
protected static int |
EVT_GESTUREEND
|
protected static int |
EVT_GESTURESTART
|
protected static int |
EVT_LOAD
|
protected static int |
EVT_LOOSECAPTURE
|
protected static int |
EVT_MOUSEDOWN
|
protected static int |
EVT_MOUSEMOVE
|
protected static int |
EVT_MOUSEOUT
|
protected static int |
EVT_MOUSEOVER
|
protected static int |
EVT_MOUSEUP
|
protected static int |
EVT_REPEAT
|
protected static int |
EVT_RESIZE
|
protected static int |
EVT_SCROLL
|
protected static int |
EVT_TOUCHCANCEL
|
protected static int |
EVT_TOUCHEND
|
protected static int |
EVT_TOUCHMOVE
|
protected static int |
EVT_TOUCHSTART
|
protected static int |
EVT_UNLOAD
|
protected static int |
EVT_ZOOM
|
Constructor Summary | |
---|---|
DOMHelperImpl()
|
Method Summary | |
---|---|
void |
bindEventListener(com.google.gwt.dom.client.Element elem,
String eventName)
Makes a node sink the events emitted by the specified element |
void |
dispatch(com.google.gwt.dom.client.NativeEvent event,
OMNode node,
com.google.gwt.dom.client.Element elem)
Central dispatching function for events emitted by DOM objects |
void |
dispatchCapturedEvent(com.google.gwt.dom.client.NativeEvent event,
com.google.gwt.dom.client.Element elem)
Dispatching function for events which result from a call to setCaptureElement(OMSVGElement, LoseCaptureHandler) |
boolean |
evaluateBooleanXPath_(com.google.gwt.dom.client.Element svgElement,
String expr,
XPathPrefixResolver resolver)
|
com.google.gwt.core.client.JavaScriptObject |
evaluateNodeListXPath_(com.google.gwt.dom.client.Element svgElement,
String expr,
XPathPrefixResolver resolver)
|
com.google.gwt.dom.client.Node |
evaluateNodeXPath_(com.google.gwt.dom.client.Element svgElement,
String expr,
XPathPrefixResolver resolver)
|
float |
evaluateNumberXPath_(com.google.gwt.dom.client.Element svgElement,
String expr,
XPathPrefixResolver resolver)
|
String |
evaluateStringXPath_(com.google.gwt.dom.client.Element svgElement,
String expr,
XPathPrefixResolver resolver)
|
int |
eventGetTypeInt(String eventType)
Returns the bit mask which corresponds to the specified event type |
OMSVGElement |
getCaptureElement()
Returns the element which currently captures all the events after a call to setCaptureElement(OMSVGElement, LoseCaptureHandler)
or null if element is set to capture events |
int |
getEventsSunk(com.google.gwt.dom.client.Element elem)
Returns the event mask for the specified element |
protected void |
init()
|
protected void |
initEventSystem()
Initializes the event system. |
protected boolean |
isChildOf(com.google.gwt.dom.client.Node root,
com.google.gwt.dom.client.Node node)
Tests if a node is part of a DOM subtree. |
void |
releaseCaptureElement()
Stops the forwarding of all events to the capturing element specified by setCaptureElement(OMSVGElement, LoseCaptureHandler) |
com.google.gwt.event.shared.HandlerRegistration |
setCaptureElement(OMSVGElement captureElt,
com.google.gwt.event.dom.client.LoseCaptureHandler loseCaptureHandler)
Makes the specified element capture all the events, until a call to releaseCaptureElement()
terminates the capture |
protected void |
sinkEvents(com.google.gwt.dom.client.Element elem,
int bits)
Changes the event mask and activates the handler for the specified element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean eventsInitialized
protected static final int EVT_FOCUSIN
protected static final int EVT_FOCUSOUT
protected static final int EVT_MOUSEDOWN
protected static final int EVT_MOUSEUP
protected static final int EVT_MOUSEOVER
protected static final int EVT_MOUSEOUT
protected static final int EVT_MOUSEMOVE
protected static final int EVT_ACTIVATE
protected static final int EVT_CLICK
protected static final int EVT_LOAD
protected static final int EVT_BEGIN
protected static final int EVT_END
protected static final int EVT_REPEAT
protected static final int EVT_UNLOAD
protected static final int EVT_ABORT
protected static final int EVT_ERROR
protected static final int EVT_RESIZE
protected static final int EVT_SCROLL
protected static final int EVT_ZOOM
protected static final int EVT_LOOSECAPTURE
protected static final int EVT_TOUCHSTART
protected static final int EVT_TOUCHEND
protected static final int EVT_TOUCHMOVE
protected static final int EVT_TOUCHCANCEL
protected static final int EVT_GESTURESTART
protected static final int EVT_GESTURECHANGE
protected static final int EVT_GESTUREEND
protected OMSVGElement captureElt
Constructor Detail |
---|
public DOMHelperImpl()
Method Detail |
---|
protected void initEventSystem()
public int eventGetTypeInt(String eventType)
eventType
- The event type
protected void init()
public void bindEventListener(com.google.gwt.dom.client.Element elem, String eventName)
elem
- The element emitting the eventseventName
- The event namepublic OMSVGElement getCaptureElement()
setCaptureElement(OMSVGElement, LoseCaptureHandler)
or null if element is set to capture events
public com.google.gwt.event.shared.HandlerRegistration setCaptureElement(OMSVGElement captureElt, com.google.gwt.event.dom.client.LoseCaptureHandler loseCaptureHandler)
releaseCaptureElement()
terminates the capture
captureElt
- The capturing elementloseCaptureHandler
- A handler which will be invoked
if the element loses capture
HandlerRegistration
used to remove this handlerpublic void releaseCaptureElement()
setCaptureElement(OMSVGElement, LoseCaptureHandler)
public int getEventsSunk(com.google.gwt.dom.client.Element elem)
elem
- The element
protected void sinkEvents(com.google.gwt.dom.client.Element elem, int bits)
elem
- The object which emits eventsbits
- The event maskpublic void dispatch(com.google.gwt.dom.client.NativeEvent event, OMNode node, com.google.gwt.dom.client.Element elem)
event
- The DOM eventnode
- The object processing the eventelem
- The object emitting the eventpublic void dispatchCapturedEvent(com.google.gwt.dom.client.NativeEvent event, com.google.gwt.dom.client.Element elem)
setCaptureElement(OMSVGElement, LoseCaptureHandler)
event
- The DOM eventelem
- The object emitting the eventprotected boolean isChildOf(com.google.gwt.dom.client.Node root, com.google.gwt.dom.client.Node node)
root
- The subtree rootnode
- The node to be tested
public com.google.gwt.core.client.JavaScriptObject evaluateNodeListXPath_(com.google.gwt.dom.client.Element svgElement, String expr, XPathPrefixResolver resolver)
public com.google.gwt.dom.client.Node evaluateNodeXPath_(com.google.gwt.dom.client.Element svgElement, String expr, XPathPrefixResolver resolver)
public String evaluateStringXPath_(com.google.gwt.dom.client.Element svgElement, String expr, XPathPrefixResolver resolver)
public float evaluateNumberXPath_(com.google.gwt.dom.client.Element svgElement, String expr, XPathPrefixResolver resolver)
public boolean evaluateBooleanXPath_(com.google.gwt.dom.client.Element svgElement, String expr, XPathPrefixResolver resolver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |