public class EntityDataProvider extends java.lang.Object implements DataProvider
CollectionDatasource
with items.Constructor and Description |
---|
EntityDataProvider(com.haulmont.cuba.gui.data.CollectionDatasource datasource) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(DataChangeListener listener)
Adds listener to the data provider events.
|
void |
addItem(DataItem item)
Unsupported.
|
void |
addItems(java.util.Collection<DataItem> items)
Unsupported.
|
com.haulmont.cuba.gui.data.CollectionDatasource |
getDatasource() |
DataItem |
getItem(java.lang.Object id) |
java.util.List<DataItem> |
getItems() |
void |
removeAll()
Removes all items from the data provider.
|
void |
removeChangeListener(DataChangeListener listener)
Removes listener to data provider events
|
void |
removeItem(DataItem item)
Unsupported.
|
void |
updateItem(DataItem item)
Unsupported.
|
public EntityDataProvider(com.haulmont.cuba.gui.data.CollectionDatasource datasource)
public java.util.List<DataItem> getItems()
getItems
in interface DataProvider
public DataItem getItem(java.lang.Object id)
getItem
in interface DataProvider
id
- id of data itempublic void addItem(DataItem item)
UnsupportedOperationException
.
Use datasource for changing data items of EntityDataProvideraddItem
in interface DataProvider
item
- an item to be addedjava.lang.UnsupportedOperationException
- use datasource for changing data items of EntityDataProviderpublic void addItems(java.util.Collection<DataItem> items)
UnsupportedOperationException
.
Use datasource for changing data items of EntityDataProvideraddItems
in interface DataProvider
items
- a collection of data items to be addedjava.lang.UnsupportedOperationException
- use datasource for changing data items of EntityDataProviderpublic void updateItem(DataItem item)
UnsupportedOperationException
.
Use datasource for changing data items of EntityDataProviderupdateItem
in interface DataProvider
item
- an item to be updatedjava.lang.UnsupportedOperationException
- use datasource for changing data items of EntityDataProviderpublic void removeItem(DataItem item)
UnsupportedOperationException
.
Use datasource for changing data items of EntityDataProviderremoveItem
in interface DataProvider
item
- an item to be removedjava.lang.UnsupportedOperationException
- use datasource for changing data items of EntityDataProviderpublic void removeAll()
DataProvider
removeAll
in interface DataProvider
public com.haulmont.cuba.gui.data.CollectionDatasource getDatasource()
public void addChangeListener(DataChangeListener listener)
DataProvider
addChangeListener
in interface DataProvider
listener
- listener to be addedpublic void removeChangeListener(DataChangeListener listener)
DataProvider
removeChangeListener
in interface DataProvider
listener
- listener to be removed