public class SearchResultsDialog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
SearchResultsDialog.EntryTableFormat
TableFormat for the table shown in the dialog.
|
Modifier and Type | Field and Description |
---|---|
protected UIFSplitPane |
contentPane |
protected int |
FILE_COL |
protected int |
PAD |
protected java.awt.Rectangle |
toRect |
protected int |
URL_COL |
Constructor and Description |
---|
SearchResultsDialog(JabRefFrame frame,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
void |
addEntries(java.util.List<BibtexEntry> newEntries,
BasePanel panel)
Add a list of entries to the table.
|
void |
addEntry(BibtexEntry entry,
BasePanel panel)
Add a single entry to the table.
|
void |
clear()
Remove all entries from the table.
|
void |
selectFirstEntry() |
protected void |
setupComparatorChooser(<any> comparatorChooser)
Set up the comparators for each column, so the user can modify sort order
by clicking the column labels.
|
void |
setVisible(boolean visible)
Control the visibility of the dialog.
|
protected void |
setWidths()
Set column widths according to which field is shown, and lock icon columns
to a suitable width.
|
protected final int FILE_COL
protected final int URL_COL
protected final int PAD
protected java.awt.Rectangle toRect
protected UIFSplitPane contentPane
public SearchResultsDialog(JabRefFrame frame, java.lang.String title)
public void setVisible(boolean visible)
visible
- true to show dialog, false to hide.public void selectFirstEntry()
public void clear()
protected void setupComparatorChooser(<any> comparatorChooser)
comparatorChooser
- The comparator chooser controlling the sort order.protected void setWidths()
public void addEntries(java.util.List<BibtexEntry> newEntries, BasePanel panel)
newEntries
- The list of entries.panel
- A reference to the BasePanel where the entries belong.public void addEntry(BibtexEntry entry, BasePanel panel)
entry
- The entry to add.panel
- A reference to the BasePanel where the entry belongs.