|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileHandler
The FileHandler interface provides methods for loading and saving to a file.
The purpose is to allow different file handling methods to be used.
| Method Summary | |
|---|---|
org.w3c.dom.Document |
open(java.awt.Component parent)
Open a file and read its data. |
void |
reset()
Reset the last saved file information. |
boolean |
save(java.awt.Component parent,
org.w3c.dom.Document data,
boolean saveAs)
Save data to a file. |
| Method Detail |
|---|
void reset()
org.w3c.dom.Document open(java.awt.Component parent)
throws FileHandlerException
parent - The parent Component for dialogs and prompts.
Document containing the file data.
FileHandlerException - If there was a problem opening the file.
boolean save(java.awt.Component parent,
org.w3c.dom.Document data,
boolean saveAs)
throws FileHandlerException
parent - The parent Component for dialogs and prompts.data - A Document containing the file data.saveAs - Set true to use the "save as" mode.
true if the file was saved successfully.
FileHandlerException - If there was a problem saving the file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||