Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.util.component

public Class HistoryTextArea

extends TextArea
Class Inheritance
Imports
javafx.beans.property.ListProperty, .ObjectProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, .ObservableList, javafx.event.ActionEvent, .EventHandler, javafx.scene.control.TextArea, javafx.scene.input.KeyCode, .KeyEvent

A custom JavaFX TextArea that provides shell-like history navigation, smart multiline handling, and auto-expanding height.

Field Summary

Modifier and TypeField and Description
private int
private final ListProperty<String>
private boolean
private static final int
private static final int
private final ObjectProperty<EventHandler<ActionEvent>>
Inherited from javafx.scene.control.TextArea:
DEFAULT_PREF_COLUMN_COUNTDEFAULT_PREF_ROW_COUNT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObservableList<String>
public EventHandler<ActionEvent>
private void
private void
private void
private void
public ObjectProperty<EventHandler<ActionEvent>>
private void
public void
private void
updateTextFromHistory(boolean setCursorAtStart)

Inherited from javafx.scene.control.TextArea:
createDefaultSkingetClassCssMetaDatagetControlCssMetaDatagetParagraphsgetPrefColumnCountgetPrefRowCountgetScrollLeftgetScrollTopisWrapTextprefColumnCountPropertyprefRowCountPropertyscrollLeftPropertyscrollTopPropertysetPrefColumnCountsetPrefRowCountsetScrollLeftsetScrollTopsetWrapTextwrapTextProperty

Field Detail

currentHistoryIndexback to summary
private int currentHistoryIndex
historyback to summary
private final ListProperty<String> history
isBrowsingHistoryback to summary
private boolean isBrowsingHistory
MAX_EXPAND_ROWSback to summary
private static final int MAX_EXPAND_ROWS
NEW_MESSAGE_INDEXback to summary
private static final int NEW_MESSAGE_INDEX
onSubmitback to summary
private final ObjectProperty<EventHandler<ActionEvent>> onSubmit

Constructor Detail

HistoryTextAreaback to summary
public HistoryTextArea()

Method Detail

getHistoryback to summary
public ObservableList<String> getHistory()
getOnSubmitback to summary
public EventHandler<ActionEvent> getOnSubmit()
handleDownKeyback to summary
private void handleDownKey(KeyEvent event)
handleEnterKeyback to summary
private void handleEnterKey(KeyEvent event)
handleKeyPressedback to summary
private void handleKeyPressed(KeyEvent keyEvent)
handleUpKeyback to summary
private void handleUpKey(KeyEvent event)
onSubmitPropertyback to summary
public ObjectProperty<EventHandler<ActionEvent>> onSubmitProperty()
resetHistoryStateback to summary
private void resetHistoryState()
setOnSubmitback to summary
public void setOnSubmit(EventHandler<ActionEvent> onSubmit)
updateTextFromHistoryback to summary
private void updateTextFromHistory(boolean setCursorAtStart)