javax.swing.JTree.removeTreeExpansionListener()方法的使用及代码示例

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

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

JTree.removeTreeExpansionListener介绍

暂无

代码示例

代码示例来源:origin: pentaho/mondrian

/**
 * Call this method whenever you update the tree and needs it reloaded
 */
public synchronized void update() {
  synchronized (this.tree) {
    this.tree.removeTreeExpansionListener(this);
    this.tree.removeTreeSelectionListener(this);
    ((DefaultTreeModel) this.tree.getModel()).reload();
    for (TreePath treePath : expandedTreePaths) {
      this.tree.expandPath(treePath);
    }
    this.tree.getSelectionModel().setSelectionPaths(selectedTreePaths);
    this.tree.addTreeExpansionListener(this);
    this.tree.addTreeSelectionListener(this);
  }
}

代码示例来源:origin: xyz.cofe/gui.swing

@Override
public void close() throws IOException {
  if(cmpt!=null && l!=null ){
    cmpt.removeTreeExpansionListener(l);
    cmpt = null;
    l = null;
  }
}};

代码示例来源:origin: xyz.cofe/gui.swing

@Override
public void close() throws IOException {
  if(cmpt!=null && l!=null ){
    cmpt.removeTreeExpansionListener(l);
    cmpt = null;
    l = null;
  }
}};

代码示例来源:origin: com.google.code.findbugs/findbugs

public void getOffListenerList() {
  FilterActivity.removeFilterListener(bugTreeFilterListener);
  st.removeColumnModelListener(this);
  tree.removeTreeExpansionListener(this);
}

代码示例来源:origin: stackoverflow.com

for (TreeExpansionListener expansionListener : expansionListeners)
  tree.removeTreeExpansionListener(expansionListener);

代码示例来源:origin: net.imagej/ij

void restoreExpandedNodes() {
  if (pTree==null || root==null)
    return;
  pTree.removeTreeExpansionListener(this);
  TreeNode[] rootPath = root.getPath();
  for(Enumeration e = root.breadthFirstEnumeration(); e.hasMoreElements();)

代码示例来源:origin: imagej/ImageJA

void restoreExpandedNodes() {
  if (pTree==null || root==null)
    return;
  pTree.removeTreeExpansionListener(this);
  TreeNode[] rootPath = root.getPath();
  for(Enumeration e = root.breadthFirstEnumeration(); e.hasMoreElements();)

相关文章

JTree类方法