|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.gui.AbstractDocument
diva.gui.MultipageDocument
A document that contains a linear sequence of Pages. This class is useful for documents which their data into logical pages. Generally this class is most useful for partitioned documents where all the partitions are stored together. For partitions that are stored separately, it is probably easiest to just use separate documents. Note that a page can contain any kind of data, and the interpretation and graphical representation of a list of page is up to the concrete document class and the corresponding application. Other than containing a sequence of pages, this class is used the same as AbstractDocument and provides the same abstract methods.
| Constructor Summary | |
MultipageDocument(java.lang.String title,
Application a,
ModelParser parser,
ModelWriter writer)
Construct a multipage document that is owned by the given application |
|
| Method Summary | |
void |
close()
Close the document. |
MultipageModel |
getMultipageModel()
Return the model associated with this document. |
java.lang.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(java.io.File file)
Save the document to the given file. |
void |
saveAs(java.net.URL url)
Throw an exception, as save to URLs is not supported. |
| Methods inherited from class diva.gui.AbstractDocument |
addPropertyChangeListener, getApplication, getEditSupport, getFile, getShortTitle, getUndoManager, getURL, isDirty, isEditable, isWritable, removePropertyChangeListener, setDirty, setEditable, setFile, setURL, setWritable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultipageDocument(java.lang.String title,
Application a,
ModelParser parser,
ModelWriter writer)
| Method Detail |
public void close()
throws java.lang.Exception
close in interface Documentclose in class AbstractDocumentjava.lang.Exception - If the close operation fails.public java.lang.String getTitle()
getTitle in interface DocumentgetTitle in class AbstractDocumentpublic MultipageModel getMultipageModel()
public void open()
throws java.lang.Exception
open in interface Documentopen in class AbstractDocumentjava.lang.Exception - If there is no file, or if the I/O operation failed.
public void save()
throws java.lang.Exception
save in interface Documentsave in class AbstractDocumentjava.lang.Exception - If there is no file, or if the I/O operation failed.
public void saveAs(java.io.File file)
throws java.lang.Exception
saveAs in interface DocumentsaveAs in class AbstractDocumentjava.lang.Exception - If the I/O operation failed.AbstractDocument.save()public void saveAs(java.net.URL url)
saveAs in interface DocumentsaveAs in class AbstractDocumentjava.lang.Exception - AlwaysAbstractDocument.save()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||