Top Description Fields Constructors Methods
org.jabref.gui.util

public Class OptionalValueTableCellFactory<S, T>

extends ValueTableCellFactory<S, Optional<T>>
Class Inheritance
Type Parameters
<S>
view model of table row
<T>
cell value
Imports
java.util.Optional, java.util.function.BiFunction, javafx.scene.Node, javafx.scene.control.TableCell

Constructs a TableCell based on an optional value of the cell and a bunch of specified converter methods.

Field Summary

Modifier and TypeField and Description
private Node
private BiFunction<S, T, Node>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public OptionalValueTableCellFactory<S, T>
withDefaultGraphic(Node defaultGraphic)

public OptionalValueTableCellFactory<S, T>
withGraphicIfPresent(BiFunction<S, T, Node> toGraphicIfPresent)

Inherited from org.jabref.gui.util.ValueTableCellFactory:
callgraphicTooltipinstallwithContextMenuwithDisableExpressionwithGraphicwithGraphicwithMenuwithOnMouseClickedEventwithOnMouseClickedEventwithTextwithTooltipwithTooltipwithVisibleExpression

Field Detail

defaultGraphicback to summary
private Node defaultGraphic
toGraphicIfPresentback to summary
private BiFunction<S, T, Node> toGraphicIfPresent

Constructor Detail

OptionalValueTableCellFactoryback to summary
public OptionalValueTableCellFactory()

Method Detail

setToGraphicback to summary
private void setToGraphic()
withDefaultGraphicback to summary
public OptionalValueTableCellFactory<S, T> withDefaultGraphic(Node defaultGraphic)
withGraphicIfPresentback to summary
public OptionalValueTableCellFactory<S, T> withGraphicIfPresent(BiFunction<S, T, Node> toGraphicIfPresent)