本文整理汇总了Java中ims.admin.vo.ReportTemplateBoRefVoCollection.size方法的典型用法代码示例。如果您正苦于以下问题:Java ReportTemplateBoRefVoCollection.size方法的具体用法?Java ReportTemplateBoRefVoCollection.size怎么用?Java ReportTemplateBoRefVoCollection.size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.admin.vo.ReportTemplateBoRefVoCollection
的用法示例。
在下文中一共展示了ReportTemplateBoRefVoCollection.size方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addBusinessObjectToTree
import ims.admin.vo.ReportTemplateBoRefVoCollection; //导入方法依赖的package包/类
private void addBusinessObjectToTree(String fullBoName, String partialBoName, TreeNode parent, ReportTemplateBoRefVoCollection coll)
{
TreeNode node = null;
String firstNode;
String lastNodes;
int nPos;
if ((nPos = partialBoName.indexOf(".")) < 0)
{
//leaf
if(parent == null)
{
node = form.treBOList().getNodes().add(fullBoName, partialBoName);
}
else
{
node = parent.getNodes().add(fullBoName, partialBoName);
}
node.setExpandedImage(form.getImages().Core.Object);
node.setCollapsedImage(form.getImages().Core.Object);
for (int i = 0; i < coll.size(); i++)
{
if(node.getValue() instanceof String && ((String)node.getValue()).equalsIgnoreCase(coll.get(i).getBusinessObj()))
{
TreeNode child = node.getNodes().add(coll.get(i), coll.get(i).getTemplate().getName());
child.setExpandedImage(form.getImages().Core.Memo);
child.setCollapsedImage(form.getImages().Core.Memo);
node.setExpanded(true);
node.setTextColor(Color.Blue);
break;
}
}
}
else
{
//node
firstNode = partialBoName.substring(0, nPos);
lastNodes = partialBoName.substring(nPos + 1, partialBoName.length());
TreeNode p = getNodeByText(parent, firstNode);
if(p == null)
{
if(parent == null)
{
node = form.treBOList().getNodes().add("", firstNode);
}
else
{
node = parent.getNodes().add("", firstNode);
}
node.setExpandedImage(form.getImages().Core.ExpandAll);
node.setCollapsedImage(form.getImages().Core.ExpandAll);
addBusinessObjectToTree(fullBoName, lastNodes, node, coll);
}
else
{
addBusinessObjectToTree(fullBoName, lastNodes, p, coll);
}
}
}