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

public abstract Class OptionEditorViewModel<T>

extends AbstractEditorViewModel
Class Inheritance
Known Direct Subclasses
org.jabref.gui.fieldeditors.optioneditors.mapbased.MapBasedEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.LanguageEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.MonthEditorViewModel
Imports
java.util.Collection, javafx.util.StringConverter, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.fieldeditors.AbstractEditorViewModel, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.undo.UndoManager, org.jabref.model.entry.field.Field

Field Summary

Inherited from org.jabref.gui.fieldeditors.AbstractEditorViewModel:
entryfieldtextundoManager

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public abstract String
convertToDisplayText(T object)

Used for filling the ComboBox for selecting a value.

public abstract Collection<T>
getItems()

Returns all available items

public abstract StringConverter<T>
getStringConverter()

Converts the user input to a String used in BibTeX

Inherited from org.jabref.gui.fieldeditors.AbstractEditorViewModel:
bindToEntrycompletegetFieldValidatortextProperty

Constructor Detail

OptionEditorViewModelback to summary
public OptionEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager)

Method Detail

convertToDisplayTextback to summary
public abstract String convertToDisplayText(T object)

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

getItemsback to summary
public abstract Collection<T> getItems()

Returns all available items

getStringConverterback to summary
public abstract StringConverter<T> getStringConverter()

Converts the user input to a String used in BibTeX