public static class TextDocument.Factory extends java.lang.Object implements DocumentFactory
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
Document |
createDocument(Application app)
Create an empty document.
|
Document |
createDocument(Application app,
java.io.File file)
Create a new document that contains data from the given file.
|
Document |
createDocument(Application app,
java.net.URL url)
Create a new document that contains data from the given URL.
|
public Document createDocument(Application app)
createDocument
in interface DocumentFactory
public Document createDocument(Application app, java.net.URL url)
createDocument
in interface DocumentFactory
public Document createDocument(Application app, java.io.File file)
createDocument
in interface DocumentFactory