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 Details

  • 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

      Iterator<? extends Document> createDocumentsByUser()
      Uses a gui to be able from the characteristics that we want a ProjectDocument
      Returns:
      the created documents
    • createDocumentsByUser

      Iterator<? extends Document> createDocumentsByUser(org.gvsig.tools.util.Invocable whenDocumentsLoaded)
    • 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

      org.gvsig.andami.ui.mdiManager.IWindow getMainWindow(Document doc)
      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

      org.gvsig.andami.ui.mdiManager.IWindow getMainWindow(Document doc, WindowLayout layout)
      Return the main window asociated to the document.
      Parameters:
      doc - , layout
      layout -
      Returns:
      Window asociated to document
    • hasMainWindow

      boolean hasMainWindow(Document doc)
    • getMainComponent

      JComponent getMainComponent(DocumentsContainer container, Document doc)
      Create a new JComponent for the document or if already exists in the specified container, return this.
      Parameters:
      container -
      doc -
      Returns:
    • getMainComponent

      JComponent getMainComponent(Document doc)
      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

      void unregisterMainComponent(DocumentsContainer container, Document document)
    • registerMainComponent

      void registerMainComponent(DocumentsContainer container, Document document, JComponent component)
    • getPropertiesWindow

      org.gvsig.andami.ui.mdiManager.IWindow getPropertiesWindow(Document doc)
      Return the windows properties asociated to the document.
      Parameters:
      doc -
      Returns:
    • existName

      boolean existName(Project project, String documentName)
      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()