01: package com.calipso.reportgenerator.userinterface;
02:
03: import com.calipso.reportgenerator.common.ReportFilterSpec;
04: import com.calipso.reportgenerator.common.ReportSpec;
05:
06: /**
07: * Representa un elemento de tipo range de
08: * la coleccion <code>UPCollection</code>.
09: * Conoce todos los datos necesarios de 1 filtro para una dimension.
10: */
11:
12: public class UPRangeElement extends UPCollectionElement {
13:
14: private String startingArgument;
15: private String endingArgument;
16: private String startingTfCaption;
17: private String endingTfCaption;
18:
19: public UPRangeElement(ReportFilterSpec filterDefinition,
20: ReportSpec reportSpec, String startingArgument,
21: String endingArgument, String startingTfCaption,
22: String endingTfCaption) {
23: super (filterDefinition, reportSpec);
24: this .startingArgument = startingArgument;
25: this .endingArgument = endingArgument;
26: this .startingTfCaption = startingTfCaption;
27: this .endingTfCaption = endingTfCaption;
28: }
29:
30: public String getStartingTfCaption() {
31: return startingTfCaption;
32: }
33:
34: public String getEndingTfCaption() {
35: return endingTfCaption;
36: }
37:
38: public String getStartingArgument() {
39: return startingArgument;
40: }
41:
42: public String getEndingArgument() {
43: return endingArgument;
44: }
45:
46: public ReportSpec getReportSpec() {
47: return super .getReportSpec();
48: }
49:
50: public ReportFilterSpec getFilterDefinition() {
51: return super .getFilterDefinition();
52: }
53:
54: public UPPanel getVisualComponent() {
55: return new UPRangePanel(this);
56: }
57: }
|