KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > businesslogic > ireport > chart > SectionItemHyperlink


1 /*
2  * Copyright (C) 2005 - 2006 JasperSoft Corporation. All rights reserved.
3  * http://www.jaspersoft.com.
4  *
5  * Unless you have purchased a commercial license agreement from JasperSoft,
6  * the following license terms apply:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as published by
10  * the Free Software Foundation.
11  *
12  * This program is distributed WITHOUT ANY WARRANTY; and without the
13  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
18  * or write to:
19  *
20  * Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330,
22  * Boston, MA USA 02111-1307
23  *
24  *
25  *
26  *
27  * SectionItemHyperlink.java
28  *
29  * Created on September 1, 2006, 1:44 PM
30  *
31  */

32
33 package it.businesslogic.ireport.chart;
34
35 import it.businesslogic.ireport.JRLinkParameter;
36
37 /**
38  *
39  * @author gtoffoli
40  */

41 public class SectionItemHyperlink {
42     
43     /* Item or section hyperlink infos */
44     private String JavaDoc hyperlinkReferenceExpression = "";
45     private String JavaDoc hyperlinkAnchorExpression = "";
46     private String JavaDoc hyperlinkPageExpression = "";
47     private String JavaDoc hyperlinkTooltipExpression = "";
48     private String JavaDoc hyperlinkType = "None";
49     private String JavaDoc hyperlinkTarget = "Self";
50     private java.util.List JavaDoc hyperlinkParameters = new java.util.ArrayList JavaDoc();
51     
52     /** Creates a new instance of SectionItemHyperlink */
53     public SectionItemHyperlink() {
54     }
55     
56     public SectionItemHyperlink cloneMe()
57     {
58         SectionItemHyperlink s = new SectionItemHyperlink();
59         s.setHyperlinkReferenceExpression( new String JavaDoc(hyperlinkReferenceExpression) );
60         s.setHyperlinkAnchorExpression( new String JavaDoc(hyperlinkAnchorExpression) );
61         s.setHyperlinkPageExpression( new String JavaDoc(hyperlinkPageExpression) );
62         s.setHyperlinkTooltipExpression( new String JavaDoc(hyperlinkTooltipExpression) );
63         s.setHyperlinkType( new String JavaDoc(hyperlinkType) );
64         s.setHyperlinkTarget( new String JavaDoc(hyperlinkTarget) );
65         
66         for (int i=0; i<hyperlinkParameters.size(); ++i)
67         {
68             JRLinkParameter lp = (JRLinkParameter)hyperlinkParameters.get(i);
69             s.getHyperlinkParameters().add( new JRLinkParameter(lp.getName(), lp.getExpression()));
70         }
71         
72         return s;
73     }
74     
75     public String JavaDoc getHyperlinkReferenceExpression() {
76         return hyperlinkReferenceExpression;
77     }
78
79     public void setHyperlinkReferenceExpression(String JavaDoc hyperlinkReferenceExpression) {
80         this.hyperlinkReferenceExpression = hyperlinkReferenceExpression;
81     }
82
83     public String JavaDoc getHyperlinkAnchorExpression() {
84         return hyperlinkAnchorExpression;
85     }
86
87     public void setHyperlinkAnchorExpression(String JavaDoc hyperlinkAnchorExpression) {
88         this.hyperlinkAnchorExpression = hyperlinkAnchorExpression;
89     }
90
91     public String JavaDoc getHyperlinkPageExpression() {
92         return hyperlinkPageExpression;
93     }
94
95     public void setHyperlinkPageExpression(String JavaDoc hyperlinkPageExpression) {
96         this.hyperlinkPageExpression = hyperlinkPageExpression;
97     }
98
99     public String JavaDoc getHyperlinkTooltipExpression() {
100         return hyperlinkTooltipExpression;
101     }
102
103     public void setHyperlinkTooltipExpression(String JavaDoc hyperlinkTooltipExpression) {
104         this.hyperlinkTooltipExpression = hyperlinkTooltipExpression;
105     }
106
107     public String JavaDoc getHyperlinkType() {
108         return hyperlinkType;
109     }
110
111     public void setHyperlinkType(String JavaDoc hyperlinkType) {
112         this.hyperlinkType = hyperlinkType;
113     }
114
115     public String JavaDoc getHyperlinkTarget() {
116         return hyperlinkTarget;
117     }
118
119     public void setHyperlinkTarget(String JavaDoc hyperlinkTarget) {
120         this.hyperlinkTarget = hyperlinkTarget;
121     }
122
123     public java.util.List JavaDoc getHyperlinkParameters() {
124         return hyperlinkParameters;
125     }
126
127     public void setHyperlinkParameters(java.util.List JavaDoc hyperlinkParameters) {
128         this.hyperlinkParameters = hyperlinkParameters;
129     }
130     
131 }
132
Popular Tags