Class PropertyTreeChangeEvent
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.property.PropertyTreeChangeEvent
 
- 
- Direct Known Subclasses:
- ContextualPropertyChangeEvent
 
 public class PropertyTreeChangeEvent extends java.lang.ObjectEvent for whenever a property in a PropertyTree changes.
- 
- 
Field SummaryFields Modifier and Type Field Description booleanallowSynccom.inductiveautomation.ignition.common.gson.JsonElementjsonJson encoding of the new value af the changed path.JsonPathlisteningPathThe path to the property that was actually being listened to by the lister receiving this event.OriginoriginOrigin of the changeJsonPathpathThe path to the property that caused the change.java.util.function.Function<JsonPath,QualifiedValue>readFunctionSupplies the value of the property that the subscriber was subscribed tojava.lang.Objectsource
 - 
Constructor SummaryConstructors Constructor Description PropertyTreeChangeEvent(JsonPath path, JsonPath listeningPath, com.inductiveautomation.ignition.common.gson.JsonElement json, Origin origin, java.util.function.Function<JsonPath,QualifiedValue> readFunction, java.lang.Object source, boolean allowSync)PropertyTreeChangeEvent(PropertyTreeChangeEvent copy)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QualifiedValuereadCausalValue()QualifiedValuereadValue()
 
- 
- 
- 
Field Detail- 
pathpublic final JsonPath path The path to the property that caused the change. Note that this may be a different path than that which was subscribed to, if a descendent or ancestor property change caused the subscribed path to change.
 - 
listeningPathpublic final JsonPath listeningPath The path to the property that was actually being listened to by the lister receiving this event.
 - 
jsonpublic final com.inductiveautomation.ignition.common.gson.JsonElement json Json encoding of the new value af the changed path.
 - 
originpublic final Origin origin Origin of the change
 - 
readFunctionpublic final java.util.function.Function<JsonPath,QualifiedValue> readFunction Supplies the value of the property that the subscriber was subscribed to
 - 
sourcepublic final java.lang.Object source 
 - 
allowSyncpublic final boolean allowSync 
 
- 
 - 
Constructor Detail- 
PropertyTreeChangeEventpublic PropertyTreeChangeEvent(JsonPath path, JsonPath listeningPath, com.inductiveautomation.ignition.common.gson.JsonElement json, Origin origin, java.util.function.Function<JsonPath,QualifiedValue> readFunction, java.lang.Object source, boolean allowSync) 
 - 
PropertyTreeChangeEventpublic PropertyTreeChangeEvent(PropertyTreeChangeEvent copy) 
 
- 
 - 
Method Detail- 
readCausalValuepublic QualifiedValue readCausalValue() - Returns:
- the new value of the property whose change caused the event to be fired.
 
 - 
readValuepublic QualifiedValue readValue() - Returns:
- the new value of the property being listened to.
 
 
- 
 
-