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

public Class ViewModelTreeCellFactory<T>

extends Object
implements Callback<TreeView<T>, TreeCell<T>>
Class Inheritance
All Implemented Interfaces
javafx.util.Callback
Type Parameters
<T>
cell value
Imports
javafx.beans.value.ObservableValue, javafx.event.EventHandler, javafx.scene.Node, javafx.scene.control.CheckBoxTreeItem, .TreeCell, .TreeItem, .TreeView, javafx.scene.control.cell.CheckBoxTreeCell, javafx.scene.input.MouseEvent, javafx.util.Callback, .StringConverter, org.jabref.gui.icon.JabRefIcon

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 Callback<T, Node>
private Callback<T, EventHandler<? super MouseEvent>>
private Callback<T, String>
private Callback<T, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TreeCell<T>
call(TreeView<T> tree)

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(TreeView<T> treeView)

public ViewModelTreeCellFactory<T>
withGraphic(Callback<T, Node> toGraphic)

public ViewModelTreeCellFactory<T>
public ViewModelTreeCellFactory<T>
withOnMouseClickedEvent(Callback<T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent)

public ViewModelTreeCellFactory<T>
withText(Callback<T, String> toText)

public ViewModelTreeCellFactory<T>
withTooltip(Callback<T, String> toTooltip)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

toGraphicback to summary
private Callback<T, Node> toGraphic
toOnMouseClickedEventback to summary
private Callback<T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent
toTextback to summary
private Callback<T, String> toText
toTooltipback to summary
private Callback<T, String> toTooltip

Constructor Detail

ViewModelTreeCellFactoryback to summary
public ViewModelTreeCellFactory()

Method Detail

callback to summary
public TreeCell<T> call(TreeView<T> tree)

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(TreeView<T> treeView)
withGraphicback to summary
public ViewModelTreeCellFactory<T> withGraphic(Callback<T, Node> toGraphic)
withIconback to summary
public ViewModelTreeCellFactory<T> withIcon(Callback<T, JabRefIcon> toIcon)
withOnMouseClickedEventback to summary
public ViewModelTreeCellFactory<T> withOnMouseClickedEvent(Callback<T, EventHandler<? super MouseEvent>> toOnMouseClickedEvent)
withTextback to summary
public ViewModelTreeCellFactory<T> withText(Callback<T, String> toText)
withTooltipback to summary
public ViewModelTreeCellFactory<T> withTooltip(Callback<T, String> toTooltip)