001: /*
002: * File : $Source: /usr/local/cvs/opencms/src-modules/org/opencms/frontend/templatetwo/CmsListBoxEntry.java,v $
003: * Date : $Date: 2008-02-27 12:05:30 $
004: * Version: $Revision: 1.2 $
005: *
006: * This library is part of OpenCms -
007: * the Open Source Content Management System
008: *
009: * Copyright (c) 2002 - 2008 Alkacon Software GmbH (http://www.alkacon.com)
010: *
011: * This library is free software; you can redistribute it and/or
012: * modify it under the terms of the GNU Lesser General Public
013: * License as published by the Free Software Foundation; either
014: * version 2.1 of the License, or (at your option) any later version.
015: *
016: * This library is distributed in the hope that it will be useful,
017: * but WITHOUT ANY WARRANTY; without even the implied warranty of
018: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019: * Lesser General Public License for more details.
020: *
021: * For further information about Alkacon Software GmbH, please see the
022: * company website: http://www.alkacon.com
023: *
024: * For further information about OpenCms, please see the
025: * project website: http://www.opencms.org
026: *
027: * You should have received a copy of the GNU Lesser General Public
028: * License along with this library; if not, write to the Free Software
029: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
030: */
031:
032: package org.opencms.frontend.templatetwo;
033:
034: import java.util.Date;
035:
036: /**
037: * Java Bean which describes a single entry in a list box.<p>
038: *
039: * @author Peter Bonrad
040: *
041: * @version $Revision: 1.2 $
042: *
043: * @since 7.0.4
044: */
045: public class CmsListBoxEntry {
046:
047: /** The author of the list box entry. */
048: private String m_author;
049:
050: /** The date of the list box entry. */
051: private Date m_date;
052:
053: /** The text of the list box entry. */
054: private String m_text;
055:
056: /** The path to the image of the list box entry. */
057: private String m_image;
058:
059: /** The link to the list box entry. */
060: private String m_link;
061:
062: /** The title of the list box entry. */
063: private String m_title;
064:
065: /**
066: * Returns the author of the list box entry.<p>
067: *
068: * @return the author of the list box entry
069: */
070: public String getAuthor() {
071:
072: return m_author;
073: }
074:
075: /**
076: * Returns the date of the list box entry.<p>
077: *
078: * @return the date of the list box entry
079: */
080: public Date getDate() {
081:
082: return m_date;
083: }
084:
085: /**
086: * Returns the text of the list box entry.<p>
087: *
088: * @return the text of the list box entry
089: */
090: public String getText() {
091:
092: return m_text;
093: }
094:
095: /**
096: * Returns the path to the image of the list box entry.<p>
097: *
098: * @return the path to the image of the list box entry
099: */
100: public String getImage() {
101:
102: return m_image;
103: }
104:
105: /**
106: * Returns the link to the list box entry.<p>
107: *
108: * @return the link to the list box entry
109: */
110: public String getLink() {
111:
112: return m_link;
113: }
114:
115: /**
116: * Returns the title of the list box entry.<p>
117: *
118: * @return the title of the list box entry
119: */
120: public String getTitle() {
121:
122: return m_title;
123: }
124:
125: /**
126: * Sets the author of the list box entry.<p>
127: *
128: * @param author the author of the list box entry to set
129: */
130: public void setAuthor(String author) {
131:
132: m_author = author;
133: }
134:
135: /**
136: * Sets the date of the list box entry.<p>
137: *
138: * @param date the date of the list box entry to set
139: */
140: public void setDate(Date date) {
141:
142: m_date = date;
143: }
144:
145: /**
146: * Sets the text of the list box entry.<p>
147: *
148: * @param text the text of the list box entry to set
149: */
150: public void setDescription(String text) {
151:
152: m_text = text;
153: }
154:
155: /**
156: * Sets the path to the image of the list box entry.<p>
157: *
158: * @param image the path to the image of the list box entry to set
159: */
160: public void setImage(String image) {
161:
162: m_image = image;
163: }
164:
165: /**
166: * Sets the link to the list box entry.<p>
167: *
168: * @param link the link to the list box entry to set
169: */
170: public void setLink(String link) {
171:
172: m_link = link;
173: }
174:
175: /**
176: * Sets the title of the list box entry.<p>
177: *
178: * @param title the title of the list box entry to set
179: */
180: public void setTitle(String title) {
181:
182: m_title = title;
183: }
184:
185: }
|