Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.preferences.entryeditor

public Class EditorTabViewModel

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.util.HashSet, .List, .Set, java.util.stream.Collectors, javafx.beans.property.BooleanProperty, .SimpleBooleanProperty, javafx.collections.FXCollections, .ObservableList, org.jabref.gui.entryeditor.EntryEditorTabModel, org.jspecify.annotations.NullMarked, .Nullable

Mutable working copy of one entry editor tab (EntryEditorTabModel) while it is edited in the preferences dialog; converted back via toModel() on store.

Field Summary

Modifier and TypeField and Description
private final @Nullable EntryEditorTabModel.BuiltIn
builtIn

null for custom tabs.

private final String
private final Set<String>
private final ObservableList<String>
private final BooleanProperty

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
extractFromMainTab(String fieldPattern)

Marks the pattern's fields for extraction: they leave the Main tab.

public static EditorTabViewModel
public String
public ObservableList<String>
getFieldPatterns()

The tab's ordered field patterns; only ever non-empty for custom tabs.

public boolean
public boolean
isExtracted(String fieldPattern)

public void
keepOnMainTab(String fieldPattern)

Reverts extractFromMainTab: the pattern's fields are shown on the Main tab again.

public static EditorTabViewModel
public EntryEditorTabModel
public BooleanProperty
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

builtInback to summary
private final @Nullable EntryEditorTabModel.BuiltIn builtIn

null for custom tabs.

customNameback to summary
private final String customName
extractedPatternsback to summary
private final Set<String> extractedPatterns
fieldPatternsback to summary
private final ObservableList<String> fieldPatterns
visibleback to summary
private final BooleanProperty visible

Constructor Detail

EditorTabViewModelback to summary
private EditorTabViewModel(@Nullable EntryEditorTabModel.BuiltIn builtIn, String customName)

Method Detail

extractFromMainTabback to summary
public void extractFromMainTab(String fieldPattern)

Marks the pattern's fields for extraction: they leave the Main tab.

fromModelback to summary
public static EditorTabViewModel fromModel(EntryEditorTabModel model)
getDisplayNameback to summary
public String getDisplayName()
getFieldPatternsback to summary
public ObservableList<String> getFieldPatterns()

The tab's ordered field patterns; only ever non-empty for custom tabs.

isCustomback to summary
public boolean isCustom()
isExtractedback to summary
public boolean isExtracted(String fieldPattern)
keepOnMainTabback to summary
public void keepOnMainTab(String fieldPattern)

Reverts extractFromMainTab: the pattern's fields are shown on the Main tab again.

newCustomTabback to summary
public static EditorTabViewModel newCustomTab(String name)
toModelback to summary
public EntryEditorTabModel toModel()
visiblePropertyback to summary
public BooleanProperty visibleProperty()