本文整理汇总了Java中net.sf.jasperreports.engine.JRParameter.isForPrompting方法的典型用法代码示例。如果您正苦于以下问题:Java JRParameter.isForPrompting方法的具体用法?Java JRParameter.isForPrompting怎么用?Java JRParameter.isForPrompting使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.engine.JRParameter
的用法示例。
在下文中一共展示了JRParameter.isForPrompting方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPromptingParameters
import net.sf.jasperreports.engine.JRParameter; //导入方法依赖的package包/类
protected Map<QName, Object> getPromptingParameters(){
JRParameter[] params = dataset.getParameters();
Map<QName, Object> expressionParameters = new HashMap<QName, Object>();
for (JRParameter param : params){
if (param.isSystemDefined()){
continue;
}
if (!param.isForPrompting()){
continue;
}
//LOGGER.trace(((JRBaseParameter)param).getName());
Object v = getParameterValue(param.getName());
try{
expressionParameters.put(new QName(param.getName()), new PrismPropertyValue(v));
} catch (Exception e){
//just skip properties that are not important for midpoint
}
LOGGER.trace("p.val: {}", v);
}
return expressionParameters;
}
示例2: JRBaseParameter
import net.sf.jasperreports.engine.JRParameter; //导入方法依赖的package包/类
/**
*
*/
protected JRBaseParameter(JRParameter parameter, JRBaseObjectFactory factory)
{
factory.put(parameter, this);
name = parameter.getName();
description = parameter.getDescription();
valueClassName = parameter.getValueClassName();
nestedTypeName = parameter.getNestedTypeName();
isSystemDefined = parameter.isSystemDefined();
isForPrompting = parameter.isForPrompting();
evaluationTime = parameter.getEvaluationTime();
defaultValueExpression = factory.getExpression(parameter.getDefaultValueExpression());
propertiesMap = parameter.getPropertiesMap().cloneProperties();
}
示例3: JasperReportParameterDto
import net.sf.jasperreports.engine.JRParameter; //导入方法依赖的package包/类
public JasperReportParameterDto(JRParameter param) {
this.name = param.getName();
this.typeAsString = param.getValueClassName();
this.type = (Class<?>) param.getValueClass();
this.forPrompting = param.isForPrompting();
if (param.getDescription() != null){
this.description = param.getDescription();
}
this.nestedType = param.getNestedType();
this.nestedTypeAsString = param.getNestedTypeName();
this.value = new ArrayList<>();
this.value.add(new JasperReportValueDto());
this.properties = new JasperReportParameterPropertiesDto(param.getPropertiesMap());
}