Verified Owner
Top Constructors Methods
org.jabref.gui.collab.groupchange

public final Class GroupChangeDetailsView

extends DatabaseChangeDetailsView
Class Inheritance
Annotations
@NullMarked
Imports
java.util.Optional, javafx.geometry.Orientation, javafx.scene.control.Label, .ScrollPane, .SplitPane, javafx.scene.layout.Priority, .VBox, org.jabref.gui.collab.DatabaseChangeDetailsView, org.jabref.gui.mergeentries.threewaymerge.diffhighlighter.DiffHighlighter, .SplitDiffHighlighter, org.jabref.gui.theme.StyleClasses, org.jabref.logic.l10n.Localization, org.jabref.model.groups.GroupTreeNode, org.fxmisc.richtext.StyleClassedTextArea, org.jspecify.annotations.NullMarked

Constructor Summary

AccessConstructor and Description
public
public
GroupChangeDetailsView(GroupChange groupChange, String labelValue, String leftLabelText, String rightLabelText, DiffHighlighter.BasicDiffMethod diffMethod)

Method Summary

Modifier and TypeMethod and Description
private static void
appendGroupTreeNode(GroupTreeNode
The current node to append
node
,
StringBuilder
The string builder to append to
builder
,
int
The current depth level in the tree (for indentation)
level
)

Recursively appends a group tree node to the string builder.

private static String

Returns:

String representation of the group tree
convertGroupTreeToString
(GroupTreeNode
The root node of the group tree
node
)

Converts a group tree to a string representation with indentation.

private static StyleClassedTextArea

Returns:

Configured StyleClassedTextArea
createConfiguredTextArea
()

Creates a configured text area for displaying diff content.

public static SplitPane

Returns:

Configured SplitPane showing groups differences
createGroupDiffSplitPane
(Optional<GroupTreeNode> originalGroups, Optional<GroupTreeNode> newGroups, String leftLabelText, String rightLabelText, DiffHighlighter.BasicDiffMethod diffMethod)

Creates a split pane showing differences in groups tree structure.

private static ScrollPane

Returns:

Configured ScrollPane
createScrollPane
(StyleClassedTextArea
The text area to wrap in a scroll pane
textArea
)

Creates a configured scroll pane for a text area.

Inherited from org.jabref.gui.collab.DatabaseChangeDetailsView:
setAllAnchorsAndAttachChild

Constructor Detail

GroupChangeDetailsViewback to summary
public GroupChangeDetailsView(GroupChange groupChange)
GroupChangeDetailsViewback to summary
public GroupChangeDetailsView(GroupChange groupChange, String labelValue, String leftLabelText, String rightLabelText, DiffHighlighter.BasicDiffMethod diffMethod)

Method Detail

appendGroupTreeNodeback to summary
private static void appendGroupTreeNode(GroupTreeNode node, StringBuilder builder, int level)

Recursively appends a group tree node to the string builder.

Parameters
node:GroupTreeNode

The current node to append

builder:StringBuilder

The string builder to append to

level:int

The current depth level in the tree (for indentation)

convertGroupTreeToStringback to summary
private static String convertGroupTreeToString(GroupTreeNode node)

Converts a group tree to a string representation with indentation.

Parameters
node:GroupTreeNode

The root node of the group tree

Returns:String

String representation of the group tree

createConfiguredTextAreaback to summary
private static StyleClassedTextArea createConfiguredTextArea()

Creates a configured text area for displaying diff content.

Returns:StyleClassedTextArea

Configured StyleClassedTextArea

createGroupDiffSplitPaneback to summary
public static SplitPane createGroupDiffSplitPane(Optional<GroupTreeNode> originalGroups, Optional<GroupTreeNode> newGroups, String leftLabelText, String rightLabelText, DiffHighlighter.BasicDiffMethod diffMethod)

Creates a split pane showing differences in groups tree structure.

Returns:SplitPane

Configured SplitPane showing groups differences

createScrollPaneback to summary
private static ScrollPane createScrollPane(StyleClassedTextArea textArea)

Creates a configured scroll pane for a text area.

Parameters
textArea:StyleClassedTextArea

The text area to wrap in a scroll pane

Returns:ScrollPane

Configured ScrollPane