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

public Class MainTableFieldValueFormatter

extends Object
Class Inheritance
Imports
java.util.Optional, org.jabref.model.database.BibDatabase, .BibDatabaseContext, org.jabref.model.entry.AuthorList, .BibEntry, org.jabref.model.entry.field.Field, .FieldProperty, .OrFields

Field Summary

Modifier and TypeField and Description
private final NameDisplayPreferences.AbbreviationStyle
private final BibDatabase
private final NameDisplayPreferences.DisplayStyle

Constructor Summary

AccessConstructor and Description
public
MainTableFieldValueFormatter(NameDisplayPreferences nameDisplayPreferences, BibDatabaseContext bibDatabaseContext)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The formatted name field.
formatFieldsValues
(final OrFields fields, final BibEntry
the BibEntry of BibEntryTableViewModel.
entry
)

Format fields for BibEntryTableViewModel, according to user preferences and with latex translated to unicode if possible.

private String

Returns:

The formatted name field.
formatFieldWithAuthorValue
(final String
The contents of the name field.
nameToFormat
)

Format a name field for the table, according to user preferences and with latex expressions translated if possible.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

abbreviationStyleback to summary
private final NameDisplayPreferences.AbbreviationStyle abbreviationStyle
bibDatabaseback to summary
private final BibDatabase bibDatabase
displayStyleback to summary
private final NameDisplayPreferences.DisplayStyle displayStyle

Constructor Detail

MainTableFieldValueFormatterback to summary
public MainTableFieldValueFormatter(NameDisplayPreferences nameDisplayPreferences, BibDatabaseContext bibDatabaseContext)

Method Detail

formatFieldsValuesback to summary
public String formatFieldsValues(final OrFields fields, final BibEntry entry)

Format fields for BibEntryTableViewModel, according to user preferences and with latex translated to unicode if possible.

Parameters
fields:OrFields

the fields argument of BibEntryTableViewModel#getFields(OrFields).

entry:BibEntry

the BibEntry of BibEntryTableViewModel.

Returns:String

The formatted name field.

formatFieldWithAuthorValueback to summary
private String formatFieldWithAuthorValue(final String nameToFormat)

Format a name field for the table, according to user preferences and with latex expressions translated if possible.

Parameters
nameToFormat:String

The contents of the name field.

Returns:String

The formatted name field.