com.teamdev.jxbrowser.event
Class ContextMenuEvent
java.lang.Object
java.util.EventObject
com.teamdev.jxbrowser.event.WebBrowserEvent
com.teamdev.jxbrowser.event.ContextMenuEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ContextMenuEvent
- extends WebBrowserEvent
Indicate context menu request
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ContextMenuEvent(WebBrowser webBrowser,
long contextFlags,
org.w3c.dom.events.Event mouseEvent,
org.w3c.dom.Node targetNode,
java.lang.String associatedLink,
java.net.URI imageSrc,
java.net.URI backgroundImageSrc)
|
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContextMenuEvent
public ContextMenuEvent(WebBrowser webBrowser,
long contextFlags,
org.w3c.dom.events.Event mouseEvent,
org.w3c.dom.Node targetNode,
java.lang.String associatedLink,
java.net.URI imageSrc,
java.net.URI backgroundImageSrc)
- Parameters:
webBrowser
- contextFlags
- flags indicating the kind of contextmouseEvent
- the DOM context menu eventtargetNode
- the DOM node most relevant to the contextassociatedLink
- the anchor from targetNode
if it has one or that
of its nearest ancestor if it does notimageSrc
- backgroundImageSrc
-
getContextFlags
public long getContextFlags()
- Returns:
- Flags indicating the kind of context
getMouseEvent
public org.w3c.dom.events.Event getMouseEvent()
getTargetNode
public org.w3c.dom.Node getTargetNode()
getAssociatedLink
public java.lang.String getAssociatedLink()
getImageSrc
public java.net.URI getImageSrc()
getBackgroundImageSrc
public java.net.URI getBackgroundImageSrc()
getX
public int getX()
getY
public int getY()