public abstract class MultipageDocument extends AbstractDocument
| Constructor and Description |
|---|
MultipageDocument(String title,
Application a,
ModelParser parser,
ModelWriter writer)
Construct a multipage document that is owned by the given application
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the document.
|
MultipageModel |
getMultipageModel()
Return the model associated with this document.
|
String |
getTitle()
Return the title of this documen
|
void |
open()
Open the document from its current file.
|
void |
save()
Save the document to the current file.
|
void |
saveAs(File file)
Save the document to the given file.
|
void |
saveAs(URL url)
Throw an exception, as save to URLs is not supported.
|
addPropertyChangeListener, getApplication, getEditSupport, getFile, getShortTitle, getUndoManager, getURL, isDirty, isEditable, isWritable, removePropertyChangeListener, setDirty, setEditable, setFile, setURL, setWritablepublic MultipageDocument(String title, Application a, ModelParser parser, ModelWriter writer)
public void close()
throws Exception
close in interface Documentclose in class AbstractDocumentException - If the close operation fails.public String getTitle()
getTitle in interface DocumentgetTitle in class AbstractDocumentpublic MultipageModel getMultipageModel()
public void open()
throws Exception
open in interface Documentopen in class AbstractDocumentException - If there is no file, or if the I/O operation failed.public void save()
throws Exception
save in interface Documentsave in class AbstractDocumentException - If there is no file, or if the I/O operation failed.public void saveAs(File file) throws Exception
saveAs in interface DocumentsaveAs in class AbstractDocumentException - If the I/O operation failed.AbstractDocument.save()public void saveAs(URL url)
saveAs in interface DocumentsaveAs in class AbstractDocumentException - AlwaysAbstractDocument.save()Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.