- Type Parameters:
T- the type of items in the tableE- the type of value extracted by the cell from an item of type T
- All Known Implementing Classes:
SimpleTableCell,UpdatingTableCell
Whilst
TableCell defines the basic API for cells used by VirtualTable,
this is probably the most useful type of cell.
This extension specifies additional APIs to extract a certain value E from the table's items
of type T (each column represents a certain value E of a given item T), as well as a way to
convert the extracted values E to a string.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsetConverter(Function<E, String> converter) Allows to easily set aStringConverterfor the cell by just giving aFunctionas parameter, makes use ofFunctionalStringConverter.to(Function).voidsetConverter(StringConverter<E> converter) Sets theStringConverterused to convert an extracted value E to a stringvoidsetExtractor(Function<T, E> extractor) Sets the function used to extract a property E from an item TMethods inherited from interface io.github.palexdev.virtualizedfx.cell.Cell
afterLayout, beforeLayout, dispose, getNode, updateIndex, updateItemMethods inherited from interface io.github.palexdev.virtualizedfx.cell.TableCell
invalidate, updateColumn, updateRow
-
Method Details
-
getExtractor
- Returns:
- the function used to extract a property E from an item T
-
setExtractor
Sets the function used to extract a property E from an item T -
getConverter
StringConverter<E> getConverter()- Returns:
- the
StringConverterused to convert an extracted value E to a string
-
setConverter
Sets theStringConverterused to convert an extracted value E to a string -
setConverter
Allows to easily set aStringConverterfor the cell by just giving aFunctionas parameter, makes use ofFunctionalStringConverter.to(Function).
-