Uses of Class
com.vaadin.flow.dom.Element
Packages that use Element
Package
Description
-
Uses of Element in com.vaadin.flow.component
Fields in com.vaadin.flow.component declared as ElementMethods in com.vaadin.flow.component that return ElementModifier and TypeMethodDescriptionComponent.getElement()
Gets the low level root element of this component.Composite.getElement()
Gets the root element of this composite.HasElement.getElement()
Gets the element associated with this instance.UI.getElement()
Gets the element for this UI.Methods in com.vaadin.flow.component with parameters of type ElementModifier and TypeMethodDescriptionstatic <T extends Component>
TComponentUtil.componentFromElement
(Element element, Class<T> componentType, boolean mapComponent) Creates a new component instance using the given element, maps the component to the element and optionally maps the element to the component (ifmapComponent
istrue
).static void
ComponentUtil.findComponents
(Element element, Consumer<Component> componentConsumer) ComponentUtil.findParentComponent
(Element element) Finds the first component by traversing upwards in the element hierarchy, starting from the given element.static <T extends Component>
TCreates a new component instance using the given element.Gets the property value for the given element.static Component
ComponentUtil.getInnermostComponent
(Element element) Gets the innermost mapped component for the element.void
Sets the property value for the given element.protected static void
Component.setElement
(Component component, Element element) Initializes the root element of a component.Constructors in com.vaadin.flow.component with parameters of type ElementModifierConstructorDescriptionAbstractField
(Element element, T defaultValue) Creates a new field with the given element instance.protected
Creates a component instance based on the given element. -
Uses of Element in com.vaadin.flow.component.confirmdialog
Methods in com.vaadin.flow.component.confirmdialog that return ElementModifier and TypeMethodDescriptionConfirmDialogTester.getHeaderElement()
Get the header element set to the confirm dialog.Methods in com.vaadin.flow.component.confirmdialog with parameters of type ElementModifier and TypeMethodDescriptionvoid
ConfirmDialog.setCancelButton
(Element element) Deprecated, for removal: This API element is subject to removal in a future version.Usage of Element API at Component level should be avoidedvoid
ConfirmDialog.setConfirmButton
(Element element) Deprecated, for removal: This API element is subject to removal in a future version.Usage of Element API at Component level should be avoidedvoid
Deprecated, for removal: This API element is subject to removal in a future version.Usage of Element API at Component level should be avoidedvoid
ConfirmDialog.setRejectButton
(Element element) Deprecated, for removal: This API element is subject to removal in a future version.Usage of Element API at Component level should be avoidedvoid
Deprecated, for removal: This API element is subject to removal in a future version.Usage of Element API at Component level should be avoided -
Uses of Element in com.vaadin.flow.component.dialog
Fields in com.vaadin.flow.component.dialog declared as Element -
Uses of Element in com.vaadin.flow.component.dnd
Methods in com.vaadin.flow.component.dnd that return ElementModifier and TypeMethodDescriptiondefault Element
DragSource.getDraggableElement()
Returns the element where thedraggable
attribute is applied, making it draggable by the user.default Element
DragSource.getElement()
default Element
DropTarget.getElement()
Returns the element which is made as a drop target in the UI. -
Uses of Element in com.vaadin.flow.component.fieldhighlighter
Methods in com.vaadin.flow.component.fieldhighlighter with parameters of type Element -
Uses of Element in com.vaadin.flow.component.grid
Methods in com.vaadin.flow.component.grid that return ElementModifier and TypeMethodDescriptionGrid.Column.getElement()
Gets the underlying<vaadin-grid-column>
element.protected Element
Grid.UpdateQueue.getElement()
GridArrayUpdater.UpdateQueueData.getElement()
Methods in com.vaadin.flow.component.grid with parameters of type ElementModifier and TypeMethodDescriptionprotected DataCommunicator<T>
Grid.DataCommunicatorBuilder.build
(Element element, CompositeDataGenerator<T> dataGenerator, U arrayUpdater, SerializableSupplier<ValueProvider<T, String>> uniqueKeyProviderSupplier) Build a newDataCommunicator
object for the given Grid instance.ColumnPathRenderer.render
(Element container, DataKeyMapper<SOURCE> keyMapper, String rendererName) Constructors in com.vaadin.flow.component.grid with parameters of type Element -
Uses of Element in com.vaadin.flow.component.grid.editor
Methods in com.vaadin.flow.component.grid.editor with parameters of type Element -
Uses of Element in com.vaadin.flow.component.littemplate
Constructors in com.vaadin.flow.component.littemplate with parameters of type ElementModifierConstructorDescriptionInjectableLitElementInitializer
(Element element, Class<? extends Component> templateClass) Creates an initializer for theelement
. -
Uses of Element in com.vaadin.flow.component.react
Methods in com.vaadin.flow.component.react that return ElementModifier and TypeMethodDescriptionprotected Element
ReactAdapterComponent.getContentElement
(String name) Get the Flow container element that is set up in React template for given name attribute. -
Uses of Element in com.vaadin.flow.component.template.internal
Methods in com.vaadin.flow.component.template.internal that return ElementModifier and TypeMethodDescriptionprotected Element
AbstractInjectableElementInitializer.getElement()
Returns server side element to initialize.Method parameters in com.vaadin.flow.component.template.internal with type arguments of type ElementModifier and TypeMethodDescriptionvoid
Maps an element or component to the given field.Constructors in com.vaadin.flow.component.template.internal with parameters of type ElementModifierConstructorDescriptionprotected
Creates an initializer for theelement
. -
Uses of Element in com.vaadin.flow.component.webcomponent
Methods in com.vaadin.flow.component.webcomponent with parameters of type ElementModifier and TypeMethodDescriptionWebComponentConfiguration.createWebComponentBinding
(Instantiator instantiator, Element element, elemental.json.JsonObject newAttributeDefaults) Creates a newWebComponentBinding
instance.Constructors in com.vaadin.flow.component.webcomponent with parameters of type ElementModifierConstructorDescriptionWebComponent
(WebComponentBinding binding, Element componentHost) Constructs aWebComponent
.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.Constructor parameters in com.vaadin.flow.component.webcomponent with type arguments of type ElementModifierConstructorDescriptionprotected
WebComponentWrapper
(Element rootElement, WebComponentBinding<?> binding, List<Element> bootstrapElements) Wrapper class for the server side WebComponent. -
Uses of Element in com.vaadin.flow.data.provider
Methods in com.vaadin.flow.data.provider that return ElementModifier and TypeMethodDescriptionprotected abstract Element
AbstractComponentDataGenerator.getContainer()
Gets the element where the generated components will be attached to. -
Uses of Element in com.vaadin.flow.data.renderer
Methods in com.vaadin.flow.data.renderer that return ElementModifier and TypeMethodDescriptionprotected Element
TextRenderer.createElement
(String item) Creates a newElement
that represent the rendereditem
.protected Element
ComponentDataGenerator.getContainer()
Methods in com.vaadin.flow.data.renderer with parameters of type ElementModifier and TypeMethodDescriptionComponentRenderer.render
(Element owner, DataKeyMapper<SOURCE> keyMapper, String rendererName) LitRenderer.render
(Element container, DataKeyMapper<SOURCE> keyMapper, String rendererName) Renderer.render
(Element container, DataKeyMapper<SOURCE> keyMapper) Registers a renderer function to the given container element.Renderer.render
(Element container, DataKeyMapper<SOURCE> keyMapper, String rendererName) Registers a renderer function with the given name to the given container element.void
ComponentDataGenerator.setContainer
(Element container) -
Uses of Element in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom that return ElementModifier and TypeMethodDescriptionstatic Element
ElementFactory.createAnchor()
Creates an<a>
element.static Element
ElementFactory.createAnchor
(String href) Creates an<a>
with the givenhref
attribute.static Element
ElementFactory.createAnchor
(String href, String textContent) Creates an<a>
element with the givenhref
attribute and text content.static Element
ElementFactory.createBr()
Creates a<br>
element.static Element
ElementFactory.createButton()
Creates a<button>
element.static Element
ElementFactory.createButton
(String textContent) Creates a<button>
with the given text content.static Element
ElementFactory.createDiv()
Creates a<div>
element.static Element
Creates a<div>
with the given text content.static Element
ElementFactory.createEmphasis()
Creates an<em>
element.static Element
ElementFactory.createEmphasis
(String textContent) Creates an<em>
element with the given text content.static Element
ElementFactory.createHeading1()
Creates an<h1>
element.static Element
ElementFactory.createHeading1
(String textContent) Creates a<h1>
element with the given text content.static Element
ElementFactory.createHeading2()
Creates an<h2>
element.static Element
ElementFactory.createHeading2
(String textContent) Creates a<h2>
element with the given text content.static Element
ElementFactory.createHeading3()
Creates an<h3>
element.static Element
ElementFactory.createHeading3
(String textContent) Creates a<h3>
element with the given text content.static Element
ElementFactory.createHeading4()
Creates an<h4>
element.static Element
ElementFactory.createHeading4
(String textContent) Creates a<h4>
element with the given text content.static Element
ElementFactory.createHeading5()
Creates an<h5>
element.static Element
ElementFactory.createHeading5
(String textContent) Creates a<h5>
element with the given text content.static Element
ElementFactory.createHeading6()
Creates an<h6>
element.static Element
ElementFactory.createHeading6
(String textContent) Creates a<h6>
element with the given text content.static Element
ElementFactory.createHr()
Creates an<hr>
element.static Element
ElementFactory.createInput()
Creates an<input>
element.static Element
ElementFactory.createInput
(String type) Creates an<input>
element with the given type.static Element
ElementFactory.createLabel()
Creates an<label>
element.static Element
ElementFactory.createLabel
(String textContent) Creates an<label>
element with the given text content.static Element
ElementFactory.createListItem()
Creates an<li>
element.static Element
ElementFactory.createListItem
(String textContent) Creates an<li>
element with the given text content.static Element
ElementFactory.createOption()
Creates an<option>
element.static Element
ElementFactory.createOption
(String textContent) Creates an<option>
element with the given text content.static Element
ElementFactory.createParagraph()
Creates a<p>
element.static Element
ElementFactory.createParagraph
(String textContent) Creates a<p>
element with the given text content.static Element
ElementFactory.createPreformatted()
Creates a<pre>
element.static Element
ElementFactory.createPreformatted
(String textContent) Creates a<pre>
element with the given text content.static Element
ElementFactory.createRouterLink
(String href, String textContent) Creates an<a>
element with the givenhref
attribute, text content and the router link attribute.static Element
ElementFactory.createSelect()
Creates a<select>
element.static Element
ElementFactory.createSpan()
Creates a<span>
element.static Element
ElementFactory.createSpan
(String textContent) Creates a<span>
element with the given text content.static Element
ElementFactory.createStrong()
Creates a<strong>
element.static Element
ElementFactory.createStrong
(String textContent) Creates a<strong>
element with the given text content.static Element
Element.createText
(String text) Creates a text node with the given text.static Element
ElementFactory.createTextarea()
Creates a<textarea>
element.static Element
ElementFactory.createUnorderedList()
Creates a<ul>
element.static Element
Gets the element mapped to the given state node.static Element
Element.get
(StateNode node, ElementStateProvider stateProvider) Gets the element mapped to the given state node and element state provider.Element.getChild
(int index) Returns the child element at the given position.Returns the child element at the given position.Node.getChild
(int index) Returns the child element at the given position.ShadowRoot.getHost()
Element.getParent()
Gets the parent element.protected Element
Element.getSelf()
DomEvent.getSource()
Returns the element on which the listener has been attached.ElementAttachEvent.getSource()
ElementDetachEvent.getSource()
PropertyChangeEvent.getSource()
Element.removeAttribute
(String attribute) Removes the given attribute.Element.removeFromParent()
Removes this element from its parent.Element.removeFromTree()
Removes this element from its parent and state tree.Element.removeFromTree
(boolean sendDetach) Removes this element from its parent and state tree.Element.removeProperty
(String name) Removes the given property.Element.scrollIntoView()
Executes the similarly named DOM method on the client side.Element.scrollIntoView
(ScrollOptions scrollOptions) Executes the similarly named DOM method on the client side.Element.setAttribute
(String attribute, boolean value) Sets the given attribute to the given boolean value.Element.setAttribute
(String attribute, AbstractStreamResource resource) Sets the given attribute to the givenStreamResource
value.Element.setAttribute
(String attribute, String value) Sets the given attribute to the given value.Element.setEnabled
(boolean enabled) Sets the enabled state of the element.Element.setProperty
(String name, boolean value) Sets the given property to the given boolean value.Element.setProperty
(String name, double value) Sets the given property to the given numeric value.Element.setProperty
(String name, String value) Sets the given property to the given string value.Element.setPropertyBean
(String name, Object value) Sets the given property to the given bean, converted to a JSON object.Element.setPropertyJson
(String name, elemental.json.JsonValue value) Sets the given property to the given JSON value.<T> Element
Element.setPropertyList
(String name, List<T> value) Sets the given property to the given list of beans or primitive values, converted to a JSON array.Element.setPropertyMap
(String name, Map<String, ?> value) Sets the given property to the given map of beans or primitive values, converted to a JSON object.Sets the text content of this element, replacing any existing children.Element.setVisible
(boolean visible) Sets the element visibility value.Methods in com.vaadin.flow.dom that return types with arguments of type ElementModifier and TypeMethodDescriptionGets the element mapped to the given state node.ElementUtil.fromJsoup
(org.jsoup.nodes.Node node) Converts a given JSoupNode
and its children into a matchingElement
hierarchy.Element.getChildren()
Gets all the children of this element.Node.getChildren()
Gets all the children of this element.DomEvent.getEventDataElement
(String eventDataExpression) Gets the closestElement
corresponding to the given event data expression.DomEvent.getEventTarget()
Gets the closestElement
that corresponds to theevent.target
for the DOM event.Methods in com.vaadin.flow.dom with parameters of type ElementModifier and TypeMethodDescriptionvoid
This callback method is called when the request initiated by theNode.appendChild(Element...)
method is successfully executed.Node.appendChild
(Element... children) Adds the given children as the last children of this element.void
ElementStateProvider.appendVirtualChild
(StateNode node, Element child, String type, String payload) Append the given element as a virtual child.Node.appendVirtualChild
(Element... children) Appends the given children as the virtual children of the element.void
ElementStateProvider.attachExistingElement
(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) Attaches a child element with the giventagName
which is the next sibling for thepreviousSibling
.protected void
Node.ensureChildHasParent
(Element child, boolean internalCheck) Ensures that thechild
has the correct parent.int
Node.indexOfChild
(Element child) Returns the index of the specifiedchild
in the children list, or -1 if this list does not contain thechild
.void
ElementStateProvider.insertChild
(StateNode node, int index, Element child) Inserts the given child at the given position.Node.insertChild
(int index, Element... children) Inserts the given child element(s) at the given position.static boolean
ElementUtil.isCustomElement
(Element element) Checks whether the given element is a custom element or not.static boolean
Checks whether the given element is ascript
or not.default void
This callback method is called when the requested client element cannot be found in the providedparent
by thetag
name after thepreviousSibling
.void
ElementStateProvider.removeChild
(StateNode node, Element child) Removes the given child.Node.removeChild
(Element... children) Removes the given child element(s).Node.removeVirtualChild
(Element... children) Removes the given children that have been attached as the virtual children of this element.Replaces the child at the given position with the given child element.static void
ElementUtil.setComponent
(Element element, Component component) Defines a mapping between this element and the givenComponent
.static void
ElementUtil.setIgnoreParentInert
(Element element, boolean ignoreParentInert) Sets whether or not the element should inherit or not inherit its parent's inert state.static void
Sets whether or not the given element is inert.static org.jsoup.nodes.Node
Converts the given element and its children to a JSoup node with children.boolean
NodeVisitor.visit
(NodeVisitor.ElementType type, Element element) Visit theelement
using provided elementtype
.Method parameters in com.vaadin.flow.dom with type arguments of type ElementModifier and TypeMethodDescriptionNode.appendChild
(Collection<Element> children) Adds the given children as the last children of this element.Node.appendVirtualChild
(Collection<Element> children) Appends the given children as the virtual children of the element.Node.insertChild
(int index, Collection<Element> children) Inserts the given child element(s) at the given position.Node.removeChild
(Collection<Element> children) Removes the given child element(s).Node.removeVirtualChild
(Collection<Element> children) Removes the given children that have been attached as the virtual children of this element.Constructors in com.vaadin.flow.dom with parameters of type ElementModifierConstructorDescriptionCreates a new DOM event.ElementAttachEvent
(Element source) Creates a new attach event with the given element as source.ElementDetachEvent
(Element source) Creates a new detach event with the given element as source.PropertyChangeEvent
(Element element, String propertyName, Serializable oldValue, boolean userOriginated) Creates a newPropertyChangeEvent
event containing the current property value of the given element. -
Uses of Element in com.vaadin.flow.dom.impl
Methods in com.vaadin.flow.dom.impl that return ElementModifier and TypeMethodDescriptionMethods in com.vaadin.flow.dom.impl with parameters of type ElementModifier and TypeMethodDescriptionvoid
AbstractNodeStateProvider.appendVirtualChild
(StateNode node, Element child, String type, String payload) void
AbstractTextElementStateProvider.appendVirtualChild
(StateNode node, Element child, String type, String payload) void
AbstractNodeStateProvider.attachExistingElement
(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) void
AbstractTextElementStateProvider.attachExistingElement
(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) ClassAttributeHandler.getAttribute
(Element element) abstract String
CustomAttribute.getAttribute
(Element element) Gets the value that should be returned bygetAttribute(String)
for this attribute.StyleAttributeHandler.getAttribute
(Element element) boolean
ClassAttributeHandler.hasAttribute
(Element element) abstract boolean
CustomAttribute.hasAttribute
(Element element) Checks whathasAttribute(String)
should return for this attribute.boolean
StyleAttributeHandler.hasAttribute
(Element element) void
AbstractNodeStateProvider.insertChild
(StateNode node, int index, Element child) void
AbstractTextElementStateProvider.insertChild
(StateNode node, int index, Element child) void
ClassAttributeHandler.removeAttribute
(Element element) abstract void
CustomAttribute.removeAttribute
(Element element) Removes the attribute whenremoveAttribute(String)
is called for this attribute.void
StyleAttributeHandler.removeAttribute
(Element element) void
AbstractNodeStateProvider.removeChild
(StateNode node, Element child) void
AbstractTextElementStateProvider.removeChild
(StateNode node, Element child) void
ClassAttributeHandler.setAttribute
(Element element, String value) abstract void
CustomAttribute.setAttribute
(Element element, String value) Sets the value whensetAttribute(String, String)
is called for this attribute.void
StyleAttributeHandler.setAttribute
(Element element, String attributeValue) Constructors in com.vaadin.flow.dom.impl with parameters of type ElementModifierConstructorDescriptionThemeListImpl
(Element element) Creates new theme list for element specified. -
Uses of Element in com.vaadin.flow.internal.nodefeature
Methods in com.vaadin.flow.internal.nodefeature that return ElementModifier and TypeMethodDescriptionAttachExistingElementFeature.getPreviousSibling
(StateNode node) Gets previous sibling of the registerednode
.Methods in com.vaadin.flow.internal.nodefeature with parameters of type ElementModifier and TypeMethodDescriptionvoid
AttachExistingElementFeature.register
(Node<?> parent, Element previousSibling, StateNode child, ChildElementConsumer callback) Registers the data for thechild
node requested as being attached to an existing element. -
Uses of Element in com.vaadin.flow.router
Methods in com.vaadin.flow.router with parameters of type ElementModifier and TypeMethodDescriptionstatic List<LocaleChangeObserver>
EventUtil.collectLocaleChangeObservers
(Element element) Collect all Components implementingLocaleChangeObserver
connected to the given element tree.static void
EventUtil.inspectHierarchy
(Element node, Collection<Element> descendants, Predicate<Element> filter) Collect all children for given node as a Element stream.Method parameters in com.vaadin.flow.router with type arguments of type ElementModifier and TypeMethodDescriptionstatic <T> Stream<T>
EventUtil.getImplementingComponents
(Stream<Element> elementStream, Class<T> type) Collect elements with Component implementing listener of type T.static void
EventUtil.inspectHierarchy
(Element node, Collection<Element> descendants, Predicate<Element> filter) Collect all children for given node as a Element stream.static void
EventUtil.inspectHierarchy
(Element node, Collection<Element> descendants, Predicate<Element> filter) Collect all children for given node as a Element stream. -
Uses of Element in com.vaadin.flow.server
Methods in com.vaadin.flow.server that return ElementModifier and TypeMethodDescriptionVaadinSession.findElement
(int uiId, int nodeId) Finds the given element in the session.Methods in com.vaadin.flow.server that return types with arguments of type ElementModifier and TypeMethodDescriptionErrorEvent.getElement()
Get the Element that the error was thrown for. -
Uses of Element in com.vaadin.flow.server.webcomponent
Methods in com.vaadin.flow.server.webcomponent that return types with arguments of type ElementModifier and TypeMethodDescriptionWebComponentConfigurationRegistry.getShadowDomElements()
Get a copy of the elements that should be added to the shadow dom hosting the embedded web component.Method parameters in com.vaadin.flow.server.webcomponent with type arguments of type ElementModifier and TypeMethodDescriptionvoid
WebComponentConfigurationRegistry.setShadowDomElements
(List<Element> elements) Set the elements that should be added to each shadow dom hosting an embedded web component.