public class WebComponentWrapper extends Component
ClientCallable
methods that the client-side components expect to be available.
For internal use only. May be renamed or removed in a future release.
| Modifier | Constructor and Description |
|---|---|
|
WebComponentWrapper(Element rootElement,
WebComponentBinding<?> binding)
Wrapper class for the server side WebComponent.
|
protected |
WebComponentWrapper(Element rootElement,
WebComponentBinding<?> binding,
List<Element> bootstrapElements)
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, getTranslation, getUI, hasListener, isAttached, 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
WebComponentWrapperprotected WebComponentWrapper(Element rootElement, WebComponentBinding<?> binding, List<Element> bootstrapElements)
rootElement - Element to which the WebComponentWrapper is
bound to.binding - binding that offers methods for delivering property updates to
the component being wrapped by
WebComponentWrapperbootstrapElements - elements that should be added to the shadow dom of the
rootElement. These are copies of the original elements
and the copies are created by
WebComponentConfigurationRegistry@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 © 2021. All rights reserved.