Class WebComponentWrapper
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.webcomponent.WebComponentWrapper
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasStyle,Serializable
Wrapper component for a web component that exposes
ClientCallable
methods that the client-side components expect to be available.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
- Author:
- Vaadin Ltd.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionWebComponentWrapper(Element rootElement, WebComponentBinding<?> binding) Wrapper class for the server side WebComponent.protectedWebComponentWrapper(Element rootElement, WebComponentBinding<?> binding, List<Element> bootstrapElements) Wrapper class for the server side WebComponent. -
Method Summary
Modifier and TypeMethodDescriptionvoidA WebComponent disconnected from the dom will be scheduled for cleaning if it doesn't get reconnected before times up.voidCancel cleanup for a disconnected component.voidSynchronize method for client side to send property value updates to the server.Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
WebComponentWrapper
Wrapper class for the server side WebComponent.- Parameters:
rootElement-Elementto which theWebComponentWrapperis bound to.binding- binding that offers methods for delivering property updates to thecomponentbeing wrapped byWebComponentWrapper
-
WebComponentWrapper
protected WebComponentWrapper(Element rootElement, WebComponentBinding<?> binding, List<Element> bootstrapElements) Wrapper class for the server side WebComponent.- Parameters:
rootElement-Elementto which theWebComponentWrapperis bound to.binding- binding that offers methods for delivering property updates to thecomponentbeing wrapped byWebComponentWrapperbootstrapElements- elements that should be added to the shadow dom of therootElement. These are copies of the original elements and the copies are created byWebComponentConfigurationRegistry
-
-
Method Details
-
sync
Synchronize method for client side to send property value updates to the server.- Parameters:
property- property name to updatenewValue- the new value to set
-
reconnect
Cancel cleanup for a disconnected component. -
disconnected
A WebComponent disconnected from the dom will be scheduled for cleaning if it doesn't get reconnected before times up.
-