001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or 1any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * Initial developer: Florent BENOIT
022: * --------------------------------------------------------------------------
023: * $Id: AbsDescriptionElement.java 4718 2004-05-10 12:06:09Z sauthieg $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas_lib.deployment.xml;
026:
027: /**
028: * This class defines an abstract implementation for all statndard environment element
029: * (entity, session, web-app, application-client, etc.)..
030: *
031: * @author Florent Benoit
032: */
033: public abstract class AbsDescriptionElement extends AbsElement
034: implements DescriptionGroupXml {
035:
036: /**
037: * icon
038: */
039: private Icon icon = null;
040:
041: /**
042: * description
043: */
044: private String description = null;
045:
046: /**
047: * Display name
048: */
049: private String displayName = null;
050:
051: /**
052: * Construct an empty AbsDescriptionElement.
053: */
054: public AbsDescriptionElement() {
055: super ();
056: icon = new Icon();
057: }
058:
059: /**
060: * @return the display-name element
061: */
062: public String getDisplayName() {
063: return displayName;
064: }
065:
066: /**
067: * Set the display-name
068: * @param displayname displayname
069: */
070: public void setDisplayName(String displayname) {
071: displayName = displayname;
072: }
073:
074: /**
075: * @return the icon
076: */
077: public Icon getIcon() {
078: return icon;
079: }
080:
081: /**
082: * Set the icon
083: * @param icon icon
084: */
085: public void setIcon(Icon icon) {
086: this .icon = icon;
087: }
088:
089: /**
090: * Set the small icon
091: * @param small small icon
092: */
093: public void setSmallIcon(String small) {
094: icon.setSmallIcon(small);
095: }
096:
097: /**
098: * get the small icon
099: * @return String small icon
100: */
101: public String setSmallIcon() {
102: return icon.getSmallIcon();
103: }
104:
105: /**
106: * Set the large icon
107: * @param large large icon
108: */
109: public void setLargeIcon(String large) {
110: icon.setLargeIcon(large);
111: }
112:
113: /**
114: * get the large icon
115: * @return String large icon
116: */
117: public String setLargeIcon() {
118: return icon.getLargeIcon();
119: }
120:
121: /**
122: * @return the description
123: */
124: public String getDescription() {
125: return description;
126: }
127:
128: /**
129: * Set the description
130: * @param description description
131: */
132: public void setDescription(String description) {
133: this.description = description;
134: }
135:
136: }
|