Creates a new instance of VirtualNodeFieldObserverManager
.
The SG node to associate with this observer manager.
The node associated with this observer manager.
A record of observers, keyed by field names.
Notifies observers of a field change and invokes appropriate handlers.
The name of the field that changed.
The new value of the field.
true
if the observers were notified successfully, otherwise false
.
Adds an observer to a specific field based on a port or function.
The name of the field to observe.
The message port or function to associate with the observer.
Optional
infoFields: string[]Optional fields to observe for additional information.
true
if the observer was added successfully, otherwise false
.
Adds an observer to a specific field with scoped handling for ports or functions.
The name of the field to observe.
The message port, function, or string to associate with the observer.
Optional
infoFields: string[]Optional fields to observe for additional information.
true
if the observer was added successfully, otherwise false
.
Removes all observers for a specific field.
The name of the field to unobserve.
true
if the observers were removed successfully, otherwise false
.
Removes all observers for a specific field with scoped handling.
The name of the field to unobserve.
true
if the observers were removed successfully, otherwise false
.
VirtualNodeFieldObserverManager
is a class responsible for managing field observers for web-based SG nodes. It allows adding, removing, and notifying observers of field changes.