this.write((StringBuilder)output, (CdfRunJsDashboardWriteContext)context, (GenericComponent)t);
}
public void write(StringBuilder out, CdfRunJsDashboardWriteContext context, GenericComponent comp) throws ThingWriteException
{
GenericComponentType compType = comp.getMeta();
String id = context.getId(comp);
out.append("var ");
out.append(id);
out.append(" = {");
out.append(NEWLINE);
addJsProperty(out, "type", JsonUtils.toJsString(compType.getName()), INDENT1, true );
addJsProperty(out, "name", JsonUtils.toJsString(id ), INDENT1, false);
// Render definitions
for(String definitionName : compType.getDefinitionNames())
{
addCommaAndLineSep(out);
this.writeDefinition(definitionName, out, context, comp, compType);
}