Package io.jmix.flowui.data.grid
Class EmptyDataGridItems<T>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,Void>
io.jmix.flowui.data.grid.EmptyDataGridItems<T>
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataProvider<T,
,Void> DataUnit
,EmptyDataUnit
,EntityDataUnit
,DataGridItems<T>
,DataGridItems.Sortable<T>
,EntityDataGridItems<T>
,HasType<T>
,Serializable
- Direct Known Subclasses:
EmptyTreeDataGridItems
public class EmptyDataGridItems<T>
extends com.vaadin.flow.data.provider.AbstractDataProvider<T,Void>
implements EntityDataGridItems<T>, DataGridItems.Sortable<T>, EmptyDataUnit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.data.grid.DataGridItems
DataGridItems.ItemSetChangeEvent<T>, DataGridItems.SelectedItemChangeEvent<T>, DataGridItems.Sortable<T>, DataGridItems.ValueChangeEvent<T>
Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEvent
-
Constructor Summary
-
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 state change listener.com.vaadin.flow.shared.Registration
Registers a new value change listener.boolean
containsItem
(T item) getState()
getType()
boolean
void
void
setSelectedItem
(T item) Set current item in the source.int
void
Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem, refreshItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.data.grid.DataGridItems.Sortable
enableSorting, suppressSorting
Methods inherited from interface com.vaadin.flow.data.provider.DataProvider
getId, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
-
Constructor Details
-
EmptyDataGridItems
-
-
Method Details
-
isInMemory
public boolean isInMemory() -
size
-
fetch
-
getState
-
addStateChangeListener
public com.vaadin.flow.shared.Registration addStateChangeListener(Consumer<DataUnit.StateChangeEvent> listener) Description copied from interface:DataUnit
Registers a new state change listener.- Specified by:
addStateChangeListener
in interfaceDataUnit
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
getEntityMetaClass
- Specified by:
getEntityMetaClass
in interfaceEntityDataUnit
- Returns:
MetaClass
of an entity contained in the source
-
getType
-
getSelectedItem
- Specified by:
getSelectedItem
in interfaceDataGridItems<T>
- Returns:
- the current item contained in the source
-
setSelectedItem
Description copied from interface:DataGridItems
Set current item in the source.- Specified by:
setSelectedItem
in interfaceDataGridItems<T>
- Parameters:
item
- the item to set
-
addValueChangeListener
public com.vaadin.flow.shared.Registration addValueChangeListener(Consumer<DataGridItems.ValueChangeEvent<T>> listener) Description copied from interface:DataGridItems
Registers a new value change listener.- Specified by:
addValueChangeListener
in interfaceDataGridItems<T>
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addItemSetChangeListener
public com.vaadin.flow.shared.Registration addItemSetChangeListener(Consumer<DataGridItems.ItemSetChangeEvent<T>> listener) Description copied from interface:DataGridItems
Registers a new item set change listener.- Specified by:
addItemSetChangeListener
in interfaceDataGridItems<T>
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addSelectedItemChangeListener
public com.vaadin.flow.shared.Registration addSelectedItemChangeListener(Consumer<DataGridItems.SelectedItemChangeEvent<T>> listener) Description copied from interface:DataGridItems
Registers a new selected item change listener.- Specified by:
addSelectedItemChangeListener
in interfaceDataGridItems<T>
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
containsItem
- Specified by:
containsItem
in interfaceDataGridItems<T>
- Parameters:
item
- an item to check- Returns:
true
if the underlying collection contains an item,false
otherwise
-
sort
- Specified by:
sort
in interfaceDataGridItems.Sortable<T>
-
resetSortOrder
public void resetSortOrder()- Specified by:
resetSortOrder
in interfaceDataGridItems.Sortable<T>
-