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
Fields -
Constructor Summary
Constructors -
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
SimpleDataItemmust have apublicgetter method. Reflection is used to get property values.- Specified by:
getValuein 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 returnsListofSimpleDataItem. If any traversing property value is null, this method stops here and returns current value. Otherwise method returns getter value
-
getMethodsCache
-
getId
- Specified by:
getIdin interfaceDataItem.HasId- Returns:
- unique identifier of DataItem
-