|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Persistence
Interface for Bean Sheet document persistance.
Method Summary | |
---|---|
java.io.File |
autocorrectFile(java.io.File file)
Attempts to find a file based on the provided file if the implementation does not accept the file as it's passed in. |
javax.swing.filechooser.FileFilter |
getFileFilter()
|
boolean |
isLoadCapable()
|
boolean |
load(javax.swing.JTable table,
java.io.File file)
Loads a document into the model behind the table. |
boolean |
save(javax.swing.JTable table,
java.io.File file)
Persists the document from the model behind the table. |
Method Detail |
---|
boolean isLoadCapable()
true
if the implementation can load a document as well as persist itjavax.swing.filechooser.FileFilter getFileFilter()
boolean load(javax.swing.JTable table, java.io.File file) throws java.io.IOException, java.lang.UnsupportedOperationException
true
if the document was loaded successfully
java.lang.UnsupportedOperationException
- if the implementation is not capable of loading
documents as per isLoadCapable()
method
java.io.IOException
- if an IO problem occurred during loading the documentisLoadCapable()
boolean save(javax.swing.JTable table, java.io.File file) throws java.io.IOException
true
if the document was persisted successfully
java.io.IOException
- if an IO problem occurred during persisting the documentjava.io.File autocorrectFile(java.io.File file)
getFileFilter().accept(file)
.
getFileFilter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |