- 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 void
setConverter
(Function<E, String> converter) Allows to easily set aStringConverter
for the cell by just giving aFunction
as parameter, makes use ofFunctionalStringConverter.to(Function)
.void
setConverter
(StringConverter<E> converter) Sets theStringConverter
used to convert an extracted value E to a stringvoid
setExtractor
(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, updateItem
Methods 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
StringConverter
used to convert an extracted value E to a string
-
setConverter
Sets theStringConverter
used to convert an extracted value E to a string -
setConverter
Allows to easily set aStringConverter
for the cell by just giving aFunction
as parameter, makes use ofFunctionalStringConverter.to(Function)
.
-