Class SignalBindingFeature
java.lang.Object
com.vaadin.flow.internal.nodefeature.NodeFeature
com.vaadin.flow.internal.nodefeature.ServerSideFeature
com.vaadin.flow.internal.nodefeature.SignalBindingFeature
- All Implemented Interfaces:
Serializable
Node feature for binding
Signals to various properties of a node.
For internal use only. May be renamed or removed in a future release.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a SignalBindingFeature for the given node. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasBinding(String key) Checks whether there is a binding for the given key.voidremoveBinding(String key) Removes the binding for the given key.voidsetBinding(String key, Registration registration, com.vaadin.signals.Signal<?> signal) Sets a binding for the given key.<T> voidupdateWritableSignalValue(String key, T value) Updates the value of the writable signal bound to the given key.Methods inherited from class com.vaadin.flow.internal.nodefeature.ServerSideFeature
collectChanges, forEachChild, generateChangesFromEmptyMethods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
Field Details
-
ENABLED
- See Also:
-
VALUE
- See Also:
-
-
Constructor Details
-
SignalBindingFeature
Creates a SignalBindingFeature for the given node.- Parameters:
node- the node which supports the feature
-
-
Method Details
-
hasBinding
Checks whether there is a binding for the given key.- Parameters:
key- the key- Returns:
- true if there is a binding for the given key, false otherwise
-
removeBinding
Removes the binding for the given key.- Parameters:
key- the key
-
updateWritableSignalValue
Updates the value of the writable signal bound to the given key.- Type Parameters:
T- the type of the value- Parameters:
key- the keyvalue- the new value