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, setWritable
public MultipageDocument(String title, Application a, ModelParser parser, ModelWriter writer)
public void close() throws Exception
close
in interface Document
close
in class AbstractDocument
Exception
- If the close operation fails.public String getTitle()
getTitle
in interface Document
getTitle
in class AbstractDocument
public MultipageModel getMultipageModel()
public void open() throws Exception
open
in interface Document
open
in class AbstractDocument
Exception
- If there is no file, or if the I/O operation failed.public void save() throws Exception
save
in interface Document
save
in class AbstractDocument
Exception
- If there is no file, or if the I/O operation failed.public void saveAs(File file) throws Exception
saveAs
in interface Document
saveAs
in class AbstractDocument
Exception
- If the I/O operation failed.AbstractDocument.save()
public void saveAs(URL url)
saveAs
in interface Document
saveAs
in class AbstractDocument
Exception
- AlwaysAbstractDocument.save()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.