// activate has_children
WebMarkupContainer hasChildren = new WebMarkupContainer("has_children");
WebMarkupContainer parentTrigger = new WebMarkupContainer(
"parent_trigger");
parentTrigger.add(new SimpleAttributeModifier("onclick",
"javascript:showBranch('" + branchId + "');swapFolder('" + folderId
+ "');"));
Image folderImage = new Image("parent_folder");
folderImage.add(new SimpleAttributeModifier("id", folderId));
parentTrigger.add(folderImage);
parentTrigger.add(new Label("parent_product_name", node.getNodeProduct()
.getProductName()));
hasChildren.add(parentTrigger);
WebMarkupContainer childrenContainer = new WebMarkupContainer("children_container");
childrenContainer.add(new SimpleAttributeModifier("id", branchId));
childrenContainer.add(new SimpleAttributeModifier("class", "branch"));
ListView<PedigreeTreeNode> children = new ListView<PedigreeTreeNode>(
"children", getChildren(node)) {
/*
* (non-Javadoc)