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

public Class BibEntryView

extends Object
Class Inheritance
Imports
java.util.EnumSet, javafx.scene.Node, javafx.scene.control.Label, .ScrollPane, javafx.scene.layout.HBox, .VBox, javafx.scene.text.Text, org.jabref.gui.icon.IconTheme, org.jabref.gui.util.TextFlowLimited, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.model.entry.types.EntryType, .StandardEntryType

Class to unify the display method of BibEntries in ListViews.

Field Summary

Modifier and TypeField and Description
public static final EnumSet<StandardEntryType>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Node

Returns:

Node with either:
  • ScrollPane (for RTL text)
  • Wrapped Label (for LTR text)
createLabel
(String
The label text content
text
)

Creates a label with horizontal scrolling for RTL text, avoiding JavaFX bug related to RTL text wrapping

private static Node

Returns:

Node with either:
  • ScrollPane (for RTL text)
  • TextFlowLimited (for LTR text)
createSummary
(String
The summary text content
text
)

Creates a text node for the summary with horizontal scrolling for RTL text, avoiding JavaFX bug related to RTL text wrapping

public static Node

Returns:

layout container displaying the entry
getEntryNode
(BibEntry
BibEntry to display
entry
)

Creates a layout for a given BibEntry to be displayed in a List

private static IconTheme.JabRefIcons

Returns:

Icon corresponding to EntryType
getIcon
(EntryType
EntryType to get Icon for
type
)

Gets the correct Icon for a given EntryType

private static boolean

Returns:

true if text contains RTL characters
isRTL
(String
Text to check
text
)

Checks if text contains right-to-left characters

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CROSS_REF_TYPESback to summary
public static final EnumSet<StandardEntryType> CROSS_REF_TYPES

Constructor Detail

BibEntryViewback to summary
public BibEntryView()

Method Detail

createLabelback to summary
private static Node createLabel(String text)

Creates a label with horizontal scrolling for RTL text, avoiding JavaFX bug related to RTL text wrapping

Parameters
text:String

The label text content

Returns:Node

Node with either:

  • ScrollPane (for RTL text)
  • Wrapped Label (for LTR text)
createSummaryback to summary
private static Node createSummary(String text)

Creates a text node for the summary with horizontal scrolling for RTL text, avoiding JavaFX bug related to RTL text wrapping

Parameters
text:String

The summary text content

Returns:Node

Node with either:

  • ScrollPane (for RTL text)
  • TextFlowLimited (for LTR text)
getEntryNodeback to summary
public static Node getEntryNode(BibEntry entry)

Creates a layout for a given BibEntry to be displayed in a List

Parameters
entry:BibEntry

BibEntry to display

Returns:Node

layout container displaying the entry

getIconback to summary
private static IconTheme.JabRefIcons getIcon(EntryType type)

Gets the correct Icon for a given EntryType

Parameters
type:EntryType

EntryType to get Icon for

Returns:IconTheme.JabRefIcons

Icon corresponding to EntryType

isRTLback to summary
private static boolean isRTL(String text)

Checks if text contains right-to-left characters

Parameters
text:String

Text to check

Returns:boolean

true if text contains RTL characters