Package io.jmix.ui.data.impl
Class SimpleDataItem
java.lang.Object
io.jmix.ui.data.impl.SimpleDataItem
- All Implemented Interfaces:
DataItem
,DataItem.HasId
,Serializable
Data item, which contains an instance of any class.
- 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
-
SimpleDataItem
-
-
Method Details
-
getItem
- Returns:
- item
-
setItem
Sets item.- Parameters:
item
- item to be set
-
getValue
Get an property value. Locates the property by the given path in object graph starting from this object.Each property in a class which will be used by
SimpleDataItem
must have apublic
getter method. Reflection is used to get property values.- Specified by:
getValue
in interfaceDataItem
- Parameters:
path
- path to the attribute- Returns:
- the value of a property with the specified property path.
If property value is an instance of
Collection
, then method returnsList
ofSimpleDataItem
. If any traversing property value is null, this method stops here and returns current value. Otherwise method returns getter value
-
getMethodsCache
-
getId
- Specified by:
getId
in interfaceDataItem.HasId
- Returns:
- unique identifier of DataItem
-