Package pt.webdetails.cdf.dd.model.inst

Examples of pt.webdetails.cdf.dd.model.inst.WidgetComponent


      String cdeDashFilePath = dash.getSourcePath();
      if ( !invalidateDashboards.contains( cdeDashFilePath ) ) {
        Iterable<Component> comps = dash.getRegulars();
        for ( Component comp : comps ) {
          if ( comp instanceof WidgetComponent ) {
            WidgetComponent widgetComp = (WidgetComponent) comp;
            if ( DashboardWcdfDescriptor.toStructurePath( widgetComp.getWcdfPath() ).equals( cdeWidgetFilePath ) ) {
              // This dashboard uses this widget
              invalidateDashboards.add( cdeDashFilePath );
              if ( dash.getWcdf().isWidget() ) {
                // If the dashboard is also a widget, recurse
                collectWidgetsToInvalidate(
View Full Code Here


      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
          {
            dashResult = dashMgr.getDashboardCdfRunJs(
                    widgetComp.getWcdfPath(),
                    childOptions,
                    this._context.isBypassCacheRead());
          }
          catch (ThingWriteException ex)
          {
            logger.error("Could not render widget '" + widgetComp.getWcdfPath()  + "'", ex);
          }

          String containerId = widgetComp.tryGetPropertyValue("htmlObject", "")
                  .replaceAll("\\$\\{.*:(.*)\\}", "$1");

          widgetsByContainerId.put(containerId, dashResult);
        }
      }
View Full Code Here

TOP

Related Classes of pt.webdetails.cdf.dd.model.inst.WidgetComponent

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.