Package io.jmix.ui.data.impl
Class EntityDataItem
java.lang.Object
io.jmix.ui.data.impl.EntityDataItem
- All Implemented Interfaces:
DataItem
,DataItem.HasId
,Serializable
Chart data item, which contains an instance of an entity.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.data.DataItem
DataItem.HasId
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
item
-
-
Constructor Details
-
EntityDataItem
-
-
Method Details
-
getValue
Returns the value of entity property with the specified property name.- Specified by:
getValue
in interfaceDataItem
- Parameters:
property
- name of entity property- Returns:
- the value of entity property with the specified property name.
- If property value is an instance of
Collection
, then method returnsList
ofEntityDataItem
. - Otherwise method returns value by
EntityValues.getValueEx(Object, String)
- If property value is an instance of
-
getItem
- Returns:
- contained entity
-
getId
- Specified by:
getId
in interfaceDataItem.HasId
- Returns:
- unique identifier of DataItem
-