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

public Class SimpleEditor

extends HBox
implements FieldEditorFX
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.FieldEditorFX
Known Direct Subclasses
org.jabref.gui.fieldeditors.MarkdownEditor
Imports
javafx.scene.Parent, javafx.scene.control.TextInputControl, javafx.scene.layout.HBox, .Priority, org.jabref.gui.autocompleter.AutoCompletionTextInputBinding, .ContentSelectorSuggestionProvider, .SuggestionProvider, org.jabref.gui.fieldeditors.contextmenu.DefaultMenu, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.undo.RedoAction, .UndoAction, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.undo.UndoManager, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.Field

Field Summary

Modifier and TypeField and Description
private final boolean
private final TextInputControl
private final SimpleEditorViewModel

Constructor Summary

AccessConstructor and Description
public
SimpleEditor(final Field field, final SuggestionProvider<?> suggestionProvider, final FieldCheckers fieldCheckers, final GuiPreferences preferences, final boolean isMultiLine, final UndoManager undoManager, UndoAction undoAction, RedoAction redoAction)

Method Summary

Modifier and TypeMethod and Description
public void
protected TextInputControl
public Parent
protected TextInputControl
public void
requestFocus()

Overrides javafx.scene.Node.requestFocus.

Requests that this Node get the input focus, and that this Node's top-level ancestor become the focused window.

Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

isMultiLineback to summary
private final boolean isMultiLine
textInputback to summary
private final TextInputControl textInput
viewModelback to summary
private final SimpleEditorViewModel viewModel

Constructor Detail

SimpleEditorback to summary
public SimpleEditor(final Field field, final SuggestionProvider<?> suggestionProvider, final FieldCheckers fieldCheckers, final GuiPreferences preferences, final boolean isMultiLine, final UndoManager undoManager, UndoAction undoAction, RedoAction redoAction)

Method Detail

bindToEntryback to summary
public void bindToEntry(BibEntry entry)

Implements org.jabref.gui.fieldeditors.FieldEditorFX.bindToEntry.

Annotations
@Override
createTextInputControlback to summary
protected TextInputControl createTextInputControl(Field field)
getNodeback to summary
public Parent getNode()

Implements org.jabref.gui.fieldeditors.FieldEditorFX.getNode.

Annotations
@Override
getTextInputback to summary
protected TextInputControl getTextInput()
requestFocusback to summary
public void requestFocus()

Overrides javafx.scene.Node.requestFocus.

Doc from javafx.scene.Node.requestFocus.

Requests that this Node get the input focus, and that this Node's top-level ancestor become the focused window. To be eligible to receive the focus, the node must be part of a scene, it and all of its ancestors must be visible, and it must not be disabled. If this node is eligible, this function will cause it to become this Scene's "focus owner". Each scene has at most one focus owner node. The focus owner will not actually have the input focus, however, unless the scene belongs to a Stage that is both visible and active.

This method will clear the focusVisible flag.

Annotations
@Override