Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.ai.chat

public Class AiChatView

extends StackPane
Class Inheritance
Imports
javafx.beans.binding.BooleanBinding, javafx.beans.property.ListProperty, javafx.fxml.FXML, javafx.scene.Node, javafx.scene.control.Button, .Label, .ProgressIndicator, javafx.scene.layout.BorderPane, .HBox, .Pane, .StackPane, org.jabref.gui.DialogService, org.jabref.gui.ai.AiPrivacyNoticeView, org.jabref.gui.ai.statuspane.UniversalStatusPaneView, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.component.HistoryTextArea, .ListScrollPane, .SimpleListView, org.jabref.logic.ai.AiNamingUtils, .AiService, org.jabref.logic.ai.chatting.ChatModel, org.jabref.logic.l10n.Localization, org.jabref.logic.util.TaskExecutor, org.jabref.logic.util.strings.StringUtil, org.jabref.model.ai.chatting.ChatMessage, org.jabref.model.ai.identifiers.FullBibEntry, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject

General AI chat component with org.jabref.model.entry.BibEntry. Can be used for chatting with one entry (AiEntryChatView) or with several entries (like AiGroupChatView).

To set up this component, set or bind the entriesProperty() and chatHistoryProperty() properties.

Field Summary

Modifier and TypeField and Description
private AiService
private Button
private ListScrollPane<ChatMessage>
private DialogService
private HBox
private SimpleListView<String>
private Button
private ProgressIndicator
private BorderPane
private UniversalStatusPaneView
private Label
private GuiPreferences
private AiPrivacyNoticeView
private UniversalStatusPaneView
private Button
private Button
private TaskExecutor
private Pane
private HistoryTextArea
private AiChatViewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public ListProperty<ChatMessage>
public ListProperty<FullBibEntry>
private static String
private void
private Node
private void
private void
send()

private void
private void
private void
private void
Inherited from javafx.scene.layout.StackPane:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetAlignmentgetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMarginlayoutChildrenrequestLayoutsetAlignmentsetAlignmentsetMargin

Field Detail

aiServiceback to summary
private AiService aiService
Annotations
@Inject
cancelButtonback to summary
private Button cancelButton
Annotations
@FXML
chatHistoryScrollPaneback to summary
private ListScrollPane<ChatMessage> chatHistoryScrollPane
Annotations
@FXML
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
followUpQuestionsAreaback to summary
private HBox followUpQuestionsArea
Annotations
@FXML
followUpQuestionsSimpleListViewback to summary
private SimpleListView<String> followUpQuestionsSimpleListView
Annotations
@FXML
infoButtonback to summary
private Button infoButton
Annotations
@FXML
loadingIndicatorback to summary
private ProgressIndicator loadingIndicator
Annotations
@FXML
mainContainerback to summary
private BorderPane mainContainer
Annotations
@FXML
noFilesErrorPaneback to summary
private UniversalStatusPaneView noFilesErrorPane
Annotations
@FXML
noticeTextback to summary
private Label noticeText
Annotations
@FXML
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
privacyNoticeback to summary
private AiPrivacyNoticeView privacyNotice
Annotations
@FXML
restartNeededPaneback to summary
private UniversalStatusPaneView restartNeededPane
Annotations
@FXML
retryButtonback to summary
private Button retryButton
Annotations
@FXML
sendButtonback to summary
private Button sendButton
Annotations
@FXML
taskExecutorback to summary
private TaskExecutor taskExecutor
Annotations
@Inject
transparentPaneback to summary
private Pane transparentPane
Annotations
@FXML
userMessageTextAreaback to summary
private HistoryTextArea userMessageTextArea
Annotations
@FXML
viewModelback to summary
private AiChatViewModel viewModel

Constructor Detail

AiChatViewback to summary
public AiChatView()

Method Detail

cancelback to summary
private void cancel()
Annotations
@FXML
chatHistoryPropertyback to summary
public ListProperty<ChatMessage> chatHistoryProperty()
entriesPropertyback to summary
public ListProperty<FullBibEntry> entriesProperty()
formatNoticeTextback to summary
private static String formatNoticeText(ChatModel model)
initializeback to summary
private void initialize()
Annotations
@FXML
renderChatMessageback to summary
private Node renderChatMessage(ChatMessage chatMessage)
retryback to summary
private void retry()
Annotations
@FXML
sendback to summary
private void send()
Annotations
@FXML
setupBindingsback to summary
private void setupBindings()
setupFollowUpQuestionsback to summary
private void setupFollowUpQuestions()
setupValuesback to summary
private void setupValues()
showInfoback to summary
private void showInfo()
Annotations
@FXML