Package diva.gui
Interface DocumentFactory
-
- All Known Implementing Classes:
TextDocument.Factory
public interface DocumentFactoryDocumentFactory 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentcreateDocument(Application app)Create a new empty document.DocumentcreateDocument(Application app, java.io.File file)Create a new document based on the given file path.DocumentcreateDocument(Application app, java.net.URL url)Create a new document based on the given URL.
-
-
-
Method Detail
-
createDocument
Document createDocument(Application app)
Create a new empty document.
-
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.
-
-