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

public Class ValueTableCellFactory<S, T>

extends Object
implements Callback<TableColumn<S, T>, TableCell<S, T>>
Class Inheritance
All Implemented Interfaces
javafx.util.Callback
Known Direct Subclasses
org.jabref.gui.util.OptionalValueTableCellFactory
Type Parameters
<S>
view model of table row
<T>
cell value
Imports
java.util.function.BiFunction, .BooleanSupplier, .Function, javafx.beans.binding.BooleanExpression, javafx.event.EventHandler, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.control.ContextMenu, .TableCell, .TableColumn, .Tooltip, javafx.scene.input.MouseButton, .MouseEvent, javafx.stage.Screen, javafx.util.Callback, org.jabref.logic.util.strings.StringUtil

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

Field Summary

Modifier and TypeField and Description
private Pos
private Function<T, ContextMenu>
private BooleanSupplier
private Function<T, BooleanExpression>
private BiFunction<S, T, Node>
private BiFunction<S, T, Tooltip>
private BiFunction<S, T, EventHandler<? super MouseEvent>>
private BiFunction<S, T, EventHandler<? super MouseEvent>>
private Function<T, String>
private BiFunction<S, T, String>
private Function<T, BooleanExpression>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TableCell<S, T>
call(TableColumn<S, T> param)

Implements javafx.util.Callback.call.

The call method is called when required, and is given a single argument of type P, with a requirement that an object of type R is returned.

public ValueTableCellFactory<S, T>
public void
install(TableColumn<S, T> column)

public ValueTableCellFactory<S, T>
public ValueTableCellFactory<S, T>
public ValueTableCellFactory<S, T>
withContextMenu(Function<T, ContextMenu> contextMenuFactory)

public ValueTableCellFactory<S, T>
public ValueTableCellFactory<S, T>
withGraphic(Function<T, Node> toGraphic)

public ValueTableCellFactory<S, T>
withGraphic(BiFunction<S, T, Node> toGraphic)

public ValueTableCellFactory<S, T>
withMenu(BiFunction<S, T, ContextMenu> menuFactory)

public ValueTableCellFactory<S, T>
withOnMouseClickedEvent(BiFunction<S, T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent)

public ValueTableCellFactory<S, T>
withOnMouseClickedEvent(Function<T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent)

public ValueTableCellFactory<S, T>
withText(Function<T, String> toText)

public ValueTableCellFactory<S, T>
withTooltip(BiFunction<S, T, String> toTooltip)

public ValueTableCellFactory<S, T>
withTooltip(Function<T, String> toTooltip)

public ValueTableCellFactory<S, T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alignmentback to summary
private Pos alignment
contextMenuFactoryback to summary
private Function<T, ContextMenu> contextMenuFactory
showTooltipRegardlessOfTruncationback to summary
private BooleanSupplier showTooltipRegardlessOfTruncation
toDisableExpressionback to summary
private Function<T, BooleanExpression> toDisableExpression
toGraphicback to summary
private BiFunction<S, T, Node> toGraphic
tooltipback to summary
private BiFunction<S, T, Tooltip> tooltip
toOnMouseClickedEventback to summary
private BiFunction<S, T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent
toOnMouseEnterEventback to summary
private BiFunction<S, T, EventHandler<? super MouseEvent>> toOnMouseEnterEvent
toTextback to summary
private Function<T, String> toText
toTooltipback to summary
private BiFunction<S, T, String> toTooltip
toVisibleExpressionback to summary
private Function<T, BooleanExpression> toVisibleExpression

Constructor Detail

ValueTableCellFactoryback to summary
public ValueTableCellFactory()

Method Detail

callback to summary
public TableCell<S, T> call(TableColumn<S, T> param)

Implements javafx.util.Callback.call.

Doc from javafx.util.Callback.call.

The call method is called when required, and is given a single argument of type P, with a requirement that an object of type R is returned.

Annotations
@Override
graphicTooltipback to summary
public ValueTableCellFactory<S, T> graphicTooltip(BiFunction<S, T, Tooltip> tooltip)
installback to summary
public void install(TableColumn<S, T> column)
showTooltipRegardlessOfTruncationback to summary
public ValueTableCellFactory<S, T> showTooltipRegardlessOfTruncation(BooleanSupplier condition)
withContentAlignmentback to summary
public ValueTableCellFactory<S, T> withContentAlignment(Pos alignment)
withContextMenuback to summary
public ValueTableCellFactory<S, T> withContextMenu(Function<T, ContextMenu> contextMenuFactory)
withDisableExpressionback to summary
public ValueTableCellFactory<S, T> withDisableExpression(Function<T, BooleanExpression> toDisableBinding)
withGraphicback to summary
public ValueTableCellFactory<S, T> withGraphic(Function<T, Node> toGraphic)
withGraphicback to summary
public ValueTableCellFactory<S, T> withGraphic(BiFunction<S, T, Node> toGraphic)
withMenuback to summary
public ValueTableCellFactory<S, T> withMenu(BiFunction<S, T, ContextMenu> menuFactory)
withOnMouseClickedEventback to summary
public ValueTableCellFactory<S, T> withOnMouseClickedEvent(BiFunction<S, T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent)
withOnMouseClickedEventback to summary
public ValueTableCellFactory<S, T> withOnMouseClickedEvent(Function<T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent)
withTextback to summary
public ValueTableCellFactory<S, T> withText(Function<T, String> toText)
withTooltipback to summary
public ValueTableCellFactory<S, T> withTooltip(BiFunction<S, T, String> toTooltip)
withTooltipback to summary
public ValueTableCellFactory<S, T> withTooltip(Function<T, String> toTooltip)
withVisibleExpressionback to summary
public ValueTableCellFactory<S, T> withVisibleExpression(Function<T, BooleanExpression> toVisibleBinding)