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

public Class DateEditor

extends HBox
implements FieldEditorFX
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.FieldEditorFX
Imports
java.time.format.DateTimeFormatter, java.time.temporal.TemporalAccessor, java.util.Objects, .Optional, javafx.fxml.FXML, javafx.scene.Parent, javafx.scene.layout.HBox, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.fieldeditors.contextmenu.DefaultMenu, org.jabref.gui.keyboard.KeyBindingRepository, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.undo.RedoAction, .UndoAction, org.jabref.gui.util.UiTaskExecutor, org.jabref.gui.util.component.TemporalAccessorPicker, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.undo.UndoManager, org.jabref.model.entry.BibEntry, .Date, org.jabref.model.entry.field.Field, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject

Field Summary

Modifier and TypeField and Description
private TemporalAccessorPicker
private KeyBindingRepository
private GuiPreferences
private boolean
private EditorTextField
private DateEditorViewModel

Constructor Summary

AccessConstructor and Description
public
DateEditor(Field field, DateTimeFormatter dateFormatter, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager, UndoAction undoAction, RedoAction redoAction)

Method Summary

Modifier and TypeMethod and Description
private void
public void
private void
private String
private Optional<TemporalAccessor>
public Parent
public DateEditorViewModel
private String
private void
private void
Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

datePickerback to summary
private TemporalAccessorPicker datePicker
Annotations
@FXML
keyBindingRepositoryback to summary
private KeyBindingRepository keyBindingRepository
Annotations
@Inject
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
synchronizingPickerback to summary
private boolean synchronizingPicker
textFieldback to summary
private EditorTextField textField
Annotations
@FXML
viewModelback to summary
private DateEditorViewModel viewModel
Annotations
@FXML

Constructor Detail

DateEditorback to summary
public DateEditor(Field field, DateTimeFormatter dateFormatter, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager, UndoAction undoAction, RedoAction redoAction)

Method Detail

acceptCommittedTextback to summary
private void acceptCommittedText(String text)
bindToEntryback to summary
public void bindToEntry(BibEntry entry)

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

Annotations
@Override
commitTextFieldValueback to summary
private void commitTextFieldValue()
formatDateback to summary
private String formatDate(TemporalAccessor date)
getLosslessPickerDateback to summary
private Optional<TemporalAccessor> getLosslessPickerDate(String text)
getNodeback to summary
public Parent getNode()

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

Annotations
@Override
getViewModelback to summary
public DateEditorViewModel getViewModel()
normalizeTextback to summary
private String normalizeText(String text)
syncPickerWithTextback to summary
private void syncPickerWithText(String text)
syncPickerWithValueback to summary
private void syncPickerWithValue(TemporalAccessor value)