private String GetFormattedStructure(ITreeNode structure)
{
var glyph = (structure as ITreeNodeGlyphicon);
var ret = String.Format(@"<div class='pull-left'>
<button type='button' style='font-size: 75%' class='btn btn-xs' onclick=""{4}""><span class=""glyphicon glyphicon-pencil"" style=""opacity: 0.75""></span> <span class=""{0}"" style=""opacity: 0.75""></span></button>
</div><a href=""javascript:;"" onclick=""{3}""> {1}</a>
"
, glyph != null ? glyph.Glyphicon : ""
, structure.Name
, structure.Children.Count > 0 ? "<button type='button' class='btn btn-xs'><span class='glyphicon glyphicon-hand-right'></span></button>" : ""
, GetHandlerScript(structure)
, handler.GetScript(String.Format("'select|{0}'", GetKey(structure)))
);
return ret;
}