BuiltInTab — a fixed tab (the single scroll-list "Main" tab of issue #12711 and the
feature tabs) identified by a BuiltIn constant; users only toggle visibility and order.
CustomizedFieldsTab — a user-defined tab backed by a named, ordered list of field patterns.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | EntryEditorTabModel.
Every fixed tab in the entry editor, in display order. |
| public static record | |
| public static record | EntryEditorTabModel.
A user-defined tab showing an explicit, ordered list of field patterns. |
| Modifier and Type | Method and Description |
|---|---|
| public static Set | extractedFieldsOnCustomTabs(List<EntryEditorTabModel> tabModels, BibEntry entry)
Union of the fields resolved by all |
| public default boolean | |
| public boolean | |
| public EntryEditorTabModel |
| extractedFieldsOnCustomTabs | back to summary |
|---|---|
| public static Set Union of the fields resolved by all | |
| isPreview | back to summary |
|---|---|
| public default boolean isPreview() | |
| isVisible | back to summary |
|---|---|
| public boolean isVisible() | |
| withVisible | back to summary |
|---|---|
| public EntryEditorTabModel withVisible(boolean visible) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| private static final Set | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. | |
| public static final EntryEditorTabModel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public static EntryEditorTabModel. | |
| public static EntryEditorTabModel. |
| AI_CHAT | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| AI_SUMMARY | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| ALL_FIELDS | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| CITATION_INFORMATION | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| FIELD_SETS | back to summary |
|---|---|
| private static final Set<EntryEditorTabModel. | |
| FILE_ANNOTATIONS | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| FULLTEXT_SEARCH_RESULTS | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| LATEX_CITATIONS | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| PREVIEW | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| RELATED_ARTICLES | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| SOURCE | back to summary |
|---|---|
| public static final EntryEditorTabModel. | |
| BuiltIn | back to summary |
|---|---|
| private BuiltIn() | |
| displayName | back to summary |
|---|---|
| public String displayName() | |
| isFieldSet | back to summary |
|---|---|
| public boolean isFieldSet() | |
| valueOf | back to summary |
|---|---|
| public static EntryEditorTabModel. | |
| values | back to summary |
|---|---|
| public static EntryEditorTabModel. | |
| Modifier and Type | Field and Description |
|---|---|
| private final EntryEditorTabModel. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public boolean | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public EntryEditorTabModel. | |
| public boolean | |
| public EntryEditorTabModel |
| type | back to summary |
|---|---|
| private final EntryEditorTabModel. Record Component accessed by type(). | |
| visible | back to summary |
|---|---|
| private final boolean visible Record Component accessed by visible(). | |
| BuiltInTab | back to summary |
|---|---|
| public BuiltInTab(EntryEditorTabModel. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| isVisible | back to summary |
|---|---|
| public boolean isVisible() Implements org.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| type | back to summary |
|---|---|
| public EntryEditorTabModel. Record Component getter of type. | |
| visible | back to summary |
|---|---|
| public boolean visible() Record Component getter of visible. | |
| withVisible | back to summary |
|---|---|
| public EntryEditorTabModel withVisible(boolean visible) Implements org.
| |
BuiltInTab).
A pattern is either a plain field name (always shown, even while unset on the entry) or a
regular expression (contains regex metacharacters), which captures every set field of the
entry whose name matches it — e.g. comment-.* for all user-specific comment fields.
A pattern in extractedFieldPatterns is additionally extracted: the fields it resolves
to leave the Main tab. Patterns are not extracted by default, so a custom tab initially only
mirrors its fields.
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | COMPILED_REGEXES
See |
| private final Set | extractedFieldPatterns
Record Component accessed by extractedFieldPatterns(). |
| private final List | fieldPatterns
Record Component accessed by fieldPatterns(). |
| private static final Set | KNOWN_FIELD_NAMES
Lower-cased names of every registered field (see |
| private final String | |
| private static final Pattern | PLAIN_FIELD_NAME
A pattern without any regex metacharacter is a plain field name. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CustomizedFieldsTab(String name, List<String> fieldPatterns)
A tab with no extracted patterns (the default for newly configured fields). |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | appearsOnMainTab(String fieldPattern)
Whether the "Extract field" choice applies to the pattern: only a plain name of a known field is a field the Main tab shows on its own. |
| private static Optional | compiledRegex(String pattern)
Regex patterns are resolved on every Main-tab and custom-tab rebuild, so the compiled form is cached (the cache stays small: it only ever holds the user's configured patterns). |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Set | |
| public List | |
| public final int | |
| public boolean | |
| public String | |
| private SequencedSet | |
| public SequencedSet | resolveExtractedFields(BibEntry entry)
Resolves only the extracted patterns — the fields the Main tab must no longer show. |
| public SequencedSet | resolveFields(BibEntry entry)
Resolves |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public EntryEditorTabModel |
| COMPILED_REGEXES | back to summary |
|---|---|
| private static final Map<String, Optional<Pattern>> COMPILED_REGEXES See | |
| extractedFieldPatterns | back to summary |
|---|---|
| private final Set<String> extractedFieldPatterns Record Component accessed by extractedFieldPatterns(). | |
| fieldPatterns | back to summary |
|---|---|
| private final List<String> fieldPatterns Record Component accessed by fieldPatterns(). | |
| KNOWN_FIELD_NAMES | back to summary |
|---|---|
| private static final Set<String> KNOWN_FIELD_NAMES Lower-cased names of every registered field (see | |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). | |
| PLAIN_FIELD_NAME | back to summary |
|---|---|
| private static final Pattern PLAIN_FIELD_NAME A pattern without any regex metacharacter is a plain field name. | |
| CustomizedFieldsTab | back to summary |
|---|---|
| public CustomizedFieldsTab(String name, List<String> fieldPatterns, Set<String> extractedFieldPatterns) | |
| CustomizedFieldsTab | back to summary |
|---|---|
| public CustomizedFieldsTab(String name, List<String> fieldPatterns) A tab with no extracted patterns (the default for newly configured fields). | |
| appearsOnMainTab | back to summary |
|---|---|
| public static boolean appearsOnMainTab(String fieldPattern) Whether the "Extract field" choice applies to the pattern: only a plain name of a known field is a field the Main tab shows on its own. A regex pattern or an unknown field name is always extracted — the custom tab is the only place curating such fields — so the preferences UI shows its checkbox checked and disabled. Checked against the catalog of all registered fields, not via a type-less
| |
| compiledRegex | back to summary |
|---|---|
| private static Optional Regex patterns are resolved on every Main-tab and custom-tab rebuild, so the compiled form is cached (the cache stays small: it only ever holds the user's configured patterns). | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| extractedFieldPatterns | back to summary |
|---|---|
| public Set Record Component getter of extractedFieldPatterns. | |
| fieldPatterns | back to summary |
|---|---|
| public List Record Component getter of fieldPatterns. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| isVisible | back to summary |
|---|---|
| public boolean isVisible() Implements org.
| |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name. | |
| resolve | back to summary |
|---|---|
| private SequencedSet | |
| resolveExtractedFields | back to summary |
|---|---|
| public SequencedSet Resolves only the extracted patterns — the fields the Main tab must no longer show. | |
| resolveFields | back to summary |
|---|---|
| public SequencedSet Resolves | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| withVisible | back to summary |
|---|---|
| public EntryEditorTabModel withVisible(boolean visible) Implements org.
| |