ContainerDataProvider
instead.@Deprecated public class EntityDataProvider extends java.lang.Object implements DataProvider, HasMetaClass
CollectionDatasource
with items.Constructor and Description |
---|
EntityDataProvider(com.haulmont.cuba.gui.data.CollectionDatasource datasource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(DataChangeListener listener)
Deprecated.
Adds listener to the data provider events.
|
void |
addItem(DataItem item)
Deprecated.
Unsupported.
|
void |
addItems(java.util.Collection<? extends DataItem> items)
Deprecated.
Unsupported.
|
com.haulmont.cuba.gui.data.CollectionDatasource |
getDatasource()
Deprecated.
|
DataItem |
getItem(java.lang.Object id)
Deprecated.
|
java.util.List<DataItem> |
getItems()
Deprecated.
|
com.haulmont.chile.core.model.MetaClass |
getMetaClass()
Deprecated.
|
void |
removeAll()
Deprecated.
Removes all items from the data provider.
|
void |
removeChangeListener(DataChangeListener listener)
Deprecated.
Removes listener to data provider events
|
void |
removeItem(DataItem item)
Deprecated.
Unsupported.
|
void |
updateItem(DataItem item)
Deprecated.
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<? extends 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 removedpublic com.haulmont.chile.core.model.MetaClass getMetaClass()
getMetaClass
in interface HasMetaClass