Interface RowPaddingStrategy
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines a strategy for padding each row in the grid.
Note that by default the strategy has no access to the data in the grid.
- Since:
- 2020-12-15
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptiongetRowPadding(int rowNumber, int gridColumns, int itemsLeft) Calculates padding for a given row.
-
Method Details
-
getRowPadding
Calculates padding for a given row.- Parameters:
rowNumber- Number of the row for which the padding is done (zero-based).gridColumns- Number of columns (passed from item grid).itemsLeft- Number of items left in the grid (includes items in the current row).- Returns:
- Information about padding. To avoid endless loops, item grid will check if padding is at least 1 less than grid's column count.
-