Top Inners Fields Constructors Methods
org.jabref.gui.fieldeditors

public Class EditorTextArea

extends TextArea
implements Initializable, ContextMenuAddable
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.ContextMenuAddable, javafx.fxml.Initializable
Imports
java.net.URL, java.util.List, .Objects, .ResourceBundle, java.util.function.Supplier, javafx.fxml.Initializable, javafx.scene.control.ContextMenu, .MenuItem, .TextArea, org.jabref.gui.ClipBoardManager, org.jabref.gui.fieldeditors.contextmenu.EditorContextAction, org.jabref.gui.keyboard.KeyBindingRepository

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
EditorTextArea.PasteActionHandler

Interface presents user-described paste behaviour applying to paste method

Field Summary

Modifier and TypeField and Description
private final ContextMenu
private EditorTextArea.PasteActionHandler
pasteActionHandler

Variable that contains user-defined behavior for paste action.

Inherited from javafx.scene.control.TextArea:
DEFAULT_PREF_COLUMN_COUNTDEFAULT_PREF_ROW_COUNT

Constructor Summary

AccessConstructor and Description
public
public
EditorTextArea(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.

public void
paste()

Overrides javafx.scene.control.TextInputControl.paste.

Override javafx TextArea method applying TextArea.paste() and pasteActionHandler after

public void
setPasteActionHandler(EditorTextArea.PasteActionHandler
an instance of PasteActionHandler that describes paste behavior
handler
)

Set pasteActionHandler variable to passed handler

Inherited from javafx.scene.control.TextArea:
createDefaultSkingetClassCssMetaDatagetControlCssMetaDatagetParagraphsgetPrefColumnCountgetPrefRowCountgetScrollLeftgetScrollTopisWrapTextprefColumnCountPropertyprefRowCountPropertyscrollLeftPropertyscrollTopPropertysetPrefColumnCountsetPrefRowCountsetScrollLeftsetScrollTopsetWrapTextwrapTextProperty

Field Detail

contextMenuback to summary
private final ContextMenu contextMenu

Hides javafx.scene.control.Control.contextMenu.

pasteActionHandlerback to summary
private EditorTextArea.PasteActionHandler pasteActionHandler

Variable that contains user-defined behavior for paste action.

Constructor Detail

EditorTextAreaback to summary
public EditorTextArea()
EditorTextAreaback to summary
public EditorTextArea(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
pasteback to summary
public void paste()

Overrides javafx.scene.control.TextInputControl.paste.

Override javafx TextArea method applying TextArea.paste() and pasteActionHandler after

Annotations
@Override
setPasteActionHandlerback to summary
public void setPasteActionHandler(EditorTextArea.PasteActionHandler handler)

Set pasteActionHandler variable to passed handler

Parameters
handler:EditorTextArea.PasteActionHandler

an instance of PasteActionHandler that describes paste behavior

org.jabref.gui.fieldeditors back to summary

public Interface EditorTextArea.PasteActionHandler

Annotations
@FunctionalInterface

Interface presents user-described paste behaviour applying to paste method

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

handleback to summary
public void handle()