Package sk.iway.iwcm.system.datatable
Class RowReorderDto
java.lang.Object
sk.iway.iwcm.system.datatable.RowReorderDto
DTO for row reordering in DataTables.
Used to update entity positions when user drags and drops rows in the table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class representing a single row reorder operation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName of the column that stores the order valuegetIds()Get list of entity IDs from the valuesgetNewValueById(Long id) Get the new order value for specific entity IDList of row reorder values containing entity IDs and their old/new valuesvoidsetDataSrc(String dataSrc) Name of the column that stores the order valuevoidsetValues(List<RowReorderDto.RowReorderValue> values) List of row reorder values containing entity IDs and their old/new values
-
Constructor Details
-
RowReorderDto
public RowReorderDto()
-
-
Method Details
-
getIds
Get list of entity IDs from the values- Returns:
- list of entity IDs
-
getNewValueById
Get the new order value for specific entity ID- Parameters:
id- entity ID- Returns:
- new order value or null if not found
-
getDataSrc
Name of the column that stores the order value -
getValues
List of row reorder values containing entity IDs and their old/new values -
setDataSrc
Name of the column that stores the order value -
setValues
List of row reorder values containing entity IDs and their old/new values
-