Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.util.component

public Class SimpleListView<T>

extends HBox
Class Inheritance
Imports
java.util.function.Function, javafx.beans.property.ListProperty, .ObjectProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.scene.Node, javafx.scene.layout.HBox

A list view that is implemented using a combobox with customizable items.

An equivalent to this component would be to use an HBox with javafx.beans.binding.Bindings#bindContent, but unfortunately, that does not work well and makes duplicate nodes.

Field Summary

Modifier and TypeField and Description
private final ListProperty<T>
private final ObjectProperty<Function<T, Node>>

Constructor Summary

AccessConstructor and Description
public
public
SimpleListView(int spacing)

Method Summary

Modifier and TypeMethod and Description
public Function<T, Node>
public ListProperty<T>
public ObjectProperty<Function<T, Node>>
public void
setRenderer(Function<T, Node> renderer)

Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

itemsPropertyback to summary
private final ListProperty<T> itemsProperty
rendererPropertyback to summary
private final ObjectProperty<Function<T, Node>> rendererProperty

Constructor Detail

SimpleListViewback to summary
public SimpleListView()
SimpleListViewback to summary
public SimpleListView(int spacing)

Method Detail

getRendererback to summary
public Function<T, Node> getRenderer()
itemsPropertyback to summary
public ListProperty<T> itemsProperty()
rendererPropertyback to summary
public ObjectProperty<Function<T, Node>> rendererProperty()
setRendererback to summary
public void setRenderer(Function<T, Node> renderer)