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