Statistics
| Revision:

root / trunk / frameworks / _fwAndami / src / com / iver / andami / iconthemes / IconThemeInfo.java @ 11064

History | View | Annotate | Download (2.96 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41

    
42
package com.iver.andami.iconthemes;
43

    
44

    
45
/**
46
 * Contains information about a theme. It includes the name,  
47
 * 
48
 * @author Cesar Martinez Izquierdo <cesar.martinez@iver.es>
49
 *
50
 */
51
public class IconThemeInfo {
52
        private String name=null;
53
        private String description=null;
54
        private String version="1.0";
55
        private Object resource=null;
56
        
57
        /**
58
         * Gets the theme name.
59
         * 
60
         * @return The name of this theme.
61
         */
62
        public String getName() {
63
                return name;
64
        }
65
        
66
        /**
67
         * Sets the theme name.
68
         * 
69
         * @param themeName
70
         */
71
        public void setName(String themeName) {
72
                name = themeName;
73
        }
74
        
75
        /**
76
         * Gets the theme description.
77
         * 
78
         * @return The description of this theme.
79
         */
80
        public String getDescription() {
81
                return description;
82
        }
83
        
84
        /**
85
         * Sets the theme description. It should be a short description
86
         * (around 20-30 words), including the highlights of the theme,
87
         * the author and maybe its email address or a link the the theme's
88
         * homepage. 
89
         * 
90
         * @param description
91
         */
92
        public void setDescription(String description) {
93
                this.description = description;
94
        }
95
        
96
        /**
97
         * Returns the theme version. It defaults to "1.0".
98
         * 
99
         * @return The version of this theme.
100
         */
101
        public String getVersion() {
102
                return version;
103
        }
104

    
105
        /**
106
         * Set the theme version. 
107
         * 
108
         * @param version
109
         */
110
        public void setVersion(String version) {
111
                this.version = version;
112
        }
113
        
114
        /**
115
         * Gets the Object which contains physically contains this theme on disk.
116
         * It may be a ZipFile or JarFile, or a directory.
117
         * 
118
         * @return
119
         */
120
        public Object getResource() {
121
                return resource;
122
        }
123
        
124
        /**
125
         * Sets the file which contains physically contains this theme on disk.
126
         * It may be a ZipFile or JarFile, or a directory.
127
         * 
128
         * @return
129
         */
130
        public void setResource(Object resource) {
131
                this.resource = resource;
132
        }
133
}