当前位置: 首页>>代码示例>>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;未经允许,请勿转载。