public class DroppedFileHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DFH_COPY |
static java.lang.String |
DFH_LEAVE |
static java.lang.String |
DFH_MOVE |
static java.lang.String |
DFH_RENAME |
| 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) |
boolean |
showLinkMoveCopyRenameDialog(java.lang.String linkFileName,
ExternalFileType fileType,
BibtexEntry entry,
boolean newEntry,
boolean multipleEntries,
BibtexDatabase database) |
public static final java.lang.String DFH_LEAVE
public static final java.lang.String DFH_COPY
public static final java.lang.String DFH_MOVE
public static final java.lang.String DFH_RENAME
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 boolean showLinkMoveCopyRenameDialog(java.lang.String linkFileName,
ExternalFileType fileType,
BibtexEntry entry,
boolean newEntry,
boolean multipleEntries,
BibtexDatabase database)