Verified Owner
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.HashMap, .Map, java.util.function.BiConsumer, .Function, javafx.beans.value.ObservableValue, javafx.css.PseudoClass, javafx.geometry.Bounds, .Point2D, javafx.scene.control.ContextMenu, .TableRow, .TableView, .Tooltip, javafx.scene.input.DragEvent, .KeyCode, .KeyEvent, .MouseDragEvent, .MouseEvent, javafx.util.Callback, org.jabref.logic.util.strings.StringUtil, org.reactfx.util.TriConsumer

Constructs a javafx.scene.control.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 final Map<PseudoClass, Callback<S, ObservableValue<Boolean>>>
private TriConsumer<TableRow<S>, S, ? super MouseEvent>
private TriConsumer<TableRow<S>, S, ? super DragEvent>
private BiConsumer<S, ? super DragEvent>
private TriConsumer<TableRow<S>, S, ? super DragEvent>
private TriConsumer<TableRow<S>, S, ? super DragEvent>
private 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> 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(TriConsumer<TableRow<S>, S, ? super MouseEvent> toOnDragDetected)

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

public ViewModelTableRowFactory<S>
setOnDragDropped(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(TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragExited)

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

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

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

public ViewModelTableRowFactory<S>
setOnMouseDragEntered(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>
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
pseudoClassesback to summary
private final Map<PseudoClass, Callback<S, ObservableValue<Boolean>>> pseudoClasses
toOnDragDetectedback to summary
private TriConsumer<TableRow<S>, S, ? super MouseEvent> toOnDragDetected
toOnDragDroppedback to summary
private TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragDropped
toOnDragEnteredback to summary
private BiConsumer<S, ? super DragEvent> toOnDragEntered
toOnDragExitedback to summary
private TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragExited
toOnDragOverback to summary
private TriConsumer<TableRow<S>, S, ? super DragEvent> toOnDragOver
toOnMouseDragEnteredback to summary
private 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.

Annotations
@Override
installback to summary
public void install(TableView<S> table)
setOnDragDetectedback to summary
public ViewModelTableRowFactory<S> setOnDragDetected(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(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(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(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(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)
withPseudoClassback to summary
public ViewModelTableRowFactory<S> withPseudoClass(PseudoClass pseudoClass, Callback<S, ObservableValue<Boolean>> toCondition)
withTooltipback to summary
public ViewModelTableRowFactory<S> withTooltip(Callback<S, String> toTooltip)