Package org.gvsig.app.project.documents
Interface DocumentManager
- All Superinterfaces:
org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport,org.gvsig.tools.extensionpoint.ExtensionBuilder,org.gvsig.tools.observer.Observable,org.gvsig.tools.persistence.PersistenceFactory,org.gvsig.tools.observer.WeakReferencingObservable
- All Known Implementing Classes:
AbstractDocumentManager,ViewManager
public interface DocumentManager
extends org.gvsig.tools.extensionpoint.ExtensionBuilder, org.gvsig.tools.persistence.PersistenceFactory, org.gvsig.tools.observer.WeakReferencingObservable, org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreate a new ProjectDocument.Uses a gui to be able from the characteristics that we want a ProjectDocumentUses a gui to be able from the characteristics that we want a ProjectDocumentcreateDocumentsByUser(org.gvsig.tools.util.Invocable whenDocumentsLoaded) booleanReturn true if the name exists to another document.getIcon()Returns tdocumenthe icon for the type of document.Returns the icon for the type of document when is selectedgetMainComponent(Document doc) Devuelbe el JComponent que se corresponde con el documento indicado.getMainComponent(DocumentsContainer container, Document doc) Create a new JComponent for the document or if already exists in the specified container, return this.org.gvsig.andami.ui.mdiManager.IWindowgetMainWindow(Document doc) Return the main window asociated to the passed document.org.gvsig.andami.ui.mdiManager.IWindowgetMainWindow(Document doc, WindowLayout layout) Return the main window asociated to the document.Class<? extends IDocumentWindow> Return the class that implement the main window for this type of documents.intReturns the type of document priority.org.gvsig.andami.ui.mdiManager.IWindowReturn the windows properties asociated to the document.getTitle()Returns the title of type of document.Returns the type name of the document factory.booleanhasMainWindow(Document doc) voidregisterMainComponent(DocumentsContainer container, Document document, JComponent component) voidunregisterMainComponent(DocumentsContainer container, Document document) Methods inherited from interface org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport
getExtendedProperties, getProperty, setPropertyMethods inherited from interface org.gvsig.tools.extensionpoint.ExtensionBuilder
create, create, createMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObserversMethods inherited from interface org.gvsig.tools.persistence.PersistenceFactory
createFromState, getDefinition, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, manages, saveToState
-
Field Details
-
NOTIFY_AFTER_CREATEDOCUMENT
- See Also:
-
NOTIFY_AFTER_GETMAINWINDOW
- See Also:
-
NOTIFY_AFTER_CREATEMAINWINDOW
- See Also:
-
NOTIFY_AFTER_GETPROPERTIESWINDOW
- See Also:
-
NOTIFY_AFTER_CREATEPROPERTIESWINDOW
- See Also:
-
-
Method Details
-
getPriority
int getPriority()Returns the type of document priority.- Returns:
- Priority.
-
getIcon
ImageIcon getIcon()Returns tdocumenthe icon for the type of document.- Returns:
- Image.
-
getIconSelected
ImageIcon getIconSelected()Returns the icon for the type of document when is selected- Returns:
- Image.
-
createDocument
AbstractDocument createDocument()Create a new ProjectDocument.- Returns:
- ProjectDocument.
-
createDocumentByUser
AbstractDocument createDocumentByUser()Uses a gui to be able from the characteristics that we want a ProjectDocument- Returns:
- a new Document
-
createDocumentsByUser
Uses a gui to be able from the characteristics that we want a ProjectDocument- Returns:
- the created documents
-
createDocumentsByUser
-
getTitle
String getTitle()Returns the title of type of document.- Returns:
- String title for type of document
-
getTypeName
String getTypeName()Returns the type name of the document factory.- Returns:
- Name of registration
-
getMainWindow
Return the main window asociated to the passed document. If the window alreade exists return it. If not, a new window is created.- Parameters:
doc-- Returns:
- Window asociated to document
-
getMainWindow
Return the main window asociated to the document.- Parameters:
doc- , layoutlayout-- Returns:
- Window asociated to document
-
hasMainWindow
-
getMainComponent
Create a new JComponent for the document or if already exists in the specified container, return this.- Parameters:
container-doc-- Returns:
-
getMainComponent
Devuelbe el JComponent que se corresponde con el documento indicado. Si la ventana activa se corresponde con este documento, devuelbe el JComponent asociado a esa ventana. Si no se corresponde con la ventana activa, pero esta es un contenedor de documentos le pide a este el componente asociado al documento requerido y si lo encuentra lo devuelve. En otro caso develbe null.- Parameters:
doc-- Returns:
- el JComponent asociado a doc
-
unregisterMainComponent
-
registerMainComponent
-
getPropertiesWindow
Return the windows properties asociated to the document.- Parameters:
doc-- Returns:
-
existName
Return true if the name exists to another document.- Parameters:
project-documentName-- Returns:
- True if the name exists.
-
getMainWindowClass
Class<? extends IDocumentWindow> getMainWindowClass()Return the class that implement the main window for this type of documents.- Returns:
- the class of main window
-
getClassOfDocument
Class getClassOfDocument()
-