Verified Owner
Top Methods
org.jabref.gui

public Interface LibraryTabContainer

Known Direct Implementers
org.jabref.gui.frame.JabRefFrame
Annotations
@NullMarked
Imports
java.util.List, javafx.collections.ObservableList, org.jabref.model.database.BibDatabaseContext, org.jspecify.annotations.NullMarked, .Nullable

Method Summary

Modifier and TypeMethod and Description
public void
addTab(BibDatabaseContext bibDatabaseContext, boolean raisePanel)

public void
addTab(LibraryTab libraryTab, boolean raisePanel)

public boolean

Returns:

true if closing the tab was successful
closeTab
(@Nullable LibraryTab
to be closed.
tab
)

Closes a designated libraryTab

public boolean

Returns:

true if closing the tabs was successful
closeTabs
(List<LibraryTab>
to be closed.
tabs
,
boolean
whether to show the welcome tab if no library tab remains open afterwards (should be false when quitting the application)
showWelcomeTab
)

Closes the designated libraryTabs

public @Nullable LibraryTab
public ObservableList<LibraryTab>
public void
refresh()

Refreshes the ui after changes to the preferences

public void

Method Detail

addTabback to summary
public void addTab(BibDatabaseContext bibDatabaseContext, boolean raisePanel)
addTabback to summary
public void addTab(LibraryTab libraryTab, boolean raisePanel)
closeTabback to summary
public boolean closeTab(@Nullable LibraryTab tab)

Closes a designated libraryTab

Parameters
tab:@Nullable LibraryTab

to be closed.

Returns:boolean

true if closing the tab was successful

closeTabsback to summary
public boolean closeTabs(List<LibraryTab> tabs, boolean showWelcomeTab)

Closes the designated libraryTabs

Parameters
tabs:List<LibraryTab>

to be closed.

showWelcomeTab:boolean

whether to show the welcome tab if no library tab remains open afterwards (should be false when quitting the application)

Returns:boolean

true if closing the tabs was successful

getCurrentLibraryTabback to summary
public @Nullable LibraryTab getCurrentLibraryTab()
getLibraryTabsback to summary
public ObservableList<LibraryTab> getLibraryTabs()
refreshback to summary
public void refresh()

Refreshes the ui after changes to the preferences

showLibraryTabback to summary
public void showLibraryTab(LibraryTab libraryTab)