@Override public AbstractWidget createWidget(Controller controller) { FilesListWidget filesListWidget = new FilesListWidget(controller.getApplicationAssets().getSkin()); filesListWidget.setSelectedFile(new FileHandle(System.getProperty("user.dir")), true); return filesListWidget; }
/** @return the current selected filed */ public FileHandle getSelectedFile() { return files.getSelectedFile(); }
/** * @param fileHandle the file selected in the file chooser. This updates the content of the widget */ public void setSelectedFile(FileHandle fileHandle) { files.setSelectedFile(fileHandle, true); }