001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * SectionItemHyperlink.java
028: *
029: * Created on September 1, 2006, 1:44 PM
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: import it.businesslogic.ireport.JRLinkParameter;
036:
037: /**
038: *
039: * @author gtoffoli
040: */
041: public class SectionItemHyperlink {
042:
043: /* Item or section hyperlink infos */
044: private String hyperlinkReferenceExpression = "";
045: private String hyperlinkAnchorExpression = "";
046: private String hyperlinkPageExpression = "";
047: private String hyperlinkTooltipExpression = "";
048: private String hyperlinkType = "None";
049: private String hyperlinkTarget = "Self";
050: private java.util.List hyperlinkParameters = new java.util.ArrayList();
051:
052: /** Creates a new instance of SectionItemHyperlink */
053: public SectionItemHyperlink() {
054: }
055:
056: public SectionItemHyperlink cloneMe() {
057: SectionItemHyperlink s = new SectionItemHyperlink();
058: s.setHyperlinkReferenceExpression(new String(
059: hyperlinkReferenceExpression));
060: s.setHyperlinkAnchorExpression(new String(
061: hyperlinkAnchorExpression));
062: s
063: .setHyperlinkPageExpression(new String(
064: hyperlinkPageExpression));
065: s.setHyperlinkTooltipExpression(new String(
066: hyperlinkTooltipExpression));
067: s.setHyperlinkType(new String(hyperlinkType));
068: s.setHyperlinkTarget(new String(hyperlinkTarget));
069:
070: for (int i = 0; i < hyperlinkParameters.size(); ++i) {
071: JRLinkParameter lp = (JRLinkParameter) hyperlinkParameters
072: .get(i);
073: s.getHyperlinkParameters().add(
074: new JRLinkParameter(lp.getName(), lp
075: .getExpression()));
076: }
077:
078: return s;
079: }
080:
081: public String getHyperlinkReferenceExpression() {
082: return hyperlinkReferenceExpression;
083: }
084:
085: public void setHyperlinkReferenceExpression(
086: String hyperlinkReferenceExpression) {
087: this .hyperlinkReferenceExpression = hyperlinkReferenceExpression;
088: }
089:
090: public String getHyperlinkAnchorExpression() {
091: return hyperlinkAnchorExpression;
092: }
093:
094: public void setHyperlinkAnchorExpression(
095: String hyperlinkAnchorExpression) {
096: this .hyperlinkAnchorExpression = hyperlinkAnchorExpression;
097: }
098:
099: public String getHyperlinkPageExpression() {
100: return hyperlinkPageExpression;
101: }
102:
103: public void setHyperlinkPageExpression(
104: String hyperlinkPageExpression) {
105: this .hyperlinkPageExpression = hyperlinkPageExpression;
106: }
107:
108: public String getHyperlinkTooltipExpression() {
109: return hyperlinkTooltipExpression;
110: }
111:
112: public void setHyperlinkTooltipExpression(
113: String hyperlinkTooltipExpression) {
114: this .hyperlinkTooltipExpression = hyperlinkTooltipExpression;
115: }
116:
117: public String getHyperlinkType() {
118: return hyperlinkType;
119: }
120:
121: public void setHyperlinkType(String hyperlinkType) {
122: this .hyperlinkType = hyperlinkType;
123: }
124:
125: public String getHyperlinkTarget() {
126: return hyperlinkTarget;
127: }
128:
129: public void setHyperlinkTarget(String hyperlinkTarget) {
130: this .hyperlinkTarget = hyperlinkTarget;
131: }
132:
133: public java.util.List getHyperlinkParameters() {
134: return hyperlinkParameters;
135: }
136:
137: public void setHyperlinkParameters(
138: java.util.List hyperlinkParameters) {
139: this.hyperlinkParameters = hyperlinkParameters;
140: }
141:
142: }
|