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

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


  }

  @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


        return new CdfRunJsGenericComponentWriter();
      }
     
      if(ParameterComponent.class.isAssignableFrom(compClass))
      {
        ParameterComponent paramComp = (ParameterComponent)t;
        String typeName = paramComp.getMeta().getName().toLowerCase();
        if(typeName.equals("parameter"          ) ||
           typeName.equals("olapparameter"      )) { return new CdfRunJsParameterComponentWriter();           }
        if(typeName.equals("dateparameter"      )) { return new CdfRunJsDateParameterComponentWriter();       }
        if(typeName.equals("javascriptparameter")) { return new CdfRunJsExpressionParameterComponentWriter(); }
      }
View Full Code Here

TOP

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

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.