本文整理汇总了Java中org.w3c.dom.events.EventTarget.removeEventListener方法的典型用法代码示例。如果您正苦于以下问题:Java EventTarget.removeEventListener方法的具体用法?Java EventTarget.removeEventListener怎么用?Java EventTarget.removeEventListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.w3c.dom.events.EventTarget
的用法示例。
在下文中一共展示了EventTarget.removeEventListener方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeEventListeners
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* Removes the event listeners from the document.
*/
protected void removeEventListeners(EventTarget doc) {
if (isCSSNavigableDocument) {
CSSNavigableDocument cnd = (CSSNavigableDocument) doc;
cnd.removeCSSNavigableDocumentListener
(cssNavigableDocumentListener);
} else {
doc.removeEventListener("DOMAttrModified",
domAttrModifiedListener,
false);
doc.removeEventListener("DOMNodeInserted",
domNodeInsertedListener,
false);
doc.removeEventListener("DOMNodeRemoved",
domNodeRemovedListener,
false);
doc.removeEventListener("DOMSubtreeModified",
domSubtreeModifiedListener,
false);
doc.removeEventListener("DOMCharacterDataModified",
domCharacterDataModifiedListener,
false);
}
}
示例2: removeDomMutationListeners
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* Removes previously registered mutation listeners from the document.
*
* @param doc
* The document
*/
protected void removeDomMutationListeners(Document doc) {
if (doc != null) {
EventTarget target = (EventTarget) doc;
target.removeEventListener(NODE_INSERTED, nodeInsertion, true);
target.removeEventListener(NODE_REMOVED, nodeRemoval, true);
target.removeEventListener(ATTRIBUTE_MODIFIED,
attrModification, true);
target.removeEventListener(CHAR_DATA_MODIFIED,
charDataModification, true);
}
}
示例3: removeCapturingListener
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* Removes previously registered capturing "click" event listener from
* the document element of the given document.
*
* @param doc
* The given document
*/
protected void removeCapturingListener(Document doc) {
if (doc != null) {
EventTarget target = (EventTarget) doc.getDocumentElement();
target.removeEventListener(SVGConstants.SVG_CLICK_EVENT_TYPE,
capturingListener, true);
}
}
示例4: detach
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* <b>DOM L2</b>
* Flags the iterator as done, unregistering its event listener so
* that the iterator can be garbage collected without relying on weak
* references (a "Java 2" feature) in the event subsystem.
*/
public void detach()
{
EventTarget target = (EventTarget) root;
target.removeEventListener("DOMNodeRemoved", this, false);
done = true;
}
示例5: detach
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* <b>DOM L2</b>
* Flags the iterator as done, unregistering its event listener so
* that the iterator can be garbage collected without relying on weak
* references (a "Java 2" feature) in the event subsystem.
*/
public void detach()
{
EventTarget target = (EventTarget) root;
target.removeEventListener("DOMNodeRemoved", this, false);
done = true;
}
示例6: disableStop
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* Disable capturing of 'mousemove' and 'mouseup' events.
*/
protected void disableStop() {
EventTarget targ = svgp.getDocument().getRootElement();
targ.removeEventListener(SVGConstants.SVG_EVENT_MOUSEMOVE, this, false);
targ.removeEventListener(SVGConstants.SVG_EVENT_MOUSEUP, this, false);
// FIXME: listen on the background object!
targ.removeEventListener(SVGConstants.SVG_EVENT_MOUSEOUT, this, false);
}
示例7: detachFrom
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
protected void detachFrom(Element e) {
EventTarget et = (EventTarget) e;
et.removeEventListener("DOMSubtreeModified", this, false);
}
示例8: disableStart
import org.w3c.dom.events.EventTarget; //导入方法依赖的package包/类
/**
* Disable capturing of 'mousedown' events.
*/
public void disableStart() {
EventTarget targ = (EventTarget) element;
targ.removeEventListener(SVGConstants.SVG_EVENT_MOUSEDOWN, this, false);
}