Top Methods
org.jabref.gui.fieldeditors

public Interface FieldEditorFX

Known Direct Implementers
org.jabref.gui.fieldeditors.ISSNEditor, org.jabref.gui.fieldeditors.JournalEditor, org.jabref.gui.fieldeditors.KeywordsEditor, org.jabref.gui.fieldeditors.LinkedEntriesEditor, org.jabref.gui.fieldeditors.LinkedFilesEditor, org.jabref.gui.fieldeditors.OwnerEditor, org.jabref.gui.fieldeditors.PersonsEditor, org.jabref.gui.fieldeditors.SimpleEditor, org.jabref.gui.fieldeditors.UrlEditor, org.jabref.gui.fieldeditors.identifier.IdentifierEditor, org.jabref.gui.fieldeditors.optioneditors.OptionEditor, org.jabref.gui.fieldeditors.CitationKeyEditor, org.jabref.gui.fieldeditors.DateEditor
Imports
java.util.Arrays, .List, javafx.application.Platform, javafx.beans.property.StringProperty, javafx.scene.Parent, javafx.scene.control.TextInputControl, javafx.scene.input.KeyEvent, org.jabref.gui.keyboard.KeyBinding, .KeyBindingRepository, org.jabref.gui.undo.RedoAction, .UndoAction, org.jabref.gui.util.UiTaskExecutor, org.jabref.model.entry.BibEntry, com.github.difflib.DiffUtils, com.github.difflib.patch.AbstractDelta, com.tobiasdiez.easybind.EasyBind, org.slf4j.Logger, .LoggerFactory

Method Summary

Modifier and TypeMethod and Description
public void
public default void
establishBinding(TextInputControl textInputControl, StringProperty viewModelTextProperty, KeyBindingRepository keyBindingRepository, UndoAction undoAction, RedoAction redoAction)

public default void
public Parent
public default double

Returns:

the relative weight of the editor in terms of display space
getWeight
()

Returns relative size of the field editor in terms of display space.

private void
setTextAndUpdateCaretPosition(TextInputControl textInputControl, String newText, Logger logger)

Method Detail

bindToEntryback to summary
public void bindToEntry(BibEntry entry)
establishBindingback to summary
public default void establishBinding(TextInputControl textInputControl, StringProperty viewModelTextProperty, KeyBindingRepository keyBindingRepository, UndoAction undoAction, RedoAction redoAction)

Implementation Note

Decided to add undoAction and redoAction as parameter instead of passing a tabSupplier, org.jabref.gui.DialogService and org.jabref.gui.StateManager to the method.

focusback to summary
public default void focus()
getNodeback to summary
public Parent getNode()
getWeightback to summary
public default double getWeight()

Returns relative size of the field editor in terms of display space.

A value of 1 means that the editor gets exactly as much space as all other regular editors.

A value of 2 means that the editor gets twice as much space as regular editors.

Returns:double

the relative weight of the editor in terms of display space

setTextAndUpdateCaretPositionback to summary
private void setTextAndUpdateCaretPosition(TextInputControl textInputControl, String newText, Logger logger)