Package org.gvsig.app.project.documents
Interface Document
- All Superinterfaces:
org.gvsig.tools.util.Contains,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.util.PropertiesSupport
- All Known Subinterfaces:
ViewDocument
- All Known Implementing Classes:
AbstractDocument,BaseViewDocument,DefaultViewDocument
public interface Document
extends org.gvsig.tools.persistence.Persistent, org.gvsig.tools.util.Contains, org.gvsig.tools.util.PropertiesSupport
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ProjectDocumentListener listener) Register a ProjectDocumentListener.voidAñade un listener para los cambios en las bounded propertiesvoidafterAdd()voidObtiene los comentarios del proyectoObtiene la fecha de creación del elementoReturn the main JComponent associated to this document.org.gvsig.andami.ui.mdiManager.IWindowReturn the main window associated to this document.getName()Obtiene el nombre del elementobooleangetOwner()Obtiene el propietario del elementoorg.gvsig.andami.ui.mdiManager.IWindowbooleanbooleanisLocked()Tells whether if this project's element is locked/protected or not.booleanbooleanvoidlock()Locks this project element protecting it from deleting from the project.voidrefresh()voidsetComment(String string) Establece los comentarios del proyectovoidsetCreationDate(String string) Establece la fecha de creación del elemento.voidsetModified(boolean modified) voidEstablece el nombre del elementovoidEstablece el propietario del elementovoidsetProject(Project project) voidsetWindowLayout(WindowLayout layout) voidunlock()Unlocks this element.Methods inherited from interface org.gvsig.tools.util.Contains
containsMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToStateMethods inherited from interface org.gvsig.tools.util.PropertiesSupport
getProperties, getProperty, setProperty
-
Field Details
-
ACCESS_DOCUMENT_AUTHORIZATION
- See Also:
-
-
Method Details
-
getName
String getName()Obtiene el nombre del elemento- Returns:
-
setName
Establece el nombre del elemento- Parameters:
string-
-
getCreationDate
String getCreationDate()Obtiene la fecha de creación del elemento- Returns:
-
getOwner
String getOwner()Obtiene el propietario del elemento- Returns:
-
getTypeName
String getTypeName() -
setCreationDate
Establece la fecha de creación del elemento.- Parameters:
string-
-
setOwner
Establece el propietario del elemento- Parameters:
string-
-
getComment
String getComment()Obtiene los comentarios del proyecto- Returns:
-
setComment
Establece los comentarios del proyecto- Parameters:
string-
-
getProject
Project getProject() -
setProject
-
lock
void lock()Locks this project element protecting it from deleting from the project. -
unlock
void unlock()Unlocks this element. So, from now on, it can be removed from the project. -
isLocked
boolean isLocked()Tells whether if this project's element is locked/protected or not. A protected element cannot be removed from the current project.- Returns:
- true if it is locked, false otherwise
- See Also:
-
getFactory
DocumentManager getFactory() -
isModified
boolean isModified() -
setModified
void setModified(boolean modified) -
addListener
Register a ProjectDocumentListener.- Parameters:
listener- ProjectDocumentListener
-
addPropertyChangeListener
Añade un listener para los cambios en las bounded properties- Parameters:
listener-
-
afterRemove
void afterRemove() -
afterAdd
void afterAdd() -
getWindowLayout
WindowLayout getWindowLayout() -
setWindowLayout
-
getPropertiesWindow
org.gvsig.andami.ui.mdiManager.IWindow getPropertiesWindow() -
getMainWindow
org.gvsig.andami.ui.mdiManager.IWindow getMainWindow()Return the main window associated to this document. Is a tutility method, is equivalent to:this.getFactory().getMainWindow(doc)- Returns:
- the IWindow associated to this document
-
getMainComponent
JComponent getMainComponent()Return the main JComponent associated to this document. Is a tutility method, is equivalent to:this.getFactory().getMainComponent(doc)- Returns:
- the JComponent associated to this document
-
isTemporary
boolean isTemporary() -
isAvailable
boolean isAvailable() -
getOpenWhenTheUserCreates
boolean getOpenWhenTheUserCreates() -
refresh
void refresh()
-