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.ClipBoardManager, org.jabref.gui.fieldeditors.contextmenu.EditorContextAction, org.jabref.gui.keyboard.KeyBindingRepository

Field Summary

Modifier and TypeField and Description
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
The location used to resolve relative paths for the root object, or null if the location is not known.
location
,
ResourceBundle
The resources used to localize the root object, or null if the root object was not localized.
resources
)

Implements javafx.fxml.Initializable.initialize.

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

Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkingetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Field Detail

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.

Parameters
location:URL

The location used to resolve relative paths for the root object, or null if the location is not known.

resources:ResourceBundle

The resources used to localize the root object, or null if the root object was not localized.

Annotations
@Override