本文整理汇总了Java中org.primefaces.event.NodeExpandEvent类的典型用法代码示例。如果您正苦于以下问题:Java NodeExpandEvent类的具体用法?Java NodeExpandEvent怎么用?Java NodeExpandEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NodeExpandEvent类属于org.primefaces.event包,在下文中一共展示了NodeExpandEvent类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void onNodeExpand(NodeExpandEvent event) {
final org.primefaces.model.TreeNode parentNode = event.getTreeNode();
final Object data = parentNode.getData();
if (data instanceof TagBean) {
parentNode.getChildren().clear();
TagBean tagBean = (TagBean) data;
Tag tag = tagBean.getTag();
Collection<Tag> children = tag.getChildren();
for (Tag c : children) {
final int index = Tag.getIndexOf(c.getId(), tags);
final org.primefaces.model.TreeNode cn =
new org.primefaces.model.DefaultTreeNode(tagBeans.get(index), parentNode);
if (c.getChildren().isEmpty() == false) {
// If it has children, just insert a dummy child node for users to expand the tree;
// The actual children will be inserted at runtime with Ajax
new org.primefaces.model.DefaultTreeNode(null, cn);
}
}
}
}
开发者ID:suewonjp,项目名称:civilizer,代码行数:21,代码来源:TagTree.java
示例2: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void onNodeExpand(NodeExpandEvent event) {
TreeNode treeNode = event.getTreeNode();
if (treeNode != null) {
Iterator<TreeNode> it = treeNode.getChildren().iterator();
while (it.hasNext()) {
it.next().setParent(null);
}
treeNode.getChildren().clear();
loadFileFolderTree(treeNode, out, this.module, this.entityId, ((FileFolderVO) treeNode.getData()).getFolderPath(), null, createSFVO(), 1, true);
}
}
开发者ID:phoenixctms,项目名称:ctsms,代码行数:12,代码来源:FileBean.java
示例3: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void onNodeExpand(NodeExpandEvent event) {
JobNodeBean jnb = (JobNodeBean) event.getTreeNode().getData();
String id = jnb.getId();
nodeMap.get(id).setExpanded(true);
}
开发者ID:intuit,项目名称:Tank,代码行数:6,代码来源:JobTreeTableBean.java
示例4: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void onNodeExpand( NodeExpandEvent event )
{
String node = event.getTreeNode().getData().toString();
LOGGER.info( "Expanded:" + node );
}
开发者ID:Comcast,项目名称:cats,代码行数:6,代码来源:DocumentsController.java
示例5: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void onNodeExpand(NodeExpandEvent event) {
doSomething();
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:FileSystemController.java
示例6: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void onNodeExpand(NodeExpandEvent event) {
FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "Expanded", event.getTreeNode().toString());
FacesContext.getCurrentInstance().addMessage(null, message);
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:6,代码来源:DocumentsController.java
示例7: expandNode
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
public void expandNode(NodeExpandEvent evt) {
((DynamicTreeNode)evt.getTreeNode()).expand();
}
开发者ID:jmrunge,项目名称:osiris-platform,代码行数:4,代码来源:SearchBean.java
示例8: onNodeExpand
import org.primefaces.event.NodeExpandEvent; //导入依赖的package包/类
/**
*
*
* @param event
*/
public void onNodeExpand(NodeExpandEvent event) {
// ...
}
开发者ID:UniversityOfWuerzburg-ChairCompSciVI,项目名称:ueps,代码行数:9,代码来源:AdminTreeBean.java
注:本文中的org.primefaces.event.NodeExpandEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论