KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_lib > deployment > xml > AbsDescriptionElement


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or 1any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer: Florent BENOIT
22  * --------------------------------------------------------------------------
23  * $Id: AbsDescriptionElement.java,v 1.3 2004/05/10 12:04:39 sauthieg Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas_lib.deployment.xml;
28
29 /**
30  * This class defines an abstract implementation for all statndard environment element
31  * (entity, session, web-app, application-client, etc.)..
32  *
33  * @author Florent Benoit
34  */

35 public abstract class AbsDescriptionElement extends AbsElement implements DescriptionGroupXml {
36
37     /**
38      * icon
39      */

40     private Icon icon = null;
41
42     /**
43      * description
44      */

45     private String JavaDoc description = null;
46
47     /**
48      * Display name
49      */

50     private String JavaDoc displayName = null;
51
52     /**
53      * Construct an empty AbsDescriptionElement.
54      */

55     public AbsDescriptionElement() {
56         super();
57         icon = new Icon();
58     }
59
60     /**
61      * @return the display-name element
62      */

63     public String JavaDoc getDisplayName() {
64         return displayName;
65     }
66
67
68     /**
69      * Set the display-name
70      * @param displayname displayname
71      */

72     public void setDisplayName(String JavaDoc displayname) {
73         displayName = displayname;
74     }
75     /**
76      * @return the icon
77      */

78     public Icon getIcon() {
79         return icon;
80     }
81
82
83     /**
84      * Set the icon
85      * @param icon icon
86      */

87     public void setIcon(Icon icon) {
88         this.icon = icon;
89     }
90
91
92     /**
93      * Set the small icon
94      * @param small small icon
95      */

96     public void setSmallIcon(String JavaDoc small) {
97         icon.setSmallIcon(small);
98     }
99
100     /**
101      * get the small icon
102      * @return String small icon
103      */

104     public String JavaDoc setSmallIcon() {
105         return icon.getSmallIcon();
106     }
107     /**
108      * Set the large icon
109      * @param large large icon
110      */

111     public void setLargeIcon(String JavaDoc large) {
112         icon.setLargeIcon(large);
113     }
114       /**
115      * get the large icon
116      * @return String large icon
117      */

118     public String JavaDoc setLargeIcon() {
119         return icon.getLargeIcon();
120     }
121
122     /**
123      * @return the description
124      */

125     public String JavaDoc getDescription() {
126         return description;
127     }
128
129     /**
130      * Set the description
131      * @param description description
132      */

133     public void setDescription(String JavaDoc description) {
134         this.description = description;
135     }
136
137 }
138
Popular Tags