public static <T> Callback<ListView<T>, ListCell<T>> forListView (Callback<T, ObservableValue<Boolean>> getSelectedProperty)

Creates a cell factory for use in ListView controls. When used in a ListView, the CheckBoxListCell is rendered with a CheckBox on the left-hand side of the ListView, with the text related to the list item taking up all remaining horizontal space.

Parameters:
<T>    The type of the elements contained within the ListView.
getSelectedProperty    A Callback that, given an object of type T (which is a value taken out of the ListView<T>.items list), will return an ObservableValue<Boolean> that represents whether the given item is selected or not. This ObservableValue will be bound bidirectionally (meaning that the CheckBox in the cell will set/unset this property based on user interactions, and the CheckBox will reflect the state of the ObservableValue, if it changes externally).

Returns:  A Callback that will return a ListCell that is able to work on the type of element contained within the ListView items list.