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

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

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

Window.removeComponentListener介绍

暂无

代码示例

代码示例来源:origin: bobbylight/RSyntaxTextArea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}

代码示例来源:origin: bobbylight/RSyntaxTextArea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}

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

/**
 * This should be called when the AutoCompletion is no longer used, so it
 * can be gargabe collected.
 */
public void cleanUp() {
  if (containingWindow != null) {
    containingWindow.removeComponentListener(componentListener);
  }
  infoWindow = null;
}

代码示例来源:origin: xyz.cofe/docking-frames-core

public void removeWindowProviderListener( WindowProviderListener listener ) {
  listeners.remove( listener );
  
  if( listeners.size() == 0 ){
    if( window != null ){
      window.removeComponentListener( windowListener );
    }
  }
}

代码示例来源:origin: com.fifesoft.rtext/fife.common

/**
 * Called when this component loses its parent.  This method is
 * overridden so we can remove the component listener we added
 * to the parent.
 */
@Override
public void removeNotify() {
  super.removeNotify();
  window.removeComponentListener(maximizeWindow);
}

代码示例来源:origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
 public void windowClosed(final WindowEvent e) {
  this.window.removeComponentListener(this);
  this.window.removeWindowListener(this);
 }
}

代码示例来源:origin: com.fifesoft/autocomplete

public void removeFrom(Window w) {
  w.removeComponentListener(this);
  w.removeWindowFocusListener(this);
}

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

public void cleanup() {
  window.getWindow().removeComponentListener(this);
}

代码示例来源:origin: net.java.dev.jna/platform

public void removeNotify() {
  Toolkit.getDefaultToolkit().removeAWTEventListener(listener);
  Window w = SwingUtilities.getWindowAncestor(this);
  w.removeComponentListener(listener);
  w.removeWindowListener(listener);
  super.removeNotify();
}

代码示例来源:origin: net.java.dev.jna/jna-platform

@Override
public void removeNotify() {
  Toolkit.getDefaultToolkit().removeAWTEventListener(listener);
  Window w = SwingUtilities.getWindowAncestor(this);
  w.removeComponentListener(listener);
  w.removeWindowListener(listener);
  super.removeNotify();
}

代码示例来源:origin: com.synaptix/SynaptixSwing

@Override
public void hideWindow() {
  if (window != null) {
    window.setVisible(false);
    window = null;
    toolTip = null;
    parent.removeComponentListener(componentListener);
    field.removeHierarchyBoundsListener(hierachyBoundsListener);
  }
}

代码示例来源:origin: de.sciss/scisslib

private void forgetWindow()
{
  if( win != null ) {
    win.removeWindowListener( winL );
    win.removeComponentListener( cmpL );
    if( EventManager.DEBUG_EVENTS ) {
      System.err.println( "DynamicAncestorAdapter removed WindowListener : "+
        win.getClass().getName() );
    }
    win = null;
    if( listening ) stopListening();
  }
}

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

public void componentHidden(ComponentEvent e) {
    Window window = (Window)e.getComponent();
    DecorationHelper.setTranslucentWindow(window, false);
    window.removeComponentListener(popupWindowListener);
  }
};

代码示例来源:origin: robo-code/robocode

public static void packCenterShow(Window window) {
  // We don't want to receive the resize event for this pack!
  window.removeComponentListener(windowPositionManager);
  window.pack();
  center(window);
  window.setVisible(true);
}

代码示例来源:origin: joel-costigliola/assertj-swing

@RunsInEDT
@Override
public void windowClosed(WindowEvent e) {
 Window w = e.getWindow();
 w.removeComponentListener(this);
 w.removeWindowListener(this);
}

代码示例来源:origin: robo-code/robocode

public static void packCenterShow(Window main, Window window) {
  // We don't want to receive the resize event for this pack!
  window.removeComponentListener(windowPositionManager);
  window.pack();
  center(main, window);
  window.setVisible(true);
}

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

public void windowClosed(WindowEvent e) {
  e.getWindow().removeWindowListener(this);
  e.getWindow().removeComponentListener(this);
  
  // Remove self when we tidy up
  watchers.remove(e.getWindow());
}
public void componentResized(ComponentEvent e) { }

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

@Override
protected void uninstallListeners(JRootPane root) {
  // fix for bug 116 - stopping threads when all frames are
  // not displayable
  if (this.window != null) {
    this.window.removeWindowListener(this.substanceWindowListener);
    this.substanceWindowListener = null;
    this.window
        .removeComponentListener(this.substanceWindowComponentListener);
    this.substanceWindowComponentListener = null;
  }
  root.removeHierarchyListener(this.substanceHierarchyListener);
  this.substanceHierarchyListener = null;
  root.removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  super.uninstallListeners(root);
}

代码示例来源:origin: com.fifesoft/rsyntaxtextarea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}

代码示例来源:origin: com.fifesoft/rsyntaxtextarea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}

相关文章

微信公众号

最新文章

更多

Window类方法