本文整理了Java中javax.swing.JTree.removeTreeExpansionListener()
方法的一些代码示例,展示了JTree.removeTreeExpansionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.removeTreeExpansionListener()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称: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();)
内容来源于网络,如有侵权,请联系作者删除!