- All Superinterfaces:
Cell<T>
Specialization of
Cell specifically used by VirtualGrid and subclasses.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidupdateCoordinates(int row, int column) Allows implementations to store the cell index as a pair of coordinates [row, column].default voidupdateIndex(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.
ForGridCellsthe given index is thelinear indexof the item, to use the coordinates cells should rely onupdateCoordinates(int, int).- Specified by:
updateIndexin interfaceCell<T>- See Also:
-
VirtualGridGrid
-
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.
-