|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This defines the interface for implementing new file formats.
Method Summary | |
void |
addProgressListener(ProgressListener pl)
|
java.lang.String |
getExtension()
Returns the default file extension for files in this format. |
javax.swing.filechooser.FileFilter |
getFileFilter()
Returns the file filter for this file format. |
java.lang.String |
getFormatName()
Returns the name of the file format. |
javax.swing.Icon |
getIcon(boolean gold,
boolean loaded,
boolean loading)
Returns an icon to be displayed with files of this type. |
boolean |
handlesFile(java.lang.String af)
Returns true if this can open the file specified by af . |
void |
removeProgressListener(ProgressListener pl)
|
void |
write(AnnotationFile af,
java.io.Writer out)
Writes the contents of the AnnotationFile to the Writer specified by out . |
Method Detail |
public void write(AnnotationFile af, java.io.Writer out) throws java.io.IOException
out
. This method should not close the Writer.
af
- the annotation file.out
- the Writer to which the file should be written.
java.io.IOException
public javax.swing.filechooser.FileFilter getFileFilter()
public java.lang.String getFormatName()
public java.lang.String getExtension()
public boolean handlesFile(java.lang.String af)
af
.
af
, false otherwise.public javax.swing.Icon getIcon(boolean gold, boolean loaded, boolean loading)
gold
- true if this is a gold file.loaded
- true if this file has been loaded.loading
- true if this file is loading.
public void addProgressListener(ProgressListener pl)
public void removeProgressListener(ProgressListener pl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |