Examples of CdfRunJsDashboardWriteOptions


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

    String wcdfFilePath = getWcdfRelativePath( requestParams );

    String style = requestParams.getStringParameter( "style", "" );

    CdfRunJsDashboardWriteOptions options = new CdfRunJsDashboardWriteOptions(
      absolute, debug, absRoot, scheme );

    return DashboardManager.getInstance().getDashboardCdfRunJs(
      wcdfFilePath, options, bypassCacheRead, style );
  }
View Full Code Here

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

   
    Dashboard dashboard = this._context.getDashboard();
    if(dashboard.getRegularCount() > 0)
    {
      DashboardManager dashMgr = DashboardManager.getInstance();
      CdfRunJsDashboardWriteOptions options = this._context.getOptions();
     
      Iterable<Component> components = dashboard.getRegulars();
      for(Component comp : components)
      {
        if(StringUtils.isNotEmpty(comp.getName()) && comp instanceof WidgetComponent)
        {
          WidgetComponent widgetComp = (WidgetComponent)comp;
         
          CdfRunJsDashboardWriteOptions childOptions = options
                  .addAliasPrefix(comp.getName()); // <-- NOTE:!
         
          CdfRunJsDashboardWriteResult dashResult = null;
          try
          {
View Full Code Here

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

      throw new ThingWriteException("Error while obtaining a writer for rendering the generic component.", ex);
    }

    // Options are kind of irrelevant in this context,
    // as we're only rendering one component, not a dashboard (and not a widget component).
    CdfRunJsDashboardWriteOptions options = new CdfRunJsDashboardWriteOptions(false, false, "", "");

    // Idem
    CdfRunJsDashboardWriteContext writeContext =
        CdeEngine.getInstance().getEnvironment().getCdfRunJsDashboardWriteContext(
            writerFactory,
View Full Code Here

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

  public void write(StringBuilder out, CdfRunJsDashboardWriteContext context, WidgetComponent comp) throws ThingWriteException
  {
    //WidgetComponentType compType = comp.getMeta();
    DashboardManager dashMgr = DashboardManager.getInstance();
   
    CdfRunJsDashboardWriteOptions options = context.getOptions()
            .addAliasPrefix(comp.getName()); // <-- NOTE:!
   
    String newAliasPrefix = options.getAliasPrefix();
   
    CdfRunJsDashboardWriteResult dashResult = dashMgr.getDashboardCdfRunJs(
          comp.getWcdfPath(),
          options,
          context.isBypassCacheRead());
View Full Code Here

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

  private CdfRunJsDashboardWriteResult loadDashboard( String filePath, String scheme, String root, boolean absolute,
                                                      boolean bypassCache, boolean debug, String style )
    throws ThingWriteException {

    CdfRunJsDashboardWriteOptions options =
      new CdfRunJsDashboardWriteOptions( absolute, debug, root, scheme );
    return DashboardManager.getInstance().getDashboardCdfRunJs( filePath, options, bypassCache, style );
  }
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.