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

public abstract Class EntryEditorTab

extends Tab
Class Inheritance
Known Direct Subclasses
org.jabref.gui.entryeditor.LatexCitationsTab, org.jabref.gui.entryeditor.RelatedArticlesTab, org.jabref.gui.entryeditor.SourceTab, org.jabref.gui.entryeditor.TabWithPreviewPanel, org.jabref.gui.entryeditor.citationrelationtab.CitationRelationsTab, org.jabref.gui.entryeditor.fileannotationtab.FileAnnotationTab, org.jabref.gui.entryeditor.fileannotationtab.FulltextSearchResultsTab, org.jabref.gui.entryeditor.AiChatTab, org.jabref.gui.entryeditor.AiSummaryTab
Imports
javafx.beans.property.ObjectProperty, .SimpleBooleanProperty, .SimpleObjectProperty, javafx.beans.value.ObservableValue, javafx.scene.control.Tab, org.jabref.model.entry.BibEntry, org.jabref.model.entry.types.EntryType, com.tobiasdiez.easybind.EasyBind, org.jspecify.annotations.Nullable, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final ObservableValue<Boolean>
private @Nullable ObservableValue<Boolean>
private ObservableValue<Boolean>
contentDrivenVisibility

Content-driven visibility gate for tabs that only make sense for certain entries.

private final ObjectProperty<@Nullable BibEntry>
currentEntry

The entry currently being edited in the editor.

private static final Logger
private ObservableValue<Boolean>
preferenceDrivenVisibility

User-controlled visibility gate, injected by EntryEditorTabFactory.

private @Nullable BibEntry
renderedEntry

The entry (and its type) the tab content was last rendered for.

private @Nullable EntryType
Inherited from javafx.scene.control.Tab:
CLOSED_EVENTSELECTION_CHANGED_EVENTTAB_CLOSE_REQUEST_EVENT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
public ObjectProperty<@Nullable BibEntry>
protected void
dispose()

Releases listeners owned by this tab before it is discarded.

public @Nullable BibEntry
protected void
handleFocus()

Override to perform a special action on focus (like selecting the first field in the editor).

public void
protected void
public void
public final ObservableValue<Boolean>
Inherited from javafx.scene.control.Tab:
addEventFilteraddEventHandlerbuildEventDispatchChainclosablePropertycontentPropertycontextMenuPropertydisabledPropertydisablePropertygetClassCssMetaDatagetContentgetContextMenugetCssMetaDatagetGraphicgetIdgetOnClosedgetOnCloseRequestgetOnSelectionChangedgetPropertiesgetPseudoClassStatesgetStylegetStyleableParentgetStyleClassgetTabPanegetTextgetTooltipgetTypeSelectorgetUserDatagraphicPropertyhasPropertiesidPropertyisClosableisDisableisDisabledisSelectedonClosedPropertyonCloseRequestPropertyonSelectionChangedPropertyremoveEventFilterremoveEventHandlerselectedPropertysetClosablesetContentsetContextMenusetDisablesetGraphicsetIdsetOnClosedsetOnCloseRequestsetOnSelectionChangedsetStylesetTextsetTooltipsetUserDatastylePropertytabPanePropertytextPropertytooltipProperty

Field Detail

ALWAYS_VISIBLEback to summary
private static final ObservableValue<Boolean> ALWAYS_VISIBLE
combinedVisibilityback to summary
private @Nullable ObservableValue<Boolean> combinedVisibility

Lazily built combination of preferenceDrivenVisibility and contentDrivenVisibility.

contentDrivenVisibilityback to summary
private ObservableValue<Boolean> contentDrivenVisibility

Content-driven visibility gate for tabs that only make sense for certain entries.

currentEntryback to summary
private final ObjectProperty<@Nullable BibEntry> currentEntry

The entry currently being edited in the editor. Bound by EntryEditorViewModel.

LOGGERback to summary
private static final Logger LOGGER
preferenceDrivenVisibilityback to summary
private ObservableValue<Boolean> preferenceDrivenVisibility

User-controlled visibility gate, injected by EntryEditorTabFactory.

renderedEntryback to summary
private @Nullable BibEntry renderedEntry

The entry (and its type) the tab content was last rendered for. Tab is lazily rebuild in notifyAboutFocus(BibEntry).

renderedEntryTypeback to summary
private @Nullable EntryType renderedEntryType

Constructor Detail

EntryEditorTabback to summary
public EntryEditorTab()

Method Detail

bindToEntryback to summary
protected abstract void bindToEntry(BibEntry entry)
currentEntryPropertyback to summary
public ObjectProperty<@Nullable BibEntry> currentEntryProperty()
disposeback to summary
protected void dispose()

Releases listeners owned by this tab before it is discarded.

getCurrentEntryback to summary
public @Nullable BibEntry getCurrentEntry()
handleFocusback to summary
protected void handleFocus()

Override to perform a special action on focus (like selecting the first field in the editor).

notifyAboutFocusback to summary
public void notifyAboutFocus(BibEntry entry)
setContentDrivenVisibilityback to summary
protected void setContentDrivenVisibility(ObservableValue<Boolean> contentDrivenVisibility)
setPreferenceDrivenVisibilityback to summary
public void setPreferenceDrivenVisibility(ObservableValue<Boolean> preferenceDrivenVisibility)
visibilityback to summary
public final ObservableValue<Boolean> visibility()