- All Superinterfaces:
Cell<T>
Specialization of
Cell
specifically used by VirtualGrid
and subclasses.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
updateCoordinates
(int row, int column) Allows implementations to store the cell index as a pair of coordinates [row, column].default void
updateIndex
(int index) Automatically called by the virtualized control.Methods inherited from interface io.github.palexdev.virtualizedfx.cell.Cell
afterLayout, beforeLayout, dispose, getNode, updateItem
-
Method Details
-
updateIndex
default void updateIndex(int index) Automatically called by the virtualized control.Cells are dumb, they have no logic, no state. This method allow cells implementations to keep track of a cell's index.
Default implementation is empty.
ForGridCells
the given index is thelinear index
of the item, to use the coordinates cells should rely onupdateCoordinates(int, int)
.- Specified by:
updateIndex
in interfaceCell<T>
- See Also:
-
VirtualGrid
Grid
-
updateCoordinates
default void updateCoordinates(int row, int column) Allows implementations to store the cell index as a pair of coordinates [row, column]. This method already provides the two coordinates.
-