Verified Owner
Top Fields Constructors Methods
org.jabref.gui.ai.summary

public Class AiSummaryShowingView

extends VBox
Class Inheritance
Imports
java.time.Instant, .ZoneId, java.time.format.DateTimeFormatter, .FormatStyle, java.util.Locale, javafx.beans.property.ObjectProperty, javafx.event.ActionEvent, .EventHandler, javafx.fxml.FXML, javafx.scene.control.CheckBox, .ScrollPane, javafx.scene.layout.Priority, .StackPane, .VBox, javafx.scene.text.Text, org.jabref.gui.DialogService, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.BindingsHelper, .UiTaskExecutor, org.jabref.gui.util.component.MarkdownTextFlow, org.jabref.logic.ai.AiNamingUtils, org.jabref.logic.l10n.Localization, org.jabref.logic.util.strings.StringUtil, org.jabref.model.ai.identifiers.FullBibEntry, org.jabref.model.ai.summarization.AiSummary, org.jabref.model.entry.BibEntryTypesManager, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject

Field Summary

Modifier and TypeField and Description
private DialogService
private BibEntryTypesManager
private CheckBox
private MarkdownTextFlow
private GuiPreferences
private Text
private int
updateVersion

Monotonically increasing stamp identifying the most recently scheduled content update.

private AiSummaryShowingViewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectProperty<FullBibEntry>
private void
private void
private static String
private static String
public EventHandler<ActionEvent>
public EventHandler<ActionEvent>
private void
private void
public ObjectProperty<EventHandler<ActionEvent>>
public ObjectProperty<EventHandler<ActionEvent>>
private void
private void
public void
public void
private void
private void
public ObjectProperty<AiSummary>
private void
Inherited from javafx.scene.layout.VBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillWidthPropertygetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMargingetSpacinggetVgrowisFillWidthlayoutChildrenrequestLayoutsetAlignmentsetFillWidthsetMarginsetSpacingsetVgrowspacingProperty

Field Detail

dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
entryTypesManagerback to summary
private BibEntryTypesManager entryTypesManager
Annotations
@Inject
markdownCheckboxback to summary
private CheckBox markdownCheckbox
Annotations
@FXML
markdownTextFlowback to summary
private MarkdownTextFlow markdownTextFlow
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
summaryInfoTextback to summary
private Text summaryInfoText
Annotations
@FXML
updateVersionback to summary
private int updateVersion

Monotonically increasing stamp identifying the most recently scheduled content update.

Each updateContent() call increments this counter and captures its own value before scheduling the UI mutation on the JavaFX thread. When the scheduled callback runs, it compares the captured value against the current counter and skips the mutation if a newer update has been scheduled in the meantime, preventing a stale summary from overwriting a newer one.

viewModelback to summary
private AiSummaryShowingViewModel viewModel

Constructor Detail

AiSummaryShowingViewback to summary
public AiSummaryShowingView()

Method Detail

entryPropertyback to summary
public ObjectProperty<FullBibEntry> entryProperty()
exportJsonback to summary
private void exportJson()
Annotations
@FXML
exportMarkdownback to summary
private void exportMarkdown()
Annotations
@FXML
formatSummaryInfoback to summary
private static String formatSummaryInfo(AiSummary summary)
formatTimestampback to summary
private static String formatTimestamp(Instant timestamp)
getOnRegenerateback to summary
public EventHandler<ActionEvent> getOnRegenerate()
getOnRegenerateCustomback to summary
public EventHandler<ActionEvent> getOnRegenerateCustom()
initializeback to summary
private void initialize()
Annotations
@FXML
initializeMarkdownTextFlowback to summary
private void initializeMarkdownTextFlow()
onRegenerateCustomPropertyback to summary
public ObjectProperty<EventHandler<ActionEvent>> onRegenerateCustomProperty()
onRegeneratePropertyback to summary
public ObjectProperty<EventHandler<ActionEvent>> onRegenerateProperty()
regenerateback to summary
private void regenerate()
Annotations
@FXML
regenerateCustomback to summary
private void regenerateCustom()
Annotations
@FXML
setOnRegenerateback to summary
public void setOnRegenerate(EventHandler<ActionEvent> onRegenerate)
setOnRegenerateCustomback to summary
public void setOnRegenerateCustom(EventHandler<ActionEvent> onRegenerateCustom)
setupBindingsback to summary
private void setupBindings()
setupListenersback to summary
private void setupListeners()
summaryPropertyback to summary
public ObjectProperty<AiSummary> summaryProperty()
updateContentback to summary
private void updateContent()