Top Methods
org.jabref.gui.fieldeditors

public Interface ContextMenuAddable

Known Direct Implementers
org.jabref.gui.fieldeditors.EditorTextArea, org.jabref.gui.fieldeditors.EditorTextField
Imports
java.util.List, java.util.function.Supplier, javafx.scene.control.MenuItem, org.jabref.gui.keyboard.KeyBindingRepository

Method Summary

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

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

Method Detail

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

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.