|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDocument
Defines methods required by documents.
Method Summary | |
---|---|
void |
addDirtyListener(PropertyChangeListener listener)
Add a PropertyChangeListener for the dirty property to the
listener list. |
void |
addFileListener(PropertyChangeListener listener)
Add a PropertyChangeListener for the file property to the
listener list. |
File |
getFile()
Return the file associated with this document. |
boolean |
isDirty()
Return the flag indicating if this document has changed since the last save. |
boolean |
isFileAssociated()
Return true if this document has an associated File . |
boolean |
isSaveable()
Return true if this document needs to be saved. |
void |
open()
Open the associated file, thereby populating this document. |
void |
removeDirtyListener(PropertyChangeListener listener)
Remove a PropertyChangeListener for the dirty property from
the listener list. |
void |
removeFileListener(PropertyChangeListener listener)
Remove a PropertyChangeListener for the file property from
the listener list. |
void |
reset()
Reset this document. |
void |
save()
Save this document to the associated file. |
void |
saveAs(File file)
Save this document to the given file. |
void |
setDirty(boolean isDirty)
Set the dirty flag. |
void |
setFile(File file)
Set the associated file. |
Method Detail |
---|
void setDirty(boolean isDirty)
boolean isDirty()
void setFile(File file)
File getFile()
boolean isFileAssociated()
File
.
boolean isSaveable()
void addDirtyListener(PropertyChangeListener listener)
PropertyChangeListener
for the dirty property to the
listener list.
listener
- The PropertyChangeListener
to be added.void addFileListener(PropertyChangeListener listener)
PropertyChangeListener
for the file property to the
listener list.
listener
- The PropertyChangeListener
to add.void open() throws FileNotFoundException, IOException, ClassNotFoundException
FileNotFoundException
IOException
ClassNotFoundException
void removeDirtyListener(PropertyChangeListener listener)
PropertyChangeListener
for the dirty property from
the listener list.
listener
- The PropertyChangeListener
to remove.void removeFileListener(PropertyChangeListener listener)
PropertyChangeListener
for the file property from
the listener list.
listener
- The PropertyChangeListener
to remove.void reset()
void save() throws FileNotFoundException, IOException
FileNotFoundException
IOException
void saveAs(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |