Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / project / documents / Document.java @ 40558

History | View | Annotate | Download (3.38 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.app.project.documents;
25

    
26
import java.beans.PropertyChangeListener;
27

    
28
import org.gvsig.andami.ui.mdiManager.IWindow;
29
import org.gvsig.app.project.Project;
30
import org.gvsig.app.project.documents.gui.WindowLayout;
31
import org.gvsig.tools.persistence.Persistent;
32

    
33
public interface Document extends Persistent {
34

    
35
        /**
36
         * Obtiene el nombre del elemento
37
         *
38
         * @return
39
         */
40
        public String getName();
41

    
42
        /**
43
         * Establece el nombre del elemento
44
         *
45
         * @param string
46
         */
47
        public void setName(String string);
48

    
49
        /**
50
         * Obtiene la fecha de creaci?n del elemento
51
         *
52
         * @return
53
         */
54
        public String getCreationDate();
55

    
56
        /**
57
         * Obtiene el propietario del elemento
58
         *
59
         * @return
60
         */
61
        public String getOwner();
62

    
63
        public String getTypeName();
64
        
65
        /**
66
         * Establece la fecha de creaci?n del elemento.
67
         *
68
         * @param string
69
         */
70
        public void setCreationDate(String string);
71

    
72
        /**
73
         * Establece el propietario del elemento
74
         *
75
         * @param string
76
         */
77
        public void setOwner(String string);
78

    
79
        /**
80
         * Obtiene los comentarios del proyecto
81
         *
82
         * @return
83
         */
84
        public String getComment();
85

    
86
        /**
87
         * Establece los comentarios del proyecto
88
         *
89
         * @param string
90
         */
91
        public void setComment(String string);
92

    
93
        public Project getProject();
94

    
95
        public void setProject(Project project);
96
        
97
        /**
98
         * Locks this project element protecting it from deleting from the project.
99
         */
100
        public abstract void lock();
101

    
102
        /**
103
         * Unlocks this element. So, from now on, it can be removed from the project.
104
         */
105
        public abstract void unlock();
106

    
107
        /**
108
         * Tells whether if this project's element is locked/protected or not. A protected
109
         * element cannot be removed from the current project.
110
         *
111
         * @see <b>lock()</b> and <b>unlock()</b> methods.
112
         *
113
         * @return true if it is locked, false otherwise
114
         */
115
        public abstract boolean isLocked();
116

    
117
        public DocumentManager getFactory();
118

    
119
        public boolean isModified();
120

    
121
        public void setModified(boolean modified);
122

    
123
        /**
124
         * Register a  ProjectDocumentListener.
125
         * @param  listener  ProjectDocumentListener
126
         */
127
        public void addListener(ProjectDocumentListener listener);
128

    
129
        /**
130
         * A?ade un listener para los cambios en las bounded properties
131
         *
132
         * @param listener
133
         */
134
        public void addPropertyChangeListener(
135
                        PropertyChangeListener listener);
136

    
137
        public void afterRemove();
138

    
139
        public void afterAdd();
140

    
141
        public WindowLayout getWindowLayout();
142
        
143
        public void setWindowLayout(WindowLayout layout) ;
144
        
145
        public IWindow getPropertiesWindow();
146
        
147
        public IWindow getMainWindow();
148
        
149
        
150
}