Serializable which is needed for drag and drop in gui
| Modifier and Type | Field and Description |
|---|---|
| private transient StringProperty | |
| private transient StringProperty | |
| private transient StringProperty | |
| private static final LinkedFile | |
| private static final String | |
| private transient StringProperty | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | LinkedFile(String description, String link, String fileType, String sourceUrl)
Constructor can also be used for non-valid paths. |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public StringProperty | |
| public boolean | equals(@Nullable Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public StringProperty | |
| public Optional | |
| public Optional | |
| public String | |
| public String | |
| public String | |
| public Observable[] | |
| public String | |
| public int | |
| public boolean | |
| public static boolean | Returns: true, if it starts with "http://", "https://" or contains "www."; false otherwiseThe String to check toCheck)Checks if the given String is an online link |
| public boolean | |
| public StringProperty | |
| private void | readObject(ObjectInputStream in)
Reads serialized object from |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public StringProperty | |
| public LinkedFileViewModel | toModel(BibEntry entry, BibDatabaseContext databaseContext, TaskExecutor taskExecutor, DialogService dialogService, PreferencesService preferencesService)
|
| public String | |
| private void | writeObject(ObjectOutputStream out)
Writes serialized object to ObjectOutputStream, automatically called |
| description | back to summary |
|---|---|
| private transient StringProperty description | |
| fileType | back to summary |
|---|---|
| private transient StringProperty fileType | |
| link | back to summary |
|---|---|
| private transient StringProperty link | |
| NULL_OBJECT | back to summary |
|---|---|
| private static final LinkedFile NULL_OBJECT | |
| REGEX_URL | back to summary |
|---|---|
| private static final String REGEX_URL | |
| sourceURL | back to summary |
|---|---|
| private transient StringProperty sourceURL | |
| URL_PATTERN | back to summary |
|---|---|
| private static final Pattern URL_PATTERN | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, Path link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, Path link, String fileType, String sourceUrl) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, String link, FileType fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, String link, String fileType, String sourceUrl) Constructor can also be used for non-valid paths. We need to parse them, because the GUI needs to render it. | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, String link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(URL link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, URL link, String fileType) | |
| LinkedFile | back to summary |
|---|---|
| public LinkedFile(String description, URL link, String fileType, String sourceUrl) | |
| descriptionProperty | back to summary |
|---|---|
| public StringProperty descriptionProperty() | |
| equals | back to summary |
|---|---|
| public boolean equals(@Nullable Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fileTypeProperty | back to summary |
|---|---|
| public StringProperty fileTypeProperty() | |
| findIn | back to summary |
|---|---|
| public Optional | |
| findIn | back to summary |
|---|---|
| public Optional Tries to find the file in the given directories and returns the path to the file (if found). Returns an empty optional if the file cannot be found. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| getFileType | back to summary |
|---|---|
| public String getFileType() | |
| getLink | back to summary |
|---|---|
| public String getLink() | |
| getObservables | back to summary |
|---|---|
| public Observable[] getObservables() | |
| getSourceUrl | back to summary |
|---|---|
| public String getSourceUrl() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| isOnlineLink | back to summary |
|---|---|
| public static boolean isOnlineLink(String toCheck) Checks if the given String is an online link
| |
| isOnlineLink | back to summary |
|---|---|
| public boolean isOnlineLink() | |
| linkProperty | back to summary |
|---|---|
| public StringProperty linkProperty() | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException Reads serialized object from | |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) | |
| setFileType | back to summary |
|---|---|
| public void setFileType(String fileType) | |
| setFileType | back to summary |
|---|---|
| public void setFileType(FileType fileType) | |
| setLink | back to summary |
|---|---|
| public void setLink(String link) | |
| setSourceURL | back to summary |
|---|---|
| public void setSourceURL(String url) | |
| sourceUrlProperty | back to summary |
|---|---|
| public StringProperty sourceUrlProperty() | |
| toModel | back to summary |
|---|---|
| public LinkedFileViewModel toModel(BibEntry entry, BibDatabaseContext databaseContext, TaskExecutor taskExecutor, DialogService dialogService, PreferencesService preferencesService) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException Writes serialized object to ObjectOutputStream, automatically called | |