root / trunk / frameworks / _fwAndami / src / com / iver / andami / iconthemes / IconThemeInfo.java @ 11002
History | View | Annotate | Download (2.96 KB)
1 | 11002 | cesar | /* 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 | import java.io.File; |
||
45 | |||
46 | /**
|
||
47 | * Contains information about a theme. It includes the name,
|
||
48 | *
|
||
49 | * @author Cesar Martinez Izquierdo <cesar.martinez@iver.es>
|
||
50 | *
|
||
51 | */
|
||
52 | public class IconThemeInfo { |
||
53 | protected String name; |
||
54 | protected String description; |
||
55 | protected String version="1.0"; |
||
56 | protected File resource; |
||
57 | |||
58 | /**
|
||
59 | * Gets the theme name.
|
||
60 | *
|
||
61 | * @return The name of this theme.
|
||
62 | */
|
||
63 | public String getName() { |
||
64 | return name;
|
||
65 | } |
||
66 | |||
67 | /**
|
||
68 | * Sets the theme name.
|
||
69 | *
|
||
70 | * @param themeName
|
||
71 | */
|
||
72 | public void setName(String themeName) { |
||
73 | name = themeName; |
||
74 | } |
||
75 | |||
76 | /**
|
||
77 | * Gets the theme description.
|
||
78 | *
|
||
79 | * @return The description of this theme.
|
||
80 | */
|
||
81 | public String getDescription() { |
||
82 | return description;
|
||
83 | } |
||
84 | |||
85 | /**
|
||
86 | * Sets the theme description. It should be a short description
|
||
87 | * (around 20-30 words), including the highlights of the theme,
|
||
88 | * the author and maybe its email address or a link the the theme's
|
||
89 | * homepage.
|
||
90 | *
|
||
91 | * @param description
|
||
92 | */
|
||
93 | public void setDescription(String description) { |
||
94 | this.description = description;
|
||
95 | } |
||
96 | |||
97 | /**
|
||
98 | * Returns the theme version. It defaults to "1.0".
|
||
99 | *
|
||
100 | * @return The version of this theme.
|
||
101 | */
|
||
102 | public String getVersion() { |
||
103 | return version;
|
||
104 | } |
||
105 | |||
106 | /**
|
||
107 | * Set the theme version.
|
||
108 | *
|
||
109 | * @param version
|
||
110 | */
|
||
111 | public void setVersion(String version) { |
||
112 | this.version = version;
|
||
113 | } |
||
114 | |||
115 | /**
|
||
116 | * Gets the file which contains physically contains this theme on disk.
|
||
117 | * It may be a zipfile or jarfile, or a directory.
|
||
118 | *
|
||
119 | * @return
|
||
120 | */
|
||
121 | public File getResource() { |
||
122 | return resource;
|
||
123 | } |
||
124 | |||
125 | /**
|
||
126 | * Sets the file which contains physically contains this theme on disk.
|
||
127 | * It may be a zipfile or jarfile, or a directory.
|
||
128 | *
|
||
129 | * @return
|
||
130 | */
|
||
131 | public void setResource(File resource) { |
||
132 | this.resource = resource;
|
||
133 | } |
||
134 | } |