Search in sources :

Example 1 with DefaultListParameter

use of org.pentaho.reporting.engine.classic.core.parameters.DefaultListParameter in project head by mifos.

the class PentahoParamParser method parseListParameter.

private AbstractPentahoParameter parseListParameter(ListParameter paramDefEntry, ParameterContext paramContext, Map<String, AbstractPentahoParameter> selectedValues, boolean update) throws ReportDataFactoryException {
    DefaultListParameter listParam = (DefaultListParameter) paramDefEntry;
    AbstractPentahoParameter result;
    if (listParam.isAllowMultiSelection()) {
        result = parseMultiListParameter(paramDefEntry, paramContext);
    } else {
        result = parseSingleListParameter(paramDefEntry, paramContext, selectedValues, update);
    }
    return result;
}
Also used : AbstractPentahoParameter(org.mifos.reports.pentaho.params.AbstractPentahoParameter) DefaultListParameter(org.pentaho.reporting.engine.classic.core.parameters.DefaultListParameter)

Aggregations

AbstractPentahoParameter (org.mifos.reports.pentaho.params.AbstractPentahoParameter)1 DefaultListParameter (org.pentaho.reporting.engine.classic.core.parameters.DefaultListParameter)1