public class ServerEventHandlerBinder extends Object
| Modifier and Type | Method and Description |
|---|---|
static elemental.events.EventRemover |
bindServerEventHandlerNames(elemental.dom.Element element,
StateNode node)
Registers all the server event handler names found in the
NodeFeatures.CLIENT_DELEGATE_HANDLERS feature in the state node
as serverObject.<methodName>. |
static elemental.events.EventRemover |
bindServerEventHandlerNames(Supplier<ServerEventObject> objectProvider,
StateNode node,
int featureId,
boolean returnValue)
Registers all the server event handler names found in the feature with
the
featureId in the ServerEventObject object. |
public static elemental.events.EventRemover bindServerEventHandlerNames(elemental.dom.Element element,
StateNode node)
NodeFeatures.CLIENT_DELEGATE_HANDLERS feature in the state node
as serverObject.<methodName>. Additionally listens to
changes in the feature and updates $server accordingly.element - the element to updatenode - the state node containing the featurepublic static elemental.events.EventRemover bindServerEventHandlerNames(Supplier<ServerEventObject> objectProvider, StateNode node, int featureId, boolean returnValue)
featureId in the ServerEventObject object.
Additionally listens to changes in the feature and updates server event
object accordingly.objectProvider - the provider of the event object to updatenode - the state node containing the featurefeatureId - the feature id which contains event handler methodsreturnValue - true if the handler should return a promise that
will reflect the server-side result; false to not
return any valueCopyright © 2000–2025 Vaadin Ltd. All rights reserved.