01: package com.calipso.reportgenerator.userinterface;
02:
03: import com.calipso.reportgenerator.common.ReportFilterSpec;
04: import com.calipso.reportgenerator.common.ReportSpec;
05: import com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType;
06:
07: /**
08: *
09: * User: jbassino
10: * Date: 31-may-2005
11: * Time: 15:42:11
12: * Calipso Software
13: */
14: public class UPExcludeElement extends UPCollectionElement {
15:
16: public UPExcludeElement(ReportFilterSpec filterDefinition,
17: ReportSpec reportSpec) {
18: super (filterDefinition, reportSpec);
19: }
20:
21: public UPPanel getVisualComponent() {
22: return new UPExcludePanel(this );
23: }
24:
25: public boolean isRangeOperation() {
26: String paramName = getFilterDefinition().getName()
27: + ParameterValueFilterParameterType.OPERATION
28: .toString();
29: String paramValue = getReportSpec().getParamValues(false).get(
30: paramName).toString();
31: return paramValue.toUpperCase().indexOf("RANGE") >= 0;
32: }
33:
34: }
|