Modifier and Type | Field and Description |
---|---|
private final BibDatabaseContext | |
private final DialogService | |
private final BooleanProperty | |
private final DoubleProperty | |
private final BibEntry | |
private final de. | |
private final BooleanProperty | |
private final BooleanProperty | |
private final LinkedFile | |
private final LinkedFileHandler | |
private ObjectBinding | |
private static final Logger | |
private final GuiPreferences | |
private final TaskExecutor |
Access | Constructor and Description |
---|---|
public | LinkedFileViewModel(LinkedFile linkedFile, BibEntry entry, BibDatabaseContext databaseContext, TaskExecutor taskExecutor, DialogService dialogService, GuiPreferences preferences)
|
Modifier and Type | Method and Description |
---|---|
public void | |
public void | |
public boolean | Returns: true if the linked file has been removed afterward from the entry (i.e., because it was deleted successfully, does not exist in the first place, or the user choose to remove it)Asks the user for confirmation that he really wants to the delete the file from disk (or just remove the link) and then proceeds accordingly. |
public StringProperty | |
public void | |
public BooleanProperty | |
public DoubleProperty | |
public void | |
public de. | |
public Optional | |
public static LinkedFileViewModel | fromLinkedFile(LinkedFile linkedFile, BibEntry entry, BibDatabaseContext databaseContext, TaskExecutor taskExecutor, DialogService dialogService, GuiPreferences preferences)
|
public String | |
public String | |
public LinkedFile | |
public Observable[] | |
public String | |
public JabRefIcon | |
public boolean | |
public BooleanProperty | |
public boolean | Returns: true if the suggested filename is same as current filename.Gets the filename for the current linked file and compares it to the new suggested filename. |
public boolean | Returns: true if suggested filepath is same as existing filepath.Compares suggested directory of current linkedFile with existing filepath directory. |
public BooleanProperty | |
public StringProperty | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
private void | |
public void | |
public void | |
public void | |
public ObjectBinding |
databaseContext | back to summary |
---|---|
private final BibDatabaseContext databaseContext |
dialogService | back to summary |
---|---|
private final DialogService dialogService |
downloadOngoing | back to summary |
---|---|
private final BooleanProperty downloadOngoing |
downloadProgress | back to summary |
---|---|
private final DoubleProperty downloadProgress |
entry | back to summary |
---|---|
private final BibEntry entry |
fileExistsValidator | back to summary |
---|---|
private final de. |
isAutomaticallyFound | back to summary |
---|---|
private final BooleanProperty isAutomaticallyFound |
isOfflinePdf | back to summary |
---|---|
private final BooleanProperty isOfflinePdf |
linkedFile | back to summary |
---|---|
private final LinkedFile linkedFile |
linkedFileHandler | back to summary |
---|---|
private final LinkedFileHandler linkedFileHandler |
linkedFileIconBinding | back to summary |
---|---|
private ObjectBinding<Node> linkedFileIconBinding |
LOGGER | back to summary |
---|---|
private static final Logger LOGGER |
preferences | back to summary |
---|---|
private final GuiPreferences preferences |
taskExecutor | back to summary |
---|---|
private final TaskExecutor taskExecutor |
LinkedFileViewModel | back to summary |
---|---|
public LinkedFileViewModel(LinkedFile linkedFile, BibEntry entry, BibDatabaseContext databaseContext, TaskExecutor taskExecutor, DialogService dialogService, GuiPreferences preferences) |
acceptAsLinked | back to summary |
---|---|
public void acceptAsLinked() |
askForNameAndRename | back to summary |
---|---|
public void askForNameAndRename() |
delete | back to summary |
---|---|
public boolean delete() Asks the user for confirmation that he really wants to the delete the file from disk (or just remove the link) and then proceeds accordingly.
|
descriptionProperty | back to summary |
---|---|
public StringProperty descriptionProperty() |
download | back to summary |
---|---|
public void download(boolean keepHtmlLink) |
downloadOngoingProperty | back to summary |
---|---|
public BooleanProperty downloadOngoingProperty() |
downloadProgressProperty | back to summary |
---|---|
public DoubleProperty downloadProgressProperty() |
edit | back to summary |
---|---|
public void edit() |
fileExistsValidationStatus | back to summary |
---|---|
public de. |
findIn | back to summary |
---|---|
public Optional |
fromLinkedFile | back to summary |
---|---|
public static LinkedFileViewModel fromLinkedFile(LinkedFile linkedFile, BibEntry entry, BibDatabaseContext databaseContext, TaskExecutor taskExecutor, DialogService dialogService, GuiPreferences preferences) |
getDescription | back to summary |
---|---|
public String getDescription() |
getDescriptionAndLink | back to summary |
---|---|
public String getDescriptionAndLink() |
getFile | back to summary |
---|---|
public LinkedFile getFile() |
getObservables | back to summary |
---|---|
public Observable[] getObservables() |
getTruncatedDescriptionAndLink | back to summary |
---|---|
public String getTruncatedDescriptionAndLink() |
getTypeIcon | back to summary |
---|---|
public JabRefIcon getTypeIcon() |
isAutomaticallyFound | back to summary |
---|---|
public boolean isAutomaticallyFound() |
isAutomaticallyFoundProperty | back to summary |
---|---|
public BooleanProperty isAutomaticallyFoundProperty() |
isGeneratedNameSameAsOriginal | back to summary |
---|---|
public boolean isGeneratedNameSameAsOriginal() Gets the filename for the current linked file and compares it to the new suggested filename.
|
isGeneratedPathSameAsOriginal | back to summary |
---|---|
public boolean isGeneratedPathSameAsOriginal() Compares suggested directory of current linkedFile with existing filepath directory.
|
isOfflinePdfProperty | back to summary |
---|---|
public BooleanProperty isOfflinePdfProperty() |
linkProperty | back to summary |
---|---|
public StringProperty linkProperty() |
markAsAutomaticallyFound | back to summary |
---|---|
public void markAsAutomaticallyFound() |
moveToDefaultDirectory | back to summary |
---|---|
public void moveToDefaultDirectory() |
moveToDefaultDirectoryAndRename | back to summary |
---|---|
public void moveToDefaultDirectoryAndRename() |
open | back to summary |
---|---|
public void open() |
openFolder | back to summary |
---|---|
public void openFolder() |
parsePdfMetadataAndShowMergeDialog | back to summary |
---|---|
public void parsePdfMetadataAndShowMergeDialog() |
performRenameWithConflictCheck | back to summary |
---|---|
private void performRenameWithConflictCheck(String targetFileName) |
redownload | back to summary |
---|---|
public void redownload()
Implementation Note Similar method |
renameFileToName | back to summary |
---|---|
public void renameFileToName(String targetFileName) |
renameToSuggestion | back to summary |
---|---|
public void renameToSuggestion() |
typeIconProperty | back to summary |
---|---|
public ObjectBinding |