EntryEditorTabModel.CustomizedFieldsTab
(configured in the entry editor preferences).
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | entryTypeChangeQueued
Set when a coalesced burst contains an entry-type change, which forces a rebuild (see |
| private final BooleanProperty | hasResolvedFields
Replaces the base class's content-driven visibility: a regex pattern's matches change when fields are set or cleared on the same entry (e.g. from the Main or Source tab), which the base class's entry-switch-only evaluation would miss. |
| private final EntryEditorTabModel. | |
| private final AtomicBoolean | refreshQueued
Set while a refresh is queued on the FX thread (events may arrive from background threads, e.g. fetchers), so bursts of field changes coalesce into one refresh instead of one each. |
| private Optional | subscribedEntry
The entry whose event bus this tab is subscribed to, for live refresh of regex-captured fields. |
| Access | Constructor and Description |
|---|---|
| public | UserDefinedFieldsTab(EntryEditorTabModel.
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected SequencedSet | determineFieldsToShow(BibEntry entry)
Implements abstract org.
|
| protected void | dispose()
Overrides org. Releases listeners owned by this tab before it is discarded. |
| public void | listen(FieldChangedEvent event)
Refreshes the tab when a field is set or cleared from outside (Main tab, Source tab, fetchers, undo, …), since that can change which fields a regex pattern captures. |
| entryTypeChangeQueued | back to summary |
|---|---|
| private final AtomicBoolean entryTypeChangeQueued Set when a coalesced burst contains an entry-type change, which forces a rebuild (see | |
| hasResolvedFields | back to summary |
|---|---|
| private final BooleanProperty hasResolvedFields Replaces the base class's content-driven visibility: a regex pattern's matches change when fields are set or cleared on the same entry (e.g. from the Main or Source tab), which the base class's entry-switch-only evaluation would miss. | |
| model | back to summary |
|---|---|
| private final EntryEditorTabModel. | |
| refreshQueued | back to summary |
|---|---|
| private final AtomicBoolean refreshQueued Set while a refresh is queued on the FX thread (events may arrive from background threads, e.g. fetchers), so bursts of field changes coalesce into one refresh instead of one each. | |
| subscribedEntry | back to summary |
|---|---|
| private Optional<BibEntry> subscribedEntry The entry whose event bus this tab is subscribed to, for live refresh of regex-captured fields. | |
| UserDefinedFieldsTab | back to summary |
|---|---|
| public UserDefinedFieldsTab(EntryEditorTabModel. | |
| bindToEntry | back to summary |
|---|---|
| protected void bindToEntry(BibEntry entry) Overrides org.
| |
| determineFieldsToShow | back to summary |
|---|---|
| protected SequencedSet Implements abstract org.
| |
| dispose | back to summary |
|---|---|
| protected void dispose() Overrides org. Doc from org. Releases listeners owned by this tab before it is discarded.
| |
| listen | back to summary |
|---|---|
| public void listen(FieldChangedEvent event) Refreshes the tab when a field is set or cleared from outside (Main tab, Source tab, fetchers, undo, …), since that can change which fields a regex pattern captures. Event bursts coalesce into a single deferred refresh, and the refresh reads the entry's state at callback time (the event's payload is deliberately ignored), so a queued callback can never apply stale state. Rebuilds only when the resolved field set actually changes (or the entry type changed), so typing inside this tab's editors never steals focus.
| |