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

public Class AiChatMessageView

extends HBox
Class Inheritance
Imports
javafx.beans.property.ObjectProperty, javafx.beans.value.ObservableValue, javafx.css.PseudoClass, javafx.event.ActionEvent, .EventHandler, javafx.fxml.FXML, javafx.geometry.Pos, javafx.scene.control.Button, .ContextMenu, .Label, .Tooltip, javafx.scene.layout.HBox, .StackPane, .VBox, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.clipboard.ClipBoardManager, org.jabref.gui.documentviewer.JumpToEntryPdfAction, org.jabref.gui.edit.OpenBrowserAction, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.BindingsHelper, .LocaleUtil, org.jabref.gui.util.component.MarkdownTextFlow, org.jabref.logic.util.strings.StringUtil, org.jabref.model.ai.chatting.ChatMessage, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject

Field Summary

Modifier and TypeField and Description
private static final PseudoClass
private VBox
private VBox
private ClipBoardManager
private ContextMenu
private Button
private DialogService
private static final PseudoClass
private StackPane
private MarkdownTextFlow
private GuiPreferences
private Button
private Label
private StateManager
private Tooltip
private static final PseudoClass
private AiChatMessageViewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectProperty<ChatMessage>
private static Pos
public ChatMessage
pack-priv MarkdownTextFlow
public EventHandler<ActionEvent>
public EventHandler<ActionEvent>
private void
private void
private void
public ObjectProperty<EventHandler<ActionEvent>>
private void
public ObjectProperty<EventHandler<ActionEvent>>
public void
public void
public void
private void
private void
private void
private void
private void
updateOrder(ChatMessage chatMessage)

Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

AI_PSEUDO_CLASSback to summary
private static final PseudoClass AI_PSEUDO_CLASS
bubbleback to summary
private VBox bubble
Annotations
@FXML
buttonsback to summary
private VBox buttons
Annotations
@FXML
clipboardManagerback to summary
private ClipBoardManager clipboardManager
Annotations
@Inject
contextMenuback to summary
private ContextMenu contextMenu
Annotations
@FXML
deleteButtonback to summary
private Button deleteButton
Annotations
@FXML
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
ERROR_PSEUDO_CLASSback to summary
private static final PseudoClass ERROR_PSEUDO_CLASS
markdownContentPaneback to summary
private StackPane markdownContentPane
Annotations
@FXML
markdownTextFlowback to summary
private MarkdownTextFlow markdownTextFlow
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
regenerateButtonback to summary
private Button regenerateButton
Annotations
@FXML
sourceLabelback to summary
private Label sourceLabel
Annotations
@FXML
stateManagerback to summary
private StateManager stateManager
Annotations
@Inject
tooltipback to summary
private Tooltip tooltip
USER_PSEUDO_CLASSback to summary
private static final PseudoClass USER_PSEUDO_CLASS
viewModelback to summary
private AiChatMessageViewModel viewModel

Constructor Detail

AiChatMessageViewback to summary
public AiChatMessageView()

Method Detail

chatMessagePropertyback to summary
public ObjectProperty<ChatMessage> chatMessageProperty()
determineAlignmentback to summary
private static Pos determineAlignment(ChatMessage chatMessage)
getChatMessageback to summary
public ChatMessage getChatMessage()
getMarkdownTextFlowback to summary
pack-priv MarkdownTextFlow getMarkdownTextFlow()
getOnDeleteback to summary
public EventHandler<ActionEvent> getOnDelete()
getOnRegenerateback to summary
public EventHandler<ActionEvent> getOnRegenerate()
initializeback to summary
private void initialize()
Annotations
@FXML
onCopyContextMenuClickback to summary
private void onCopyContextMenuClick()
Annotations
@FXML
onDeleteClickback to summary
private void onDeleteClick()
Annotations
@FXML
onDeletePropertyback to summary
public ObjectProperty<EventHandler<ActionEvent>> onDeleteProperty()
onRegenerateClickback to summary
private void onRegenerateClick()
Annotations
@FXML
onRegeneratePropertyback to summary
public ObjectProperty<EventHandler<ActionEvent>> onRegenerateProperty()
setChatMessageback to summary
public void setChatMessage(ChatMessage chatMessage)
setOnDeleteback to summary
public void setOnDelete(EventHandler<ActionEvent> onDelete)
setOnRegenerateback to summary
public void setOnRegenerate(EventHandler<ActionEvent> onRegenerate)
setupBindingsback to summary
private void setupBindings()
setupListenersback to summary
private void setupListeners()
setupPseudoClassesback to summary
private void setupPseudoClasses()
updateContentback to summary
private void updateContent(ChatMessage chatMessage)
updateOrderback to summary
private void updateOrder(ChatMessage chatMessage)