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
ModifierConstructorDescriptionWebComponentWrapper
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
A WebComponent disconnected from the dom will be scheduled for cleaning if it doesn't get reconnected before times up.void
Cancel cleanup for a disconnected component.void
Synchronize 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods 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
-Element
to which theWebComponentWrapper
is bound to.binding
- binding that offers methods for delivering property updates to thecomponent
being wrapped byWebComponentWrapper
-
WebComponentWrapper
protected WebComponentWrapper(Element rootElement, WebComponentBinding<?> binding, List<Element> bootstrapElements) Wrapper class for the server side WebComponent.- Parameters:
rootElement
-Element
to which theWebComponentWrapper
is bound to.binding
- binding that offers methods for delivering property updates to thecomponent
being wrapped byWebComponentWrapper
bootstrapElements
- 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.
-