Verified Owner
Top Fields Constructors Methods
org.jabref.gui.fieldeditors

public Class EditorTextField

extends TextField
implements Initializable, ContextMenuAddable
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.ContextMenuAddable, javafx.fxml.Initializable
Imports
java.net.URL, java.util.List, .ResourceBundle, java.util.function.Supplier, javafx.fxml.Initializable, javafx.scene.control.ContextMenu, .MenuItem, .TextField, javafx.scene.layout.HBox, .Priority, org.jabref.gui.clipboard.ClipBoardManager, org.jabref.gui.fieldeditors.contextmenu.EditorContextAction, org.jabref.gui.keyboard.KeyBindingRepository, org.jspecify.annotations.NonNull

Field Summary

Modifier and TypeField and Description
private Runnable
private final ContextMenu
Inherited from javafx.scene.control.TextField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
public
public
EditorTextField(final String text)

Method Summary

Modifier and TypeMethod and Description
public void
initContextMenu(final Supplier<List<MenuItem>> items, KeyBindingRepository keyBindingRepository)

Implements org.jabref.gui.fieldeditors.ContextMenuAddable.initContextMenu.

Adds the given list of menu items to the context menu.

public void
initialize(URL location, ResourceBundle resources)

Implements javafx.fxml.Initializable.initialize.

Called to initialize a controller after its root element has been completely processed.

public void
paste()

Overrides javafx.scene.control.TextInputControl.paste.

Transfers the contents in the clipboard into this text, replacing the current selection.

public void
Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkingetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Field Detail

additionalPasteActionHandlerback to summary
private Runnable additionalPasteActionHandler
contextMenuback to summary
private final ContextMenu contextMenu

Hides javafx.scene.control.Control.contextMenu.

Constructor Detail

EditorTextFieldback to summary
public EditorTextField()
EditorTextFieldback to summary
public EditorTextField(final String text)

Method Detail

initContextMenuback to summary
public void initContextMenu(final Supplier<List<MenuItem>> items, KeyBindingRepository keyBindingRepository)

Implements org.jabref.gui.fieldeditors.ContextMenuAddable.initContextMenu.

Doc from org.jabref.gui.fieldeditors.ContextMenuAddable.initContextMenu.

Adds the given list of menu items to the context menu. The usage of Supplier prevents that the menus need to be instantiated at this point. They are populated when the user needs them which prevents many unnecessary allocations when the main table is just scrolled with the entry editor open.

Annotations
@Override
initializeback to summary
public void initialize(URL location, ResourceBundle resources)

Implements javafx.fxml.Initializable.initialize.

Doc from javafx.fxml.Initializable.initialize.

Called to initialize a controller after its root element has been completely processed.

Annotations
@Override
pasteback to summary
public void paste()

Overrides javafx.scene.control.TextInputControl.paste.

Doc from javafx.scene.control.TextInputControl.paste.

Transfers the contents in the clipboard into this text, replacing the current selection. If there is no selection, the contents in the clipboard is inserted at the current caret position.

Annotations
@Override
setAdditionalPasteActionHandlerback to summary
public void setAdditionalPasteActionHandler(@NonNull Runnable handler)