public class WebComponentWrapper extends Component
ClientCallable
methods that the client-side components expect to be available.| Constructor and Description |
|---|
WebComponentWrapper(Element rootElement,
WebComponentBinding<?> binding)
Wrapper class for the server side WebComponent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnected()
A WebComponent disconnected from the dom will be scheduled for cleaning
if it doesn't get reconnected before times up.
|
void |
reconnect()
Cancel cleanup for a disconnected component.
|
void |
sync(String property,
elemental.json.JsonValue newValue)
Synchronize method for client side to send property value updates to the
server.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttachListeneraddDetachListenerpublic WebComponentWrapper(Element rootElement, WebComponentBinding<?> binding)
rootElement - Element to which the WebComponentWrapper is bound
to.binding - binding that offers methods for delivering property updates to
the component being wrapped by WebComponentWrapper@ClientCallable public void sync(String property, elemental.json.JsonValue newValue)
property - property name to updatenewValue - the new value to set@ClientCallable public void reconnect()
@ClientCallable public void disconnected()
Copyright © 2019. All rights reserved.