@Override public AbstractWidget createWidget(Controller controller) { FilesListWidget filesListWidget = new FilesListWidget(controller.getApplicationAssets().getSkin()); filesListWidget.setSelectedFile(new FileHandle(System.getProperty("user.dir")), true); return filesListWidget; }
/** * @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); }