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

public abstract Class StringMapBasedEditorViewModel

extends MapBasedEditorViewModel<String>
Class Inheritance
Known Direct Subclasses
org.jabref.gui.fieldeditors.optioneditors.mapbased.TypeEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.mapbased.YesNoEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.mapbased.CustomFieldEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.mapbased.EditorTypeEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.mapbased.GenderEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.mapbased.PaginationEditorViewModel, org.jabref.gui.fieldeditors.optioneditors.mapbased.PatentTypeEditorViewModel
Imports
java.util.Map, javax.swing.undo.UndoManager, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.logic.integrity.FieldCheckers, org.jabref.model.entry.field.Field, com.google.common.collect.BiMap, .HashBiMap

Field Summary

Modifier and TypeField and Description
private BiMap<String, String>

Constructor Summary

AccessConstructor and Description
public
StringMapBasedEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager, Map<String, String> entries)

Method Summary

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

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

Used for filling the ComboBox for selecting a value.

protected BiMap<String, String>
Inherited from org.jabref.gui.fieldeditors.optioneditors.mapbased.MapBasedEditorViewModel:
getItemsgetStringConvertergetValueFromString

Field Detail

itemMapback to summary
private BiMap<String, String> itemMap

Constructor Detail

StringMapBasedEditorViewModelback to summary
public StringMapBasedEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager, Map<String, String> entries)

Method Detail

convertToDisplayTextback to summary
public String convertToDisplayText(String 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
getItemMapback to summary
protected BiMap<String, String> getItemMap()

Implements abstract org.jabref.gui.fieldeditors.optioneditors.mapbased.MapBasedEditorViewModel.getItemMap.

Annotations
@Override