本文整理匯總了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);
}