java.awt.Window.removeMouseListener()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(177)

本文整理了Java中java.awt.Window.removeMouseListener()方法的一些代码示例,展示了Window.removeMouseListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.removeMouseListener()方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:removeMouseListener

Window.removeMouseListener介绍

暂无

代码示例

代码示例来源:origin: khuxtable/seaglass

/**
 * Uninstalls the necessary Listeners on the <code>Window</code> the
 * Listeners were last installed on.
 *
 * @param root the JRootPane.
 */
private void uninstallWindowListeners(JRootPane root) {
  if (window != null) {
    window.removeMouseListener(mouseInputListener);
    window.removeMouseMotionListener(mouseInputListener);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

/**
 * Uninstalls the necessary Listeners on the <code>Window</code> the
 * Listeners were last installed on.
 */
private void uninstallWindowListeners(JRootPane root) {
 if (window != null) {
  window.removeMouseListener(mouseInputListener);
  window.removeMouseMotionListener(mouseInputListener);
 }
}

代码示例来源:origin: com.jtattoo/JTattoo

/**
 * Uninstalls the necessary Listeners on the <code>Window</code> the Listeners were last installed on.
 *
 * @param root
 */
public void uninstallWindowListeners(JRootPane root) {
  if (window != null) {
    window.removeMouseListener(mouseInputListener);
    window.removeMouseMotionListener(mouseInputListener);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

/**
 * Uninstalls the necessary Listeners on the <code>Window</code> the
 * Listeners were last installed on.
 */
private void uninstallWindowListeners(JRootPane root)
{
  if (window != null)
  {
    window.removeMouseListener(mouseInputListener);
    window.removeMouseMotionListener(mouseInputListener);
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers

private void hideCellTipWindow() {
  if (cellTipPopup != null) {
    if (cellTipWindow != null) {
      cellTipWindow.removeMouseListener(this);
      cellTipWindow = null;
    }
    cellTipPopup.hide();
    cellTipPopup = null;
    cellTip = null;
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf

/**
 * Uninstalls the necessary Listeners on the window that the Listeners were
 * last installed on.
 */
private void uninstallWindowListeners() {
  if (window != null) {
    window.removeMouseListener(mouseInputListener);
    window.removeMouseMotionListener(mouseInputListener);
  }
}

代码示例来源:origin: de.sciss/prefuse-core

public void mouseExited(MouseEvent e) {
  if ( !showing ) return;
  int x = e.getX(), y = e.getY();
  Component c = (Component)e.getSource();
  if ( x < 0 || y < 0 || x > c.getWidth() || y > c.getHeight() )
  {
    Window w = SwingUtilities.getWindowAncestor(JCustomTooltip.this);
    w.removeMouseListener(this);
    w.setFocusableWindowState(false);
    popup.hide();
    popup = null;
    getComponent().setToolTipText("?");
    showing = false;
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui

private void hideCellTipWindow() {
  if (cellTipPopup != null) {
    if (cellTipWindow != null) {
      cellTipWindow.removeMouseListener(this);
      cellTipWindow.removeMouseWheelListener(this);
      cellTipWindow = null;
    }
    cellTipPopup.hide();
    cellTipPopup = null;
    cellTip = null;
  }
}

代码示例来源:origin: edu.stanford.protege/ca.uvic.cs.chisel.cajun

void hideTipWindow() {
  if (tipWindow != null) {
    if (window != null) {
      window.removeMouseListener(this);
      window = null;
    }
    tipWindow.hide();
    tipWindow = null;
    tipShowing = false;
    (tip.getUI()).uninstallUI(tip);
    tip = null;
    //insideTimer.stop();
  }
}

代码示例来源:origin: com.github.insubstantial/substance

/**
 * Uninstalls the necessary Listeners on the <code>Window</code> the
 * Listeners were last installed on.
 * 
 * @param root
 *            Root pane.
 */
private void uninstallWindowListeners(JRootPane root) {
  if (this.window != null) {
    this.window.removeMouseListener(this.substanceMouseInputListener);
    this.window
        .removeMouseMotionListener(this.substanceMouseInputListener);
  }
  if (this.titlePane != null) {
    this.titlePane
        .removeMouseListener(this.substanceTitleMouseInputListener);
    this.titlePane
        .removeMouseMotionListener(this.substanceTitleMouseInputListener);
  }
}

代码示例来源:origin: org.java.net.substance/substance

/**
 * Uninstalls the necessary Listeners on the <code>Window</code> the
 * Listeners were last installed on.
 * 
 * @param root
 *            Root pane.
 */
private void uninstallWindowListeners(JRootPane root) {
  if (this.window != null) {
    this.window.removeMouseListener(this.substanceMouseInputListener);
    this.window
        .removeMouseMotionListener(this.substanceMouseInputListener);
  }
  if (this.titlePane != null) {
    this.titlePane
        .removeMouseListener(this.substanceTitleMouseInputListener);
    this.titlePane
        .removeMouseMotionListener(this.substanceTitleMouseInputListener);
  }
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

void close() {
  if (hideTween != null) {
    hideTween.cancel();
    hideTween = null;
  }
  if (tween != null) {
    tween.cancel();
    tween = null;
  }
  if (isDesktopNotification) {
    parent.removeWindowListener(windowListener);
  }
  parent.removeMouseListener(mouseListener);
  updatePositionsPre(false);
  updatePositionsPost(false);
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

public void propertyChange(PropertyChangeEvent evt) {
    if (evt.getSource() != descriptor || window == null)
      return;
    if (evt.getNewValue() == ToolWindowType.FLOATING || evt.getNewValue() == ToolWindowType.FLOATING_FREE) {
      initWindowListeners();
    } else {
      if (!descriptor.getDockedTypeDescriptor().isIdVisibleOnTitleBar())
        dockedContainer.disableIdOnTitleBar();
      if (settedListener)
        lastBounds = window.getBounds();
      // Remove listeners
      window.getWindow().removeMouseMotionListener(resizeMouseInputHandler);
      window.getWindow().removeMouseListener(resizeMouseInputHandler);
      titleBarTabs.removeEventDispatcherlListener(moveMouseInputHandler);
      titleBar.removeMouseMotionListener(moveMouseInputHandler);
      titleBar.removeMouseListener(moveMouseInputHandler);
      settedListener = false;
    }
  }
});

代码示例来源:origin: abbot/abbot

bugList.add(0, Strings.get("Bug1"));
window.removeMouseListener(ma);
robot.click(window, x, y, mask);
robot.waitForIdle();
window.removeMouseListener(ma);

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

public void cleanup() {
  // Remove listeners
  if (window != null) {
    window.getWindow().removeMouseMotionListener(resizeMouseInputHandler);
    window.getWindow().removeMouseListener(resizeMouseInputHandler);
    window.getWindow().dispose();
  }
  titleBarTabs.removeEventDispatcherlListener(moveMouseInputHandler);
  titleBar.removeMouseMotionListener(moveMouseInputHandler);
  titleBar.removeMouseListener(moveMouseInputHandler);
  descriptor.getTypeDescriptor(ToolWindowType.FLOATING).removePropertyChangeListener(this);
  // Finalize
  super.cleanup();
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

protected void initWindowListeners() {
  descriptor.setIdOnTitleBar();
  // Remove listeners
  window.getWindow().removeMouseMotionListener(resizeMouseInputHandler);
  window.getWindow().removeMouseListener(resizeMouseInputHandler);
  titleBarTabs.removeEventDispatcherlListener(moveMouseInputHandler);
  titleBar.removeMouseMotionListener(moveMouseInputHandler);
  titleBar.removeMouseListener(moveMouseInputHandler);
  // Add listeners
  window.getWindow().addMouseMotionListener(resizeMouseInputHandler);
  window.getWindow().addMouseListener(resizeMouseInputHandler);
  titleBarTabs.addEventDispatcherlListener(moveMouseInputHandler);
  titleBar.addMouseMotionListener(moveMouseInputHandler);
  titleBar.addMouseListener(moveMouseInputHandler);
  settedListener = true;
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

oldWindow.setVisible(false);
oldWindow.getWindow().removeMouseMotionListener(resizeMouseInputHandler);
oldWindow.getWindow().removeMouseListener(resizeMouseInputHandler);
oldWindow.getWindow().removeComponentListener(windowComponentAdapter);
oldWindow.getWindow().removeMouseListener(resizeMouseInputHandler);

相关文章

Window类方法