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

public Class MonthEditorViewModel

extends OptionEditorViewModel<Month>
Class Inheritance
Imports
java.util.Arrays, .Collection, javax.swing.undo.UndoManager, javafx.util.StringConverter, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.logic.integrity.FieldCheckers, org.jabref.model.database.BibDatabaseMode, org.jabref.model.entry.Month, org.jabref.model.entry.field.Field, org.jabref.model.strings.StringUtil

Field Summary

Modifier and TypeField and Description
private BibDatabaseMode

Constructor Summary

AccessConstructor and Description
public
MonthEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, BibDatabaseMode databaseMode, FieldCheckers fieldCheckers, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
public String
convertToDisplayText(Month object)

Implements abstract org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.convertToDisplayText.

Used for filling the ComboBox for selecting a value.

public Collection<Month>
public StringConverter<Month>
getStringConverter()

Implements abstract org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.getStringConverter.

Converts the user input to a String used in BibTeX

Field Detail

databaseModeback to summary
private BibDatabaseMode databaseMode

Constructor Detail

MonthEditorViewModelback to summary
public MonthEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, BibDatabaseMode databaseMode, FieldCheckers fieldCheckers, UndoManager undoManager)

Method Detail

convertToDisplayTextback to summary
public String convertToDisplayText(Month object)

Implements abstract org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.convertToDisplayText.

Doc from org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.convertToDisplayText.

Used for filling the ComboBox for selecting a value. Needs to return something meaningful for each item in getItems()

Annotations
@Override
getItemsback to summary
public Collection<Month> getItems()

Implements abstract org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.getItems.

Doc from org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.getItems.

Returns all available items

Annotations
@Override
getStringConverterback to summary
public StringConverter<Month> getStringConverter()

Implements abstract org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.getStringConverter.

Doc from org.jabref.gui.fieldeditors.optioneditors.OptionEditorViewModel.getStringConverter.

Converts the user input to a String used in BibTeX

Annotations
@Override