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)
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)
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 methodsCopyright © 2000–2020 Vaadin Ltd. All rights reserved.