Package io.jmix.flowui.component
Interface ListDataComponent<T>
- Type Parameters:
T- item type
- All Known Implementing Classes:
DataGrid,Kanban,TreeDataGrid
public interface ListDataComponent<T>
A component that displays list of items.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidDeselects all selected rows.getItems()Returns a set of items corresponding to the selected rows of this component.Returns an item corresponding to the selected row of this component.booleanvoidselect(Collection<T> items) Selects the rows of this component for a given collection of items.voidSelects a row of this component for a given item.
-
Method Details
-
getSingleSelectedItem
Returns an item corresponding to the selected row of this component. If nothing is selected, the method returnsnull. If multiple selection mode is enabled, returns the first selected instance.- Returns:
- an item corresponding to the selected row of this component
-
getSelectedItems
Returns a set of items corresponding to the selected rows of this component. If nothing is selected, the method returns aCollections.emptySet().- Returns:
- a set of item instances corresponding to the selected rows of
this component, never
null
-
select
Selects a row of this component for a given item.- Parameters:
item- item instance to select the row
-
select
Selects the rows of this component for a given collection of items.- Parameters:
items- collection of items to select rows
-
deselect
-
deselectAll
void deselectAll()Deselects all selected rows. -
getItems
- Returns:
- a data unit that holds component items
-
isMultiSelect
boolean isMultiSelect()- Returns:
trueif multiple selection mode is enabled
-