public void initializeLines(FacesContext context, UITreeNode treeNode)
throws IOException {
ComponentVariables variables = ComponentsVariableResolver.getVariables(
this, treeNode);
UITree tree = treeNode.getUITree();
if (tree.isShowConnectingLines()) {
if (Boolean.TRUE.equals(treeNode.getAttributes().get("isLastElement"))) {
variables.setVariable("line", "dr-tree-h-ic-line-last");
} else {
variables.setVariable("line", "dr-tree-h-ic-line-node");
}
if (tree.isExpanded() && !tree.isLeaf()) {
variables
.setVariable("lineFirst", "dr-tree-h-ic-line-exp");
} else {
variables.setVariable("lineFirst",
"dr-tree-h-ic-line-clp");