Beispiel #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;
 }
Beispiel #2
0
 /** @return the current selected filed */
 public FileHandle getSelectedFile() {
   return files.getSelectedFile();
 }
Beispiel #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);
 }