public virtual void setSuperGroup(String groupName)
 {
     this.superGroup = (StringTemplateGroup) nameToGroupMap[groupName];
 }
 public static void Main(System.String[] args)
 {
     StringTemplateGroup group = new StringTemplateGroup("dummy");
     StringTemplate bold = group.defineTemplate("bold", "<b>$attr$</b>");
     StringTemplate banner = group.defineTemplate("banner", "the banner");
     StringTemplate st = new StringTemplate(group, "<html>\n" + "$banner(a=b)$" + "<p><b>$name$:$email$</b>" + "$if(member)$<i>$fontTag$member</font></i>$endif$");
     st.setAttribute("name", "Terence");
     st.setAttribute("name", "Tom");
     st.setAttribute("email", "*****@*****.**");
     st.setAttribute("templateAttr", bold);
     StringTemplateTreeView frame = new StringTemplateTreeView("StringTemplate JTree Example", st);
     //UPGRADE_TODO: Method 'java.awt.Component.setVisible' was converted to 'System.Windows.Forms.Control.Visible' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtComponentsetVisible_boolean_3"'
     //UPGRADE_TODO: 'System.Windows.Forms.Application.Run' must be called to start a main form. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1135_3"'
     frame.Visible = true;
 }
 public virtual void setSuperGroup(StringTemplateGroup superGroup)
 {
     this.superGroup = superGroup;
 }
 public virtual void setGroup(StringTemplateGroup group)
 {
     this.group = group;
 }
 /// <summary>Create an anonymous template with no name, but with a group </summary>
 public StringTemplate(StringTemplateGroup group, String template)
     : this()
 {
     if (debugMode)
         debug("new StringTemplate(group, [" + template + "]):" + getTemplateID());
     if (group != null)
     {
         setGroup(group);
     }
     setTemplate(template);
 }
 /// <summary>Create a blank template with no pattern and no attributes </summary>
 public StringTemplate()
 {
     InitBlock();
     group = defaultGroup; // make sure has a group even if default
     if (debugMode)
         debug("new StringTemplate():" + getTemplateID());
 }
 /// <summary>Create an anonymous template with no name, but with a group </summary>
 public StringTemplate(StringTemplateGroup group, String template)
     : this()
 {
     if (group != null)
     {
         setGroup(group);
     }
     setTemplate(template);
 }
 /// <summary>Create a blank template with no pattern and no attributes </summary>
 public StringTemplate()
 {
     InitBlock();
     group = defaultGroup; // make sure has a group even if default
 }