KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > userinterface > UPRangeElement


1 package com.calipso.reportgenerator.userinterface;
2
3 import com.calipso.reportgenerator.common.ReportFilterSpec;
4 import com.calipso.reportgenerator.common.ReportSpec;
5
6 /**
7  * Representa un elemento de tipo range de
8  * la coleccion <code>UPCollection</code>.
9  * Conoce todos los datos necesarios de 1 filtro para una dimension.
10  */

11
12 public class UPRangeElement extends UPCollectionElement {
13
14   private String JavaDoc startingArgument;
15   private String JavaDoc endingArgument;
16   private String JavaDoc startingTfCaption;
17   private String JavaDoc endingTfCaption;
18
19   public UPRangeElement(ReportFilterSpec filterDefinition, ReportSpec reportSpec,
20                         String JavaDoc startingArgument, String JavaDoc endingArgument,
21                         String JavaDoc startingTfCaption, String JavaDoc endingTfCaption) {
22     super(filterDefinition, reportSpec);
23     this.startingArgument = startingArgument;
24     this.endingArgument = endingArgument;
25     this.startingTfCaption = startingTfCaption;
26     this.endingTfCaption = endingTfCaption;
27   }
28
29   public String JavaDoc getStartingTfCaption() {
30     return startingTfCaption;
31   }
32
33   public String JavaDoc getEndingTfCaption() {
34     return endingTfCaption;
35   }
36
37   public String JavaDoc getStartingArgument() {
38     return startingArgument;
39   }
40
41   public String JavaDoc getEndingArgument() {
42     return endingArgument;
43   }
44
45   public ReportSpec getReportSpec() {
46     return super.getReportSpec();
47   }
48
49   public ReportFilterSpec getFilterDefinition() {
50     return super.getFilterDefinition();
51   }
52
53   public UPPanel getVisualComponent() {
54     return new UPRangePanel(this);
55   }
56 }
57
Popular Tags