public class DataItem<E> extends Object
RadDataSource
object. When a RadDataSource
instance is populated with data, each entity from the original data source is wrapped in a DataItem
instance end exposed by the API of this class.Constructor and Description |
---|
DataItem(E forObject)
Creates an instance of the
DataItem class
with the provided source entity from the original data used to populate the associated
RadDataSource object. |
DataItem(E fromObject,
Object groupKey)
Creates an instance of the
DataItem
class with a provided source object. |
Modifier and Type | Method and Description |
---|---|
E |
entity()
Returns the raw object wrapped by this
DataItem instance. |
List<DataItem<E>> |
getItems()
Returns the child items containing within this
DataItem
instance. |
Object |
groupKey()
Gets the group key of this item.
|
String |
toString() |
public DataItem(E fromObject, Object groupKey)
DataItem
class with a provided source object.fromObject
- the source object used to create the group.groupKey
- the group key used to create the group.public DataItem(E forObject)
DataItem
class
with the provided source entity from the original data used to populate the associated
RadDataSource
object.forObject
- the raw entity object.public E entity()
DataItem
instance.public Object groupKey()
public List<DataItem<E>> getItems()
DataItem
instance. These might either be further DataItem
instances
or plain DataItem
instances.Iterable
implementation containing the child items.