root / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / project / documents / Document.java @ 38607
History | View | Annotate | Download (2.44 KB)
1 |
package org.gvsig.app.project.documents; |
---|---|
2 |
|
3 |
import java.beans.PropertyChangeListener; |
4 |
|
5 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
6 |
import org.gvsig.app.project.Project; |
7 |
import org.gvsig.app.project.documents.gui.WindowLayout; |
8 |
import org.gvsig.tools.persistence.Persistent; |
9 |
|
10 |
public interface Document extends Persistent { |
11 |
|
12 |
/**
|
13 |
* Obtiene el nombre del elemento
|
14 |
*
|
15 |
* @return
|
16 |
*/
|
17 |
public String getName(); |
18 |
|
19 |
/**
|
20 |
* Establece el nombre del elemento
|
21 |
*
|
22 |
* @param string
|
23 |
*/
|
24 |
public void setName(String string); |
25 |
|
26 |
/**
|
27 |
* Obtiene la fecha de creaci?n del elemento
|
28 |
*
|
29 |
* @return
|
30 |
*/
|
31 |
public String getCreationDate(); |
32 |
|
33 |
/**
|
34 |
* Obtiene el propietario del elemento
|
35 |
*
|
36 |
* @return
|
37 |
*/
|
38 |
public String getOwner(); |
39 |
|
40 |
public String getTypeName(); |
41 |
|
42 |
/**
|
43 |
* Establece la fecha de creaci?n del elemento.
|
44 |
*
|
45 |
* @param string
|
46 |
*/
|
47 |
public void setCreationDate(String string); |
48 |
|
49 |
/**
|
50 |
* Establece el propietario del elemento
|
51 |
*
|
52 |
* @param string
|
53 |
*/
|
54 |
public void setOwner(String string); |
55 |
|
56 |
/**
|
57 |
* Obtiene los comentarios del proyecto
|
58 |
*
|
59 |
* @return
|
60 |
*/
|
61 |
public String getComment(); |
62 |
|
63 |
/**
|
64 |
* Establece los comentarios del proyecto
|
65 |
*
|
66 |
* @param string
|
67 |
*/
|
68 |
public void setComment(String string); |
69 |
|
70 |
public Project getProject();
|
71 |
|
72 |
public void setProject(Project project); |
73 |
|
74 |
/**
|
75 |
* Locks this project element protecting it from deleting from the project.
|
76 |
*/
|
77 |
public abstract void lock(); |
78 |
|
79 |
/**
|
80 |
* Unlocks this element. So, from now on, it can be removed from the project.
|
81 |
*/
|
82 |
public abstract void unlock(); |
83 |
|
84 |
/**
|
85 |
* Tells whether if this project's element is locked/protected or not. A protected
|
86 |
* element cannot be removed from the current project.
|
87 |
*
|
88 |
* @see <b>lock()</b> and <b>unlock()</b> methods.
|
89 |
*
|
90 |
* @return true if it is locked, false otherwise
|
91 |
*/
|
92 |
public abstract boolean isLocked(); |
93 |
|
94 |
public DocumentManager getFactory();
|
95 |
|
96 |
public boolean isModified(); |
97 |
|
98 |
public void setModified(boolean modified); |
99 |
|
100 |
/**
|
101 |
* Register a ProjectDocumentListener.
|
102 |
* @param listener ProjectDocumentListener
|
103 |
*/
|
104 |
public void addListener(ProjectDocumentListener listener); |
105 |
|
106 |
/**
|
107 |
* A?ade un listener para los cambios en las bounded properties
|
108 |
*
|
109 |
* @param listener
|
110 |
*/
|
111 |
public void addPropertyChangeListener( |
112 |
PropertyChangeListener listener);
|
113 |
|
114 |
public void afterRemove(); |
115 |
|
116 |
public void afterAdd(); |
117 |
|
118 |
public WindowLayout getWindowLayout();
|
119 |
|
120 |
public void setWindowLayout(WindowLayout layout) ; |
121 |
|
122 |
public IWindow getPropertiesWindow();
|
123 |
|
124 |
public IWindow getMainWindow();
|
125 |
|
126 |
|
127 |
} |