Example #1
0
 @Override
 public AbstractWidget createWidget(Controller controller) {
   FilesListWidget filesListWidget =
       new FilesListWidget(controller.getApplicationAssets().getSkin());
   filesListWidget.setSelectedFile(new FileHandle(System.getProperty("user.dir")), true);
   return filesListWidget;
 }
Example #2
0
 /** @return the current selected filed */
 public FileHandle getSelectedFile() {
   return files.getSelectedFile();
 }
Example #3
0
 /**
  * @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);
 }