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

public Class ViewModelTableRowFactory<S>

extends Object
implements Callback<TableView<S>, TableRow<S>>
Class Inheritance
All Implemented Interfaces
javafx.util.Callback
Type Parameters
<S>
view model
Imports
java.util.function.BiConsumer, .Function, javafx.geometry.Bounds, .Point2D, javafx.scene.control.ContextMenu, .TableRow, .TableView, .Tooltip, .TreeTableCell, javafx.scene.input.DragEvent, .KeyCode, .KeyEvent, .MouseDragEvent, .MouseEvent, javafx.util.Callback, org.jabref.model.strings.StringUtil, org.reactfx.util.TriConsumer

Constructs a TreeTableCell based on the view model of the row and a bunch of specified converter methods.

Field Summary

Modifier and TypeField and Description
private Function<S, ContextMenu>
private BiConsumer<S, ? super MouseEvent>
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseEvent>
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent>
private BiConsumer<S, ? super DragEvent>
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent>
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent>
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseDragEvent>
private Callback<S, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TableRow<S>
call(TableView<S>
The single argument upon which the returned value should be determined.
tableView
)

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 void
install(TableView<S> table)

public ViewModelTableRowFactory<S>
setOnDragDetected(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseEvent> toOnDragDetected)

public ViewModelTableRowFactory<S>
setOnDragDetected(BiConsumer<S, ? super MouseEvent> toOnDragDetected)

public ViewModelTableRowFactory<S>
setOnDragDropped(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragDropped)

public ViewModelTableRowFactory<S>
setOnDragDropped(BiConsumer<S, ? super DragEvent> toOnDragDropped)

public ViewModelTableRowFactory<S>
setOnDragEntered(BiConsumer<S, ? super DragEvent> toOnDragEntered)

public ViewModelTableRowFactory<S>
setOnDragExited(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragExited)

public ViewModelTableRowFactory<S>
setOnDragExited(BiConsumer<S, ? super DragEvent> toOnDragExited)

public ViewModelTableRowFactory<S>
setOnDragOver(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragOver)

public ViewModelTableRowFactory<S>
setOnDragOver(BiConsumer<S, ? super DragEvent> toOnDragOver)

public ViewModelTableRowFactory<S>
setOnMouseDragEntered(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseDragEvent> toOnDragEntered)

public ViewModelTableRowFactory<S>
setOnMouseDragEntered(BiConsumer<S, ? super MouseDragEvent> toOnDragEntered)

public ViewModelTableRowFactory<S>
withContextMenu(Function<S, ContextMenu> contextMenuFactory)

public ViewModelTableRowFactory<S>
withOnMouseClickedEvent(BiConsumer<S, ? super MouseEvent> onMouseClickedEvent)

public ViewModelTableRowFactory<S>
withTooltip(Callback<S, String> toTooltip)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextMenuFactoryback to summary
private Function<S, ContextMenu> contextMenuFactory
onMouseClickedEventback to summary
private BiConsumer<S, ? super MouseEvent> onMouseClickedEvent
toOnDragDetectedback to summary
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseEvent> toOnDragDetected
toOnDragDroppedback to summary
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragDropped
toOnDragEnteredback to summary
private BiConsumer<S, ? super DragEvent> toOnDragEntered
toOnDragExitedback to summary
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragExited
toOnDragOverback to summary
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragOver
toOnMouseDragEnteredback to summary
private org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseDragEvent> toOnMouseDragEntered
toTooltipback to summary
private Callback<S, String> toTooltip

Constructor Detail

ViewModelTableRowFactoryback to summary
public ViewModelTableRowFactory()

Method Detail

callback to summary
public TableRow<S> call(TableView<S> tableView)

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.

Parameters
tableView:TableView<S>

The single argument upon which the returned value should be determined.

Returns:TableRow<S>

An object of type R that may be determined based on the provided parameter value.

Annotations
@Override
installback to summary
public void install(TableView<S> table)
setOnDragDetectedback to summary
public ViewModelTableRowFactory<S> setOnDragDetected(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseEvent> toOnDragDetected)
setOnDragDetectedback to summary
public ViewModelTableRowFactory<S> setOnDragDetected(BiConsumer<S, ? super MouseEvent> toOnDragDetected)
setOnDragDroppedback to summary
public ViewModelTableRowFactory<S> setOnDragDropped(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragDropped)
setOnDragDroppedback to summary
public ViewModelTableRowFactory<S> setOnDragDropped(BiConsumer<S, ? super DragEvent> toOnDragDropped)
setOnDragEnteredback to summary
public ViewModelTableRowFactory<S> setOnDragEntered(BiConsumer<S, ? super DragEvent> toOnDragEntered)
setOnDragExitedback to summary
public ViewModelTableRowFactory<S> setOnDragExited(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragExited)
setOnDragExitedback to summary
public ViewModelTableRowFactory<S> setOnDragExited(BiConsumer<S, ? super DragEvent> toOnDragExited)
setOnDragOverback to summary
public ViewModelTableRowFactory<S> setOnDragOver(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragOver)
setOnDragOverback to summary
public ViewModelTableRowFactory<S> setOnDragOver(BiConsumer<S, ? super DragEvent> toOnDragOver)
setOnMouseDragEnteredback to summary
public ViewModelTableRowFactory<S> setOnMouseDragEntered(org.reactfx.util.TriConsumer<TableRow<S>, S, ? super MouseDragEvent> toOnDragEntered)
setOnMouseDragEnteredback to summary
public ViewModelTableRowFactory<S> setOnMouseDragEntered(BiConsumer<S, ? super MouseDragEvent> toOnDragEntered)
withContextMenuback to summary
public ViewModelTableRowFactory<S> withContextMenu(Function<S, ContextMenu> contextMenuFactory)
withOnMouseClickedEventback to summary
public ViewModelTableRowFactory<S> withOnMouseClickedEvent(BiConsumer<S, ? super MouseEvent> onMouseClickedEvent)
withTooltipback to summary
public ViewModelTableRowFactory<S> withTooltip(Callback<S, String> toTooltip)