-
public final class ModelChangedArgsThe arguments passed to the IModelChangedHandler handler when subscribed via Model.subscribe
-
-
Method Summary
Modifier and Type Method Description final ModelgetModel()The full model in its current state. final StringgetPath()The path to the property, from the root Model, that has changed. final StringgetProperty()The property that was changed. final ObjectgetOldValue()The old value of the property, prior to it being changed. final ObjectgetNewValue()The new value of the property, after it has been changed. -
-
Method Detail
-
getPath
final String getPath()
The path to the property, from the root Model, that has changed. When the root model has changed, path and property will be identical. When it's a nested property that has changed, path will contain a "dot notation" path to the property:
If a map property on the root model gets a new KVP, this will be
mapProperty.new_keyIf a complex property on the root model, this will be
complexProperty.simplePropertyIf a map property on a complex property on the root model gets a new KVP, this will be
complexProperty.mapProperty.new_key
-
getProperty
final String getProperty()
The property that was changed.
-
getOldValue
final Object getOldValue()
The old value of the property, prior to it being changed.
-
getNewValue
final Object getNewValue()
The new value of the property, after it has been changed.
-
-
-
-