本文整理了Java中org.netbeans.swing.outline.Outline.getSelectedColumn()
方法的一些代码示例,展示了Outline.getSelectedColumn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.getSelectedColumn()
方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:getSelectedColumn
暂无
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/**
* Invoked when an action occurs.
*/
@Override
public void actionPerformed (ActionEvent e) {
if (outline.getSelectedColumn () != 0) {
return;
}
Node[] nodes = manager.getSelectedNodes ();
TreeView.performPreferredActionOnNodes(nodes);
}
}
代码示例来源:origin: in.jlibs/org-netbeans-swing-outline
public void actionPerformed(ActionEvent e) {
if( getSelectedRowCount() == 1 && isTreeColumnIndex (getSelectedColumn()) ) {
int selRow = getSelectedRow();
TreePath selPath = getLayoutCache().getPathForRow(selRow);
if( null != selPath
&& !getOutlineModel().isLeaf(selPath.getLastPathComponent()) ) {
boolean expanded = getLayoutCache().isExpanded(selPath);
if( expanded && !expand ) {
collapsePath(selPath);
return;
} else if( !expanded && expand ) {
expandPath(selPath);
return;
}
}
}
if( null != origAction )
origAction.actionPerformed(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!