Module MaterialFX
Interface IListView<T,C extends io.github.palexdev.virtualizedfx.cell.Cell<T>>
- Type Parameters:
T- the type of data within the ListViewC- the type of cells that will be used
- All Known Implementing Classes:
AbstractMFXListView,MFXCheckListView,MFXListView
public interface IListView<T,C extends io.github.palexdev.virtualizedfx.cell.Cell<T>>
Interface that defines the public API for all the listviews based on VirtualizedFX.
-
Property Summary
PropertiesTypePropertyDescriptionSpecifies theStringConverterused to convert a generic item to a String.The items list property. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies theStringConverterused to convert a generic item to a String.Gets the value of theconverterproperty.getItems()The items list property.voidsetCellFactory(Function<T, C> cellFactory) Replaces the cell factory with the given onevoidsetConverter(StringConverter<T> converter) Sets the value of theconverterproperty.voidsetItems(ObservableList<T> items) Replaces the items list with the given one.
-
Property Details
-
items
ObjectProperty<ObservableList<T>> itemsPropertyThe items list property. -
converter
ObjectProperty<StringConverter<T>> converterPropertySpecifies theStringConverterused to convert a generic item to a String. It is used by the list cells. -
cellFactory
ObjectProperty<Function<T,C extends io.github.palexdev.virtualizedfx.cell.Cell<T>>> cellFactoryProperty
-
-
Method Details
-
getItems
ObservableList<T> getItems()- Returns:
- the items observable list
-
itemsProperty
ObjectProperty<ObservableList<T>> itemsProperty()The items list property.- Returns:
- the
itemsproperty - See Also:
-
setItems
Replaces the items list with the given one. -
getConverter
StringConverter<T> getConverter()Gets the value of theconverterproperty.- Property description:
- Specifies the
StringConverterused to convert a generic item to a String. It is used by the list cells. - Returns:
- the value of the
converterproperty - See Also:
-
converterProperty
ObjectProperty<StringConverter<T>> converterProperty()Specifies theStringConverterused to convert a generic item to a String. It is used by the list cells.- Returns:
- the
converterproperty - See Also:
-
setConverter
Sets the value of theconverterproperty.- Property description:
- Specifies the
StringConverterused to convert a generic item to a String. It is used by the list cells. - Parameters:
converter- the value for theconverterproperty- See Also:
-
getCellFactory
- Returns:
- the function used to build the list cells
-
cellFactoryProperty
ObjectProperty<Function<T,C>> cellFactoryProperty()- Returns:
- the cell factory property
- See Also:
-
setCellFactory
Replaces the cell factory with the given one -
getSelectionModel
IMultipleSelectionModel<T> getSelectionModel()- Returns:
- the listview selection model
-