Examples of CdfRunJsDashboardWriter


Examples of pt.webdetails.cdf.dd.model.inst.writer.cdfrunjs.dashboard.CdfRunJsDashboardWriter

    CdfRunJsDashboardWriteOptions options,
    boolean bypassCacheRead )
    throws ThingWriteException {
    // 1. Obtain a Writer for the CdfRunJs format
    CdfRunJsThingWriterFactory writerFactory = new CdfRunJsThingWriterFactory();
    CdfRunJsDashboardWriter writer = writerFactory.getDashboardWriter( dash );

    // 2. Write it
    CdfRunJsDashboardWriteContext writeContext = CdeEngine.getInstance().
      getEnvironment().getCdfRunJsDashboardWriteContext( writerFactory, /*indent*/"", bypassCacheRead, dash, options );

    CdfRunJsDashboardWriteResult.Builder dashboardWriteBuilder =
      new CdfRunJsDashboardWriteResult.Builder();

    writer.write( dashboardWriteBuilder, writeContext, dash );

    return dashboardWriteBuilder.build();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.