javax.swing.JScrollPane.removeNotify()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(130)

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

JScrollPane.removeNotify介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-explorer

/** Deinitializes listeners.
*/
@Override
public void removeNotify() {
  super.removeNotify();
  tree.getSelectionModel().removeTreeSelectionListener(managerListener);
}

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

/** Deinitializes listeners.
*/
public void removeNotify () {
  super.removeNotify ();
  tree.getSelectionModel().removeTreeSelectionListener(managerListener);
}

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

/** Deinitializes listeners.
*/
public void removeNotify () {
  super.removeNotify ();
  tree.getSelectionModel().removeTreeSelectionListener(managerListener);
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

/**
 * Deinitializes listeners.
 */
@Override
public void removeNotify () {
  super.removeNotify ();
  table.getSelectionModel().removeListSelectionListener(managerListener);
}

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

@Override
public void removeNotify() {
  super.removeNotify();
  ResourceController.getResourceController().removePropertyChangeListener(MapViewScrollPane.this);
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

/** Removes listeners.
*/
@Override
public void removeNotify() {
  super.removeNotify();
  listenerActive = false;
  list.getSelectionModel().removeListSelectionListener(managerListener);
  // bugfix #23509, remove useless listeners
  if (manager != null) {
    manager.removeVetoableChangeListener(wlvc);
    manager.removePropertyChangeListener(wlpc);
  }
  model.removeListDataListener(managerListener);
  list.removeMouseListener(popupSupport);
  // #112536: [dafe] I wasn't able to find out real reason for #112536
  // Following delaying works, but is hacky a bit and we have to check
  // if ListView is reused - addNotify called again, which we check through isDisplayable
  SwingUtilities.invokeLater(new Runnable () {
    public void run() {
      if (!isDisplayable()) {
        // #109123: clear the model, as it may become invalid, because we stopped 
        // tracking ExplorerManager changes through listeners
        model.setNode(Node.EMPTY);
      }
    }
  });
}

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

/** Removes listeners.
*/
public void removeNotify () {
  super.removeNotify ();
  listenerActive = false;
  list.getSelectionModel ().removeListSelectionListener (managerListener);
  // bugfix #23509, remove useless listeners
  if (manager != null) {
    manager.removeVetoableChangeListener (wlvc);
    manager.removePropertyChangeListener (wlpc);
  }
  model.removeListDataListener (managerListener);
  list.removeFocusListener (popupSupport);
  list.removeMouseListener (popupSupport);
}

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

/** Removes listeners.
*/
public void removeNotify () {
  super.removeNotify ();
  listenerActive = false;
  list.getSelectionModel ().removeListSelectionListener (managerListener);
  // bugfix #23509, remove useless listeners
  if (manager != null) {
    manager.removeVetoableChangeListener (wlvc);
    manager.removePropertyChangeListener (wlpc);
  }
  model.removeListDataListener (managerListener);
  list.removeFocusListener (popupSupport);
  list.removeMouseListener (popupSupport);
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

/**
 * De-initializes listeners.
 */
@Override
public void removeNotify () {
  super.removeNotify ();
  selection = new Selection(outline.getSelectionModel());
  outline.getSelectionModel().clearSelection();
  outline.getSelectionModel().removeListSelectionListener(managerListener);
  synchronized (managerLock) {
    if (manager != null) {
      manager.removePropertyChangeListener (wlpc);
      manager.removeVetoableChangeListener (wlvc);
      manager = null;
    }
  }
}

相关文章

JScrollPane类方法