Class PropertyTreeChangeEvent
java.lang.Object
com.inductiveautomation.perspective.gateway.property.PropertyTreeChangeEvent
- Direct Known Subclasses:
ContextualPropertyChangeEvent
Event for whenever a property in a PropertyTree changes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
final com.inductiveautomation.ignition.common.gson.JsonElement
Json encoding of the new value af the changed path.final JsonPath
The path to the property that was actually being listened to by the lister receiving this event.final Origin
Origin of the changefinal JsonPath
The path to the property that caused the change.final Function<JsonPath,
QualifiedValue> Supplies the value of the property that the subscriber was subscribed tofinal Object
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyTreeChangeEvent
(JsonPath path, JsonPath listeningPath, com.inductiveautomation.ignition.common.gson.JsonElement json, Origin origin, Function<JsonPath, QualifiedValue> readFunction, Object source, boolean allowSync) -
Method Summary
-
Field Details
-
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. -
listeningPath
The path to the property that was actually being listened to by the lister receiving this event. -
json
public final com.inductiveautomation.ignition.common.gson.JsonElement jsonJson encoding of the new value af the changed path. -
origin
Origin of the change -
readFunction
Supplies the value of the property that the subscriber was subscribed to -
source
-
allowSync
public final boolean allowSync
-
-
Constructor Details
-
PropertyTreeChangeEvent
-
PropertyTreeChangeEvent
-
-
Method Details
-
readCausalValue
- Returns:
- the new value of the property whose change caused the event to be fired.
-
readValue
- Returns:
- the new value of the property being listened to.
-