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

public Class AiEntryChatViewModel

extends AbstractViewModel
Class Inheritance
Imports
javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, org.jabref.gui.AbstractViewModel, org.jabref.logic.ai.chatting.InMemoryChatHistoryCache, org.jabref.logic.ai.preferences.AiPreferences, org.jabref.model.ai.chatting.ChatMessage, org.jabref.model.ai.identifiers.FullBibEntry, com.tobiasdiez.easybind.EasyBind

Field Summary

Modifier and TypeField and Description
private final AiPreferences
private final ListProperty<ChatMessage>
private final InMemoryChatHistoryCache
private final BooleanProperty
private final ListProperty<FullBibEntry>
private final ObjectProperty<FullBibEntry>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ListProperty<ChatMessage>
public BooleanProperty
public ListProperty<FullBibEntry>
private void
load(FullBibEntry identifier)

public ObjectProperty<FullBibEntry>
private void
private void

Field Detail

aiPreferencesback to summary
private final AiPreferences aiPreferences
chatHistoryback to summary
private final ListProperty<ChatMessage> chatHistory
chatHistoryCacheback to summary
private final InMemoryChatHistoryCache chatHistoryCache
enabledback to summary
private final BooleanProperty enabled
entriesback to summary
private final ListProperty<FullBibEntry> entries
selectedEntryback to summary
private final ObjectProperty<FullBibEntry> selectedEntry

Constructor Detail

AiEntryChatViewModelback to summary
public AiEntryChatViewModel(AiPreferences aiPreferences, InMemoryChatHistoryCache chatHistoryCache)

Method Detail

chatHistoryPropertyback to summary
public ListProperty<ChatMessage> chatHistoryProperty()
enabledPropertyback to summary
public BooleanProperty enabledProperty()
entriesPropertyback to summary
public ListProperty<FullBibEntry> entriesProperty()
loadback to summary
private void load(FullBibEntry identifier)
selectedEntryPropertyback to summary
public ObjectProperty<FullBibEntry> selectedEntryProperty()
setupBindingsback to summary
private void setupBindings()
setupListenersback to summary
private void setupListeners()