public class DroppedFileHandler
extends java.lang.Object
Constructor and Description |
---|
DroppedFileHandler(JabRefFrame frame,
BasePanel panel) |
Modifier and Type | Method and Description |
---|---|
void |
handleDroppedfile(java.lang.String fileName,
ExternalFileType fileType,
boolean localFile,
BibtexEntry entry) |
void |
handleDroppedfile(java.lang.String fileName,
ExternalFileType fileType,
boolean localFile,
MainTable mainTable,
int dropRow)
Offer copy/move/linking options for a dragged external file.
|
void |
importXmp(java.util.List<BibtexEntry> xmpEntriesInFile,
java.lang.String fileName) |
void |
linkPdfToEntry(java.lang.String fileName,
MainTable entryTable,
BibtexEntry entry) |
void |
linkPdfToEntry(java.lang.String fileName,
MainTable entryTable,
int dropRow) |
int |
showLinkMoveCopyRenameDialog(java.lang.String linkFileName,
ExternalFileType fileType,
BibtexEntry entry,
boolean newEntry,
boolean multipleEntries,
BibtexDatabase database) |
public DroppedFileHandler(JabRefFrame frame, BasePanel panel)
public void handleDroppedfile(java.lang.String fileName, ExternalFileType fileType, boolean localFile, MainTable mainTable, int dropRow)
fileName
- The name of the dragged file.fileType
- The FileType associated with the file.localFile
- Indicate whether this is a local file, or a remote file copied
to a local temporary file.mainTable
- The MainTable the file was dragged to.dropRow
- The row where the file was dropped.public void handleDroppedfile(java.lang.String fileName, ExternalFileType fileType, boolean localFile, BibtexEntry entry)
fileName
- The name of the dragged file.fileType
- The FileType associated with the file.localFile
- Indicate whether this is a local file, or a remote file copied
to a local temporary file.entry
- The target entry for the drop.public void linkPdfToEntry(java.lang.String fileName, MainTable entryTable, int dropRow)
public void linkPdfToEntry(java.lang.String fileName, MainTable entryTable, BibtexEntry entry)
public void importXmp(java.util.List<BibtexEntry> xmpEntriesInFile, java.lang.String fileName)
public int showLinkMoveCopyRenameDialog(java.lang.String linkFileName, ExternalFileType fileType, BibtexEntry entry, boolean newEntry, boolean multipleEntries, BibtexDatabase database)