Package io.jmix.flowui.data.grid
Interface DataGridItems<T>
- All Known Subinterfaces:
DataGridItems.Sortable<T>
,EntityDataGridItems<E>
,TreeDataGridItems<T>
- All Known Implementing Classes:
ContainerDataGridItems
,ContainerTreeDataGridItems
,EmptyDataGridItems
,EmptyTreeDataGridItems
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An event that is fired when item set is changed.static class
An event that is fired when selected item is changed.static interface
The DataGridItems that supports sorting.static class
An event that is fired when value of item property is changed.Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEvent
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
Registers a new item set change listener.com.vaadin.flow.shared.Registration
Registers a new selected item change listener.com.vaadin.flow.shared.Registration
Registers a new value change listener.boolean
containsItem
(T item) getItems()
void
setSelectedItem
(T item) Set current item in the source.Methods inherited from interface io.jmix.flowui.data.DataUnit
addStateChangeListener, getState
-
Method Details
-
getItems
Collection<T> getItems()- Returns:
- unmodifiable collection of items
-
getSelectedItem
- Returns:
- the current item contained in the source
-
setSelectedItem
Set current item in the source.- Parameters:
item
- the item to set
-
addValueChangeListener
com.vaadin.flow.shared.Registration addValueChangeListener(Consumer<DataGridItems.ValueChangeEvent<T>> listener) Registers a new value change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addItemSetChangeListener
com.vaadin.flow.shared.Registration addItemSetChangeListener(Consumer<DataGridItems.ItemSetChangeEvent<T>> listener) Registers a new item set change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addSelectedItemChangeListener
com.vaadin.flow.shared.Registration addSelectedItemChangeListener(Consumer<DataGridItems.SelectedItemChangeEvent<T>> listener) Registers a new selected item change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
containsItem
- Parameters:
item
- an item to check- Returns:
true
if the underlying collection contains an item,false
otherwise
-