當前位置: 首頁>>代碼示例>>Java>>正文


Java EventTarget.removeEventListener方法代碼示例

本文整理匯總了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);
    }
}
 
開發者ID:git-moss,項目名稱:Push2Display,代碼行數:27,代碼來源:CSSEngine.java

示例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);
    }
}
 
開發者ID:git-moss,項目名稱:Push2Display,代碼行數:18,代碼來源:DOMViewer.java

示例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);
    }
}
 
開發者ID:git-moss,項目名稱:Push2Display,代碼行數:15,代碼來源:DOMViewer.java

示例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;
}
 
開發者ID:vilie,項目名稱:javify,代碼行數:13,代碼來源:DomIterator.java

示例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;
}
 
開發者ID:nmldiegues,項目名稱:jvm-stm,代碼行數:13,代碼來源:DomIterator.java

示例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);
}
 
開發者ID:elki-project,項目名稱:elki,代碼行數:11,代碼來源:DragableArea.java

示例7: detachFrom

import org.w3c.dom.events.EventTarget; //導入方法依賴的package包/類
protected void detachFrom(Element e) {
    EventTarget et = (EventTarget) e;
    et.removeEventListener("DOMSubtreeModified", this, false);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:5,代碼來源:ElementLook.java

示例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);
}
 
開發者ID:elki-project,項目名稱:elki,代碼行數:8,代碼來源:DragableArea.java


注:本文中的org.w3c.dom.events.EventTarget.removeEventListener方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。