|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The FileChooserCallback is triggered each time a File instance
is required either to save or to load a file. Its getFile(int mode)
method gets called and a mode identifier is passed, to describe what exactly
is required to return as implementor. This mode identifier lets you decide whether
to offer a FileSave- or a FileOpenDialog (if user interaction is required). The
result will be the same: An instance of File should be returned.
| Field Summary | |
static int |
FCC_MODE_LOAD
The identifer to use when specifying the mode of the FileChooser. |
static int |
FCC_MODE_SAVE
The identifer to use when specifying the mode of the FileChooser. |
| Method Summary | |
java.io.File |
getFile(java.io.FileFilter filter,
int mode)
This method gets called each time the user of this callback requires a valid file instance, either to store or to load from. |
| Field Detail |
public static final int FCC_MODE_LOAD
public static final int FCC_MODE_SAVE
| Method Detail |
public java.io.File getFile(java.io.FileFilter filter,
int mode)
null to indicate an operator initiated termination.
filter - a FileFilter to use.mode - the mode in which this method is called. Either to return a
File to load or a location to save to.
null
indicates, that the user (or system) has cancelled the process.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||