sub_arctic.contrib
Interface FileDialogFrameCallback


public abstract interface FileDialogFrameCallback


Method Summary
 boolean fileFound(FileDialogFrame frame, java.io.File file)
          Called when user loads a file using the file dialog.
 

Method Detail

fileFound

public boolean fileFound(FileDialogFrame frame,
                         java.io.File file)
Called when user loads a file using the file dialog. Should return true if the file is ok, in which case the dialog will hide itself. Should return false if the file is not ok, in which case the dialog will stay up. Note that a java.io.File object doesn't imply that a file actually exists - it can represent the file name of a non existent file. Giving a file object rather than a string makes it easy to check if the file exists, find out its type etc.