mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-14 07:04:50 -04:00
Drag-n-drop support
This commit is contained in:
parent
00db6984d9
commit
4cfd651667
5 changed files with 71 additions and 6 deletions
|
@ -124,12 +124,27 @@ public class NSTableViewController implements Initializable {
|
|||
rowsObsLst.get(0).setMarkForUpload(true);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Return all files no matter how they're marked
|
||||
* */
|
||||
public List<File> getFiles(){
|
||||
List<File> files = new ArrayList<>();
|
||||
if (rowsObsLst.isEmpty())
|
||||
return null;
|
||||
else
|
||||
for (NSLRowModel model: rowsObsLst)
|
||||
files.add(model.getNspFile());
|
||||
if (!files.isEmpty())
|
||||
return files;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Return files ready for upload. Requested from NSLMainController only -> uploadBtnAction() //TODO: set undefined
|
||||
* @return null if no files marked for upload
|
||||
* List<File> if there are files
|
||||
* */
|
||||
public List<File> getFiles(){
|
||||
public List<File> getFilesForUpload(){
|
||||
List<File> files = new ArrayList<>();
|
||||
if (rowsObsLst.isEmpty())
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue