private static final Logger LOG = LoggerFactory.getLogger(TreeLabelRenderer.class);
public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
final UITreeLabel label = (UITreeLabel) component;
final UITreeNode node = ComponentUtils.findAncestor(label, UITreeNode.class);
final boolean folder = node.isFolder();
final TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
writer.startElement(HtmlElements.LABEL, label);
writer.writeClassAttribute(Classes.create(label));
HtmlRendererUtils.writeDataAttributes(facesContext, writer, label);
writer.writeStyleAttribute(createStyle(facesContext, label));
HtmlRendererUtils.renderTip(label, writer);
if (label.getValue() != null) {
writer.writeText((String) label.getValue());
}
writer.endElement(HtmlElements.LABEL);
}