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

public Class KeywordsEditor

extends HBox
implements FieldEditorFX
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.FieldEditorFX
Imports
java.util.Comparator, javax.swing.undo.UndoManager, javafx.beans.binding.Bindings, javafx.fxml.FXML, javafx.scene.Node, .Parent, javafx.scene.control.ContentDisplay, .ContextMenu, .Label, javafx.scene.layout.HBox, org.jabref.gui.ClipBoardManager, .DialogService, .JabRefDialogService, org.jabref.gui.actions.ActionFactory, .SimpleCommand, .StandardActions, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.icon.IconTheme, org.jabref.gui.util.ViewModelListCellFactory, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.l10n.Localization, org.jabref.model.entry.BibEntry, .Keyword, org.jabref.model.entry.field.Field, org.jabref.preferences.PreferencesService, com.airhacks.afterburner.views.ViewLoader, com.dlsc.gemsfx.TagsField, jakarta.inject.Inject, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private ClipBoardManager
private DialogService
private com.dlsc.gemsfx.TagsField<Keyword>
private static final Logger
private PreferencesService
private UndoManager
private final KeywordsEditorViewModel

Constructor Summary

AccessConstructor and Description
public
KeywordsEditor(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers)

Method Summary

Modifier and TypeMethod and Description
public void
private Node
createTag(Keyword keyword)

public Parent
public KeywordsEditorViewModel
public double
getWeight()

Overrides default org.jabref.gui.fieldeditors.FieldEditorFX.getWeight.

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

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

clipBoardManagerback to summary
private ClipBoardManager clipBoardManager
Annotations
@Inject
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
keywordTagsFieldback to summary
private com.dlsc.gemsfx.TagsField<Keyword> keywordTagsField
Annotations
@FXML
LOGGERback to summary
private static final Logger LOGGER
preferencesServiceback to summary
private PreferencesService preferencesService
Annotations
@Inject
undoManagerback to summary
private UndoManager undoManager
Annotations
@Inject
viewModelback to summary
private final KeywordsEditorViewModel viewModel

Constructor Detail

KeywordsEditorback to summary
public KeywordsEditor(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers)

Method Detail

bindToEntryback to summary
public void bindToEntry(BibEntry entry)

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

Annotations
@Override
createTagback to summary
private Node createTag(Keyword keyword)
getNodeback to summary
public Parent getNode()

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

Annotations
@Override
getViewModelback to summary
public KeywordsEditorViewModel getViewModel()
getWeightback to summary
public double getWeight()

Overrides default org.jabref.gui.fieldeditors.FieldEditorFX.getWeight.

Doc from org.jabref.gui.fieldeditors.FieldEditorFX.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

Annotations
@Override
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
org.jabref.gui.fieldeditors back to summary

private Class KeywordsEditor.TagContextAction

extends SimpleCommand
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final StandardActions
private final Keyword
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

commandback to summary
private final StandardActions command
keywordback to summary
private final Keyword keyword

Constructor Detail

TagContextActionback to summary
public TagContextAction(StandardActions command, Keyword keyword)

Method Detail

executeback to summary
public void execute()
Annotations
@Override