Package diva.gui

Interface DocumentFactory

  • All Known Implementing Classes:
    TextDocument.Factory

    public interface DocumentFactory
    DocumentFactory is an factory interface that creates Document objects. It is used by the Open action to create a new document in response to user selection of a file or URL.
    Version:
    $Id$
    Author:
    John Reekie
    • Method Detail

      • createDocument

        Document createDocument​(Application app,
                                java.net.URL url)
        Create a new document based on the given URL. Typically, this method will parse the contents of the URL and create a Document object containing the parsed form of those contents.
      • createDocument

        Document createDocument​(Application app,
                                java.io.File file)
        Create a new document based on the given file path. Typically, this method will parse the contents of the file and create a Document object containing the parsed form of those contents.