1 package com.calipso.reportgenerator.userinterface; 2 3 import com.calipso.reportgenerator.common.ReportFilterSpec; 4 import com.calipso.reportgenerator.common.ReportSpec; 5 import com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType; 6 7 14 public class UPExcludeElement extends UPCollectionElement{ 15 16 public UPExcludeElement(ReportFilterSpec filterDefinition, ReportSpec reportSpec) { 17 super(filterDefinition, reportSpec); 18 } 19 20 public UPPanel getVisualComponent() { 21 return new UPExcludePanel(this); 22 } 23 24 public boolean isRangeOperation() { 25 String paramName = getFilterDefinition().getName() + ParameterValueFilterParameterType.OPERATION.toString(); 26 String paramValue = getReportSpec().getParamValues(false).get(paramName).toString(); 27 return paramValue.toUpperCase().indexOf("RANGE") >= 0; 28 } 29 30 31 32 } 33 | Popular Tags |