Rendering is done with the html-to-node library (plain JavaFX nodes, no javafx.web).
| Modifier and Type | Field and Description |
|---|---|
| private final org.jabref.logic.util.OptionalObjectProperty | |
| private final BookCoverFetcher | |
| private final ClipBoardManager | |
| private static final String | |
| private @Nullable BibDatabaseContext | |
| private final DialogService | |
| private @Nullable BibEntry | |
| private double | |
| private PreviewLayout | |
| private String | |
| private static final Logger | |
| private final GuiPreferences | |
| private final RichHtmlView | |
| private final TaskExecutor | |
| private long | |
| private boolean | |
| private final WorkspacePreferences |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PreviewViewer(DialogService dialogService, GuiPreferences preferences, TaskExecutor taskExecutor, org.jabref.logic.util.OptionalObjectProperty<SearchQuery> activeSearchQueryProperty)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| private String | |
| private Optional | |
| private Optional | |
| private String | |
| public String | |
| private void | |
| public void | invalidated(Observable observable)
Implements javafx. This method needs to be provided by an implementation of
|
| public boolean | isPressOnSelection(double screenX, double screenY)
Returns: whether the given screen position lies on the current text selection (only then a drag gesture should drag the content instead of extending the selection) |
| private void | |
| public void | |
| private void | |
| public void | |
| private double | resolveBaseFontSize()
Returns: the base font size in CSS pixels (JavaFX user units), matching whatever
|
| public void | |
| public void | |
| public void | |
| private void | |
| private void | |
| private void | |
| private void |
| activeSearchQueryProperty | back to summary |
|---|---|
| private final org.jabref.logic.util.OptionalObjectProperty<SearchQuery> activeSearchQueryProperty | |
| bookCoverFetcher | back to summary |
|---|---|
| private final BookCoverFetcher bookCoverFetcher | |
| clipBoardManager | back to summary |
|---|---|
| private final ClipBoardManager clipBoardManager | |
| COVER_IMAGE_FORMAT_HTML | back to summary |
|---|---|
| private static final String COVER_IMAGE_FORMAT_HTML | |
| databaseContext | back to summary |
|---|---|
| private @Nullable BibDatabaseContext databaseContext | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| entry | back to summary |
|---|---|
| private @Nullable BibEntry entry | |
| latestContentHeight | back to summary |
|---|---|
| private double latestContentHeight | |
| layout | back to summary |
|---|---|
| private PreviewLayout layout | |
| layoutText | back to summary |
|---|---|
| private String layoutText | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| previewView | back to summary |
|---|---|
| private final RichHtmlView previewView | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| updateSequence | back to summary |
|---|---|
| private long updateSequence | |
| viewportResetScheduled | back to summary |
|---|---|
| private boolean viewportResetScheduled | |
| workspacePreferences | back to summary |
|---|---|
| private final WorkspacePreferences workspacePreferences | |
| PreviewViewer | back to summary |
|---|---|
| public PreviewViewer(DialogService dialogService, GuiPreferences preferences, TaskExecutor taskExecutor) | |
| PreviewViewer | back to summary |
|---|---|
| public PreviewViewer(DialogService dialogService, GuiPreferences preferences, TaskExecutor taskExecutor, org.jabref.logic.util.OptionalObjectProperty<SearchQuery> activeSearchQueryProperty) | |
| clearEntry | back to summary |
|---|---|
| public void clearEntry() | |
| copyPreviewHtmlToClipBoard | back to summary |
|---|---|
| public void copyPreviewHtmlToClipBoard() | |
| copyPreviewPlainTextToClipBoard | back to summary |
|---|---|
| public void copyPreviewPlainTextToClipBoard() | |
| copySelectionToClipBoard | back to summary |
|---|---|
| public void copySelectionToClipBoard() | |
| downloadCoverAndRefresh | back to summary |
|---|---|
| private void downloadCoverAndRefresh(BibEntry entry, String previewText, long currentUpdateSequence) | |
| exportToClipBoard | back to summary |
|---|---|
| public void exportToClipBoard(StateManager stateManager) | |
| formatError | back to summary |
|---|---|
| private String formatError(BibEntry entry, Throwable exception) | |
| getBaseURL | back to summary |
|---|---|
| private Optional | |
| getCoverImageURL | back to summary |
|---|---|
| private Optional | |
| getHighlightedLayoutText | back to summary |
|---|---|
| private String getHighlightedLayoutText() | |
| getSelectionHtmlContent | back to summary |
|---|---|
| public String getSelectionHtmlContent() | |
| highlightLayoutText | back to summary |
|---|---|
| private void highlightLayoutText() | |
| invalidated | back to summary |
|---|---|
| public void invalidated(Observable observable) Implements javafx. Doc from javafx. This method needs to be provided by an implementation of
In general, it is considered bad practice to modify the observed value in this method.
| |
| isPressOnSelection | back to summary |
|---|---|
public boolean isPressOnSelection(double screenX, double screenY)
| |
| openLink | back to summary |
|---|---|
| private void openLink(String href) | |
| back to summary | |
|---|---|
| public void print() | |
| renderLayoutTextWithCurrentOptions | back to summary |
|---|---|
| private void renderLayoutTextWithCurrentOptions() | |
| resizeForTooltipContent | back to summary |
|---|---|
| public void resizeForTooltipContent() | |
| resolveBaseFontSize | back to summary |
|---|---|
private double resolveBaseFontSize()
| |
| setDatabaseContext | back to summary |
|---|---|
| public void setDatabaseContext(BibDatabaseContext newDatabaseContext) | |
| setEntry | back to summary |
|---|---|
| public void setEntry(@Nullable BibEntry newEntry) | |
| setLayout | back to summary |
|---|---|
| public void setLayout(PreviewLayout newLayout) | |
| setPreviewText | back to summary |
|---|---|
| private void setPreviewText(String text) | |
| update | back to summary |
|---|---|
| private void update() | |
| updateBaseFontSize | back to summary |
|---|---|
| private void updateBaseFontSize() | |
| updateOnFxThread | back to summary |
|---|---|
| private void updateOnFxThread() | |