Package pt.webdetails.cdf.dd.model.meta

Examples of pt.webdetails.cdf.dd.model.meta.GenericComponentType


    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);
    }
   
View Full Code Here

TOP

Related Classes of pt.webdetails.cdf.dd.model.meta.GenericComponentType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.