KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > engine > JRPrintHyperlinkParameter


1 /*
2  * ============================================================================
3  * GNU Lesser General Public License
4  * ============================================================================
5  *
6  * JasperReports - Free Java report-generating library.
7  * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  *
23  * JasperSoft Corporation
24  * 303 Second Street, Suite 450 North
25  * San Francisco, CA 94107
26  * http://www.jaspersoft.com
27  */

28 package net.sf.jasperreports.engine;
29
30 import java.io.Serializable JavaDoc;
31
32
33 /**
34  * A parameter of the hyperlink associated to a print element.
35  *
36  * @author Lucian Chirita (lucianc@users.sourceforge.net)
37  * @version $Id: JRPrintHyperlinkParameter.java 1355 2006-08-04 17:31:54 +0300 (Fri, 04 Aug 2006) lucianc $
38  */

39 public class JRPrintHyperlinkParameter implements Serializable JavaDoc
40 {
41     private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
42     
43     public static final String JavaDoc DEFAULT_VALUE_CLASS = java.lang.String JavaDoc.class.getName();
44     
45     private String JavaDoc name;
46     private String JavaDoc valueClass = DEFAULT_VALUE_CLASS;
47     private Object JavaDoc value;
48
49
50     /**
51      * Creates a blank parameter.
52      */

53     public JRPrintHyperlinkParameter()
54     {
55     }
56
57
58     /**
59      * Creates a parameter and initializes its properties.
60      *
61      * @param name the parameter name
62      * @param valueClass the parameter value class
63      * @param value the parameter value
64      */

65     public JRPrintHyperlinkParameter(final String JavaDoc name, final String JavaDoc valueClass, final Object JavaDoc value)
66     {
67         this.name = name;
68         this.valueClass = valueClass;
69         this.value = value;
70     }
71     
72     
73     /**
74      * Returns the parameter name.
75      *
76      * @return the parameter name
77      * @see #setName(String)
78      */

79     public String JavaDoc getName()
80     {
81         return name;
82     }
83     
84     
85     /**
86      * Returns the parameter value class name.
87      *
88      * @return the parameter value class
89      * @see #setValueClass(String)
90      */

91     public String JavaDoc getValueClass()
92     {
93         return valueClass;
94     }
95
96     
97     /**
98      * Returns the parameter value.
99      *
100      * @return the parameter value
101      * @see #setValue(Object)
102      */

103     public Object JavaDoc getValue()
104     {
105         return value;
106     }
107
108     
109     /**
110      * Sets the parameter name.
111      *
112      * @param name the name
113      */

114     public void setName(final String JavaDoc name)
115     {
116         this.name = name;
117     }
118
119     
120     /**
121      * Sets the parameter value class.
122      *
123      * @param valueClass the value class name
124      */

125     public void setValueClass(final String JavaDoc valueClass)
126     {
127         this.valueClass = valueClass;
128     }
129
130     
131     /**
132      * Sets the parameter value.
133      *
134      * @param value the value
135      */

136     public void setValue(final Object JavaDoc value)
137     {
138         this.value = value;
139     }
140     
141 }
142
Popular Tags