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 value de
08: * la coleccion <code>UPCollection</code>.
09: * Conoce todos los datos necesarios de 1 filtro para una dimension.
10: */
11:
12: public class UPValueElement extends UPCollectionElement {
13:
14: private String uniqueArgument;
15: private String uniqueTfCaption;
16:
17: public UPValueElement(ReportFilterSpec filterDefinition,
18: ReportSpec reportSpec, String uniqueArgument,
19: String uniqueTfCaption) {
20: super (filterDefinition, reportSpec);
21: this .uniqueArgument = uniqueArgument;
22: this .uniqueTfCaption = uniqueTfCaption;
23: }
24:
25: public String getUniqueArgument() {
26: return uniqueArgument;
27: }
28:
29: public String getUniqueTfCaption() {
30: return uniqueTfCaption;
31: }
32:
33: public ReportSpec getReportSpec() {
34: return super .getReportSpec();
35: }
36:
37: public ReportFilterSpec getFilterDefinition() {
38: return super .getFilterDefinition();
39: }
40:
41: public UPPanel getVisualComponent() {
42: return new UPValuePanel(this);
43: }
44: }
|