com.nutiteq.helpers
Interface FileBrowserListener


public interface FileBrowserListener

This interface defines a listener that gets called by the file browser.

Version:
1.0
Author:
CristiS

Method Summary
 void browsingCancelled()
          Inform that the browsing was cancelled.
 boolean directoryListed(java.lang.String currentDir, java.util.Vector files)
          Called when a directory is listed.
 boolean fileSelected(java.lang.String currentDir, java.lang.String filename)
          Called when a file is clicked.
 

Method Detail

fileSelected

boolean fileSelected(java.lang.String currentDir,
                     java.lang.String filename)
Called when a file is clicked.

Parameters:
currentDir - current directory
filename - file (or directory) clicked
Returns:
true to stop browsing (and return the complete path of filename), false to continue

directoryListed

boolean directoryListed(java.lang.String currentDir,
                        java.util.Vector files)
Called when a directory is listed.

Parameters:
currentDir - current directory
files - list of files in the directory
Returns:
true to stop browsing (and return currentDir), false to continue

browsingCancelled

void browsingCancelled()
Inform that the browsing was cancelled.