svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / plugins / status / UnsavedData.java @ 40596
History | View | Annotate | Download (2.27 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program 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
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.andami.plugins.status; |
25 |
|
26 |
import javax.swing.ImageIcon; |
27 |
|
28 |
import org.gvsig.andami.plugins.IExtension; |
29 |
|
30 |
|
31 |
/**
|
32 |
* Abstract class implementing IUnsavedData. is a convenience
|
33 |
* class used to allow easier modifications of IUnsaveData
|
34 |
* interface.
|
35 |
*
|
36 |
* @author Cesar Martinez Izquierdo <cesar.martinez@iver.es>
|
37 |
*
|
38 |
*/
|
39 |
public abstract class UnsavedData implements IUnsavedData { |
40 |
|
41 |
/**
|
42 |
* This UnsavedData object is associated to this extension.
|
43 |
*/
|
44 |
private IExtension ext;
|
45 |
|
46 |
/**
|
47 |
* Creates a new UnsavedData object which will be associated to
|
48 |
* the provided extension.
|
49 |
*
|
50 |
* @param extension
|
51 |
*/
|
52 |
public UnsavedData(IExtension extension) {
|
53 |
ext = extension; |
54 |
} |
55 |
|
56 |
/* (non-Javadoc)
|
57 |
* @see com.iver.andami.plugins.status.IUnsavedData#getDescription()
|
58 |
*/
|
59 |
public abstract String getDescription() ; |
60 |
|
61 |
/* (non-Javadoc)
|
62 |
* @see com.iver.andami.plugins.status.IUnsavedData#getExtension()
|
63 |
*/
|
64 |
public IExtension getExtension() {
|
65 |
return ext;
|
66 |
} |
67 |
|
68 |
/* (non-Javadoc)
|
69 |
* @see com.iver.andami.plugins.status.IUnsavedData#getIcon()
|
70 |
*/
|
71 |
public String getIcon() { |
72 |
return null; |
73 |
} |
74 |
|
75 |
/* (non-Javadoc)
|
76 |
* @see com.iver.andami.plugins.status.IUnsavedData#getResourceName()
|
77 |
*/
|
78 |
public abstract String getResourceName(); |
79 |
|
80 |
/* (non-Javadoc)
|
81 |
* @see com.iver.andami.plugins.status.IUnsavedData#saveData()
|
82 |
*/
|
83 |
public abstract boolean saveData(); |
84 |
|
85 |
} |