Examples of tryGetPropertyValue()


Examples of pt.webdetails.cdf.dd.model.inst.DataSourceComponent.tryGetPropertyValue()

    DataSourceComponent dataSourceComp = this.getDataSourceComponent( context, propBind );
    if ( dataSourceComp == null ) {
      return;
    }

    String dataAccessId = dataSourceComp.tryGetPropertyValue( PropertyName.DATA_ACCESS_ID, null );
    if ( dataAccessId != null ) {
      renderCdaDatasource( out, context, dataSourceComp, dataAccessId );
    } else {
      // "meta" attribute has the value "CDA", "CPK" ?
      // See DataSourceModelReader#readDataSourceComponent
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.DataSourceComponent.tryGetPropertyValue()

  {
    String dataSourceName = propBind.getValue();
    DataSourceComponent dataSourceComp = context.getDashboard().tryGetDataSource(dataSourceName);
    if(dataSourceComp != null)
    {
      String dataAccessId = dataSourceComp.tryGetPropertyValue("dataAccessId", null);

      String indent = context.getIndent();

      addJsProperty(out, "dataAccessId", buildJsStringValue(dataAccessId), indent, context.isFirstInList());
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.DataSourceComponent.tryGetPropertyValue()

      addJsProperty(out, "dataAccessId", buildJsStringValue(dataAccessId), indent, context.isFirstInList());

      context.setIsFirstInList(false);

      addJsProperty(out, "solution", buildJsStringValue(dataSourceComp.tryGetPropertyValue("solution", "")), indent, false);
      addJsProperty(out, "path",     buildJsStringValue(dataSourceComp.tryGetPropertyValue("path",     "")), indent, false);
      addJsProperty(out, "file",     buildJsStringValue(dataSourceComp.tryGetPropertyValue("file",     "")), indent, false);
    }
  }
}
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.DataSourceComponent.tryGetPropertyValue()

      addJsProperty(out, "dataAccessId", buildJsStringValue(dataAccessId), indent, context.isFirstInList());

      context.setIsFirstInList(false);

      addJsProperty(out, "solution", buildJsStringValue(dataSourceComp.tryGetPropertyValue("solution", "")), indent, false);
      addJsProperty(out, "path",     buildJsStringValue(dataSourceComp.tryGetPropertyValue("path",     "")), indent, false);
      addJsProperty(out, "file",     buildJsStringValue(dataSourceComp.tryGetPropertyValue("file",     "")), indent, false);
    }
  }
}
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.DataSourceComponent.tryGetPropertyValue()

      context.setIsFirstInList(false);

      addJsProperty(out, "solution", buildJsStringValue(dataSourceComp.tryGetPropertyValue("solution", "")), indent, false);
      addJsProperty(out, "path",     buildJsStringValue(dataSourceComp.tryGetPropertyValue("path",     "")), indent, false);
      addJsProperty(out, "file",     buildJsStringValue(dataSourceComp.tryGetPropertyValue("file",     "")), indent, false);
    }
  }
}
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.ParameterComponent.tryGetPropertyValue()

  }

  @Test
  public void testParameterComponentWrite() {
    ParameterComponent parameterComponent = Mockito.mock( ParameterComponent.class );
    when(parameterComponent.tryGetPropertyValue( "propertyValue", "" )).thenReturn("1");
    when(parameterComponent.tryGetPropertyValue( "parameterViewRole", "unused" )).thenReturn("unused");

    when(context.getId( parameterComponent )).thenReturn( "param1" );

    StringBuilder dashboardResult = new StringBuilder();
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.ParameterComponent.tryGetPropertyValue()

  @Test
  public void testParameterComponentWrite() {
    ParameterComponent parameterComponent = Mockito.mock( ParameterComponent.class );
    when(parameterComponent.tryGetPropertyValue( "propertyValue", "" )).thenReturn("1");
    when(parameterComponent.tryGetPropertyValue( "parameterViewRole", "unused" )).thenReturn("unused");

    when(context.getId( parameterComponent )).thenReturn( "param1" );

    StringBuilder dashboardResult = new StringBuilder();
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.inst.WidgetComponent.tryGetPropertyValue()

          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
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.