本文整理了Java中org.openide.nodes.Children.getNodesCount()
方法的一些代码示例,展示了Children.getNodesCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Children.getNodesCount()
方法的具体详情如下:
包路径:org.openide.nodes.Children
类名称:Children
方法名:getNodesCount
[英]Get the number of nodes in the list.
[中]获取列表中的节点数。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
@Override
public int callGetNodesCount(boolean optimalResult) {
return original.getChildren().getNodesCount(optimalResult);
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
@Override
public int callGetNodesCount(boolean optimalResult) {
int cnt = 0;
if (optimalResult) {
cnt = original.getChildren().getNodesCount(true);
}
int ret = Children.this.getNodesCount();
LOG.log(Level.FINEST, "Count {1} gives {2}", new Object[]{cnt, ret});
return ret;
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
hierarchy.getNodesCount();
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
public void run() {
try {
node.getChildren().getNodesCount(true);
} catch (Exception e) {
// log a exception
LOG.log(Level.WARNING, null, e);
} finally {
// show normal cursor above all
showWaitCursor(false);
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-project
@Override
protected Node[] createNodes(Node key) {
// filter out BundleNodes without visible KeyNodes
if (key.getChildren().getNodesCount()>0)
return new Node[] { key };
return null;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-project
@Override
protected Node[] createNodes(Node key) {
// filter out BundleNodes without visible KeyNodes
if (key.getChildren().getNodesCount()>0)
return new Node[] { key };
return null;
}
代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-semantic-node
private void update()
{
removeAllTagsAction.setEnabled(containerNode.getChildren().getNodesCount() > 0);
}
};
代码示例来源:origin: eu.limetri.client/mapviewer-nb-swing
private int getMaxOrder() {
int nodesCount = parentNode.getChildren().getNodesCount();
int maxOrder = (nodesCount - 1) * 2;
return maxOrder;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders
public int getNodesCount () {
return node.getChildren().getNodesCount();
}
代码示例来源:origin: eu.limetri.client/mapviewer-nb-swing
@Override
public boolean isEnabled() {
int nodesCount = parentNode.getChildren().getNodesCount();
int maxOrder = (nodesCount - 1) * 2;
return info.getOrder() < maxOrder;
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
LOG.log(Level.WARNING, "Node: {0}", n);
if (n != null) {
LOG.log(Level.WARNING, " # children: {0}", n.getChildren().getNodesCount());
LOG.log(Level.WARNING, " children: {0}", n.getChildren().getClass());
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-ddui
@Override
public void dataModelPropertyChange(Object source, String propertyName, Object oldValue, Object newValue) {
// System.out.println("[Wrapped box panel - " + BaseSectionNode.this.getClass().getSimpleName() + "].dataModelPropertyChange: " +
// source + ", " + propertyName + ", " + oldValue + ", " + newValue);
super.dataModelPropertyChange(source, propertyName, oldValue, newValue);
if(getChildren().getNodesCount() == 0) {
Component [] children = getComponents();
if(children != null && children.length == 1 && children[0] instanceof SectionInnerPanel) {
((SectionInnerPanel) children[0]).dataModelPropertyChange(source, propertyName, oldValue, newValue);
}
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-templates
private boolean isMoveDownEnabled (Node [] nodes) {
if (nodes == null || nodes.length != 1 || ! nodes [0].isLeaf ()) {
return false;
}
Node parent = nodes [0].getParentNode ();
if (parent == null) {
return false;
}
int count = parent.getChildren ().getNodesCount ();
int pos = getNodePosition (nodes [0]);
return pos != -1 && pos < (count - 1);
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
final int count = nch.getNodesCount();
Node[] nodes = null;
if (prefetchCount > 0) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui
/**
*/
void displayReport(final Report report) {
assert EventQueue.isDispatchThread();
/* Called from the EventDispatch thread */
TestsuiteNode node = rootNode.displayReport(report);
if ((node != null) && report.isCompleted() && (report.getTotalTests() == 1 || report.containsFailed() || Status.PENDING == report.getStatus())) {
if (node.getChildren().getNodesCount() != 0){
treeView.expandReportNode(node);
}
}
resultBar.setPassedPercentage(rootNode.getPassedPercentage());
resultBar.setSkippedPercentage(rootNode.getSkippedPercentage());
resultBar.setAbortedPercentage(rootNode.getAbortedPercentage());
statPanel.updateButtons();
}
代码示例来源:origin: senbox-org/snap-desktop
productManager.addProduct(product1);
assertEquals(1, rootNode.getChildren().getNodesCount());
assertEquals(PNode.class, rootNode.getChildren().getNodeAt(0).getClass());
PNode pNode = (PNode) rootNode.getChildren().getNodeAt(0);
内容来源于网络,如有侵权,请联系作者删除!