Uses of Class
com.vaadin.flow.dom.Element
-
-
Uses of Element in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return Element Modifier and Type Method Description Element
Component. getElement()
Gets the root element of this component.Element
Composite. getElement()
Gets the root element of this composite.Element
HasElement. getElement()
Gets the element associated with this instance.Element
UI. getElement()
Gets the element for this UI.Methods in com.vaadin.flow.component with parameters of type Element Modifier and Type Method Description static <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)
static Optional<Component>
ComponentUtil. findParentComponent(Element element)
Finds the first component by traversing upwards in the element hierarchy, starting from the given element.static <T extends Component>
TComponent. from(Element element, Class<T> componentType)
Creates a new component instance using the given element.G
PropertyDescriptor. get(Element element)
Gets the property value for the given element.static Component
ComponentUtil. getInnermostComponent(Element element)
Gets the innermost mapped component for the element.void
PropertyDescriptor. set(Element element, S value)
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 Element Constructor Description AbstractField(Element element, T defaultValue)
Creates a new field with the given element instance.Component(Element element)
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 with parameters of type Element Modifier and Type Method Description void
ConfirmDialog. setCancelButton(Element element)
Sets custom cancel buttonvoid
ConfirmDialog. setConfirmButton(Element element)
Sets custom confirm buttonvoid
ConfirmDialog. setHeader(Element element)
Sets confirmation dialog custom header elementvoid
ConfirmDialog. setRejectButton(Element element)
Sets custom Reject buttonvoid
ConfirmDialog. setText(Element element)
Sets custom confirmation message element -
Uses of Element in com.vaadin.flow.component.dialog
Fields in com.vaadin.flow.component.dialog declared as Element Modifier and Type Field Description protected Element
Dialog.DialogHeaderFooter. root
protected Element
Dialog.DialogHeaderFooter. root
-
Uses of Element in com.vaadin.flow.component.dnd
Methods in com.vaadin.flow.component.dnd that return Element Modifier and Type Method Description default 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 Modifier and Type Method Description protected static Registration
FieldHighlighterInitializer. init(Element field)
-
Uses of Element in com.vaadin.flow.component.grid
Fields in com.vaadin.flow.component.grid declared as Element Modifier and Type Field Description protected Element
AbstractColumn. footerTemplate
protected Element
AbstractColumn. footerTemplate
protected Element
AbstractColumn. headerTemplate
protected Element
AbstractColumn. headerTemplate
Methods in com.vaadin.flow.component.grid that return Element Modifier and Type Method Description Element
Grid.Column. getElement()
Gets the underlying<vaadin-grid-column>
element.protected Element
Grid.UpdateQueue. getElement()
Element
GridArrayUpdater.UpdateQueueData. getElement()
Methods in com.vaadin.flow.component.grid with parameters of type Element Modifier and Type Method Description protected 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.Rendering<SOURCE>
ColumnPathRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper)
Rendering<SOURCE>
ColumnPathRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Constructors in com.vaadin.flow.component.grid with parameters of type Element Constructor Description UpdateQueueData(Element element, String uniqueKeyProperty)
-
Uses of Element in com.vaadin.flow.component.grid.editor
Methods in com.vaadin.flow.component.grid.editor with parameters of type Element Modifier and Type Method Description Rendering<T>
EditorRenderer. render(Element container, DataKeyMapper<T> keyMapper, Element contentTemplate)
-
Uses of Element in com.vaadin.flow.component.littemplate
Constructors in com.vaadin.flow.component.littemplate with parameters of type Element Constructor Description InjectableLitElementInitializer(Element element, Class<? extends Component> templateClass)
Creates an initializer for theelement
. -
Uses of Element in com.vaadin.flow.component.polymertemplate
Constructors in com.vaadin.flow.component.polymertemplate with parameters of type Element Constructor Description InjectablePolymerElementInitializer(Element element, Class<? extends Component> templateClass)
Deprecated.Creates an initializer for theelement
. -
Uses of Element in com.vaadin.flow.component.shared
Methods in com.vaadin.flow.component.shared that return types with arguments of type Element Modifier and Type Method Description static Stream<Element>
SlotUtils. getElementsInSlot(HasElement parent, String slot)
Gets all the child elements of the parent that are in the specified slot. -
Uses of Element in com.vaadin.flow.component.template.internal
Methods in com.vaadin.flow.component.template.internal that return Element Modifier and Type Method Description protected Element
AbstractInjectableElementInitializer. getElement()
Returns server side element to initialize.Method parameters in com.vaadin.flow.component.template.internal with type arguments of type Element Modifier and Type Method Description void
IdMapper. mapComponentOrElement(Field field, String id, String tag, Consumer<Element> beforeInject)
Maps an element or component to the given field.Constructors in com.vaadin.flow.component.template.internal with parameters of type Element Constructor Description AbstractInjectableElementInitializer(Element element)
Creates an initializer for theelement
. -
Uses of Element in com.vaadin.flow.component.treegrid
Methods in com.vaadin.flow.component.treegrid with parameters of type Element Modifier and Type Method Description Rendering<SOURCE>
HierarchyColumnComponentRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
-
Uses of Element in com.vaadin.flow.component.webcomponent
Methods in com.vaadin.flow.component.webcomponent with parameters of type Element Modifier and Type Method Description WebComponentBinding<C>
WebComponentConfiguration. createWebComponentBinding(Instantiator instantiator, Element element, elemental.json.JsonObject newAttributeDefaults)
Creates a newWebComponentBinding
instance.Constructors in com.vaadin.flow.component.webcomponent with parameters of type Element Constructor Description WebComponent(WebComponentBinding binding, Element componentHost)
Constructs aWebComponent
.WebComponentWrapper(Element rootElement, WebComponentBinding<?> binding)
Wrapper class for the server side WebComponent.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 Element Constructor Description 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 Element Modifier and Type Method Description protected 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 Element Modifier and Type Method Description protected Element
TextRenderer. createElement(String item)
Creates a newElement
that represent the rendereditem
.protected Element
ComponentDataGenerator. getContainer()
Element
Rendering. getTemplateElement()
Deprecated.since Vaadin 22Methods in com.vaadin.flow.data.renderer with parameters of type Element Modifier and Type Method Description static <T> void
RendererUtil. registerEventHandlers(Renderer<T> renderer, Element contentTemplate, Element templateDataHost, ValueProvider<String,T> keyMapper)
Registers the event handlers associated to aTemplateRenderer
, if any.Rendering<SOURCE>
BasicRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Rendering<SOURCE>
ComponentRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Rendering<SOURCE>
LitRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper)
Sets up rendering of model objects inside a givenElement container
element.Rendering<SOURCE>
LitRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Deprecated.LitRenderer doesn't support<template>
elements.Rendering<SOURCE>
LitRenderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, String rendererName)
Sets up rendering of model objects inside a givenElement container
element.Rendering<SOURCE>
Renderer. render(Element container, DataKeyMapper<SOURCE> keyMapper)
Handles the rendering of the model objects by creating a new<template>
element in the given container.Rendering<SOURCE>
Renderer. render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Deprecated.since Vaadin 22void
ComponentDataGenerator. setContainer(Element container)
-
Uses of Element in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom that return Element Modifier and Type Method Description static 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
ElementFactory. createDiv(String textContent)
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
Element. get(StateNode node)
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
Element. getChild(int index)
Returns the child element at the given position.Element
ElementStateProvider. getChild(StateNode node, int index)
Returns the child element at the given position.Element
Node. getChild(int index)
Returns the child element at the given position.Element
ShadowRoot. getHost()
Element
Element. getParent()
Gets the parent element.protected Element
Element. getSelf()
Element
DomEvent. getSource()
Returns the element on which the listener has been attached.Element
ElementAttachEvent. getSource()
Element
ElementDetachEvent. getSource()
Element
PropertyChangeEvent. getSource()
Element
Element. removeAttribute(String attribute)
Removes the given attribute.Element
Element. removeFromParent()
Removes this element from its parent.Element
Element. removeFromTree()
Removes this element from its parent and state tree.Element
Element. removeFromTree(boolean sendDetach)
Removes this element from its parent and state tree.Element
Element. removeProperty(String name)
Removes the given property.Element
Element. scrollIntoView()
Executes the similarly named DOM method on the client side.Element
Element. setAttribute(String attribute, boolean value)
Sets the given attribute to the given boolean value.Element
Element. setAttribute(String attribute, AbstractStreamResource resource)
Sets the given attribute to the givenStreamResource
value.Element
Element. setAttribute(String attribute, String value)
Sets the given attribute to the given value.Element
Element. setEnabled(boolean enabled)
Sets the enabled state of the element.Element
Element. setProperty(String name, boolean value)
Sets the given property to the given boolean value.Element
Element. setProperty(String name, double value)
Sets the given property to the given numeric value.Element
Element. setProperty(String name, String value)
Sets the given property to the given string value.Element
Element. setPropertyBean(String name, Object value)
Sets the given property to the given bean, converted to a JSON object.Element
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
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.Element
Element. setText(String textContent)
Sets the text content of this element, replacing any existing children.Element
Element. setVisible(boolean visible)
Sets the element visibility value.Methods in com.vaadin.flow.dom that return types with arguments of type Element Modifier and Type Method Description static Optional<Element>
ElementUtil. fromJsoup(org.jsoup.nodes.Node node)
Converts a given JSoupNode
and its children into a matchingElement
hierarchy.Stream<Element>
Element. getChildren()
Gets all the children of this element.Stream<Element>
Node. getChildren()
Gets all the children of this element.Optional<Element>
DomEvent. getEventDataElement(String eventDataExpression)
Gets the closestElement
corresponding to the given event data expression.Optional<Element>
DomEvent. getEventTarget()
Gets the closestElement
that corresponds to theevent.target
for the DOM event.Methods in com.vaadin.flow.dom with parameters of type Element Modifier and Type Method Description void
ChildElementConsumer. accept(Element child)
This callback method is called when the request initiated by theNode.appendChild(Element...)
method is successfully executed.N
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.N
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.N
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
ElementUtil. isScript(Element element)
Checks whether the given element is ascript
or not.default void
ChildElementConsumer. onError(Node<?> parent, String tag, Element previousSibling)
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.N
Node. removeChild(Element... children)
Removes the given child element(s).N
Node. removeVirtualChild(Element... children)
Removes the given children that have been attached as the virtual children of this element.N
Node. setChild(int index, Element child)
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
ElementUtil. setInert(Element element, boolean inert)
Sets whether or not the given element is inert.static org.jsoup.nodes.Node
ElementUtil. toJsoup(org.jsoup.nodes.Document document, Element element)
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 Element Modifier and Type Method Description N
Node. appendChild(Collection<Element> children)
Adds the given children as the last children of this element.N
Node. appendVirtualChild(Collection<Element> children)
Appends the given children as the virtual children of the element.N
Node. insertChild(int index, Collection<Element> children)
Inserts the given child element(s) at the given position.N
Node. removeChild(Collection<Element> children)
Removes the given child element(s).N
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 Element Constructor Description DomEvent(Element source, String eventType, elemental.json.JsonObject eventData)
Creates 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 Element Modifier and Type Method Description Element
AbstractNodeStateProvider. getChild(StateNode node, int index)
Element
AbstractTextElementStateProvider. getChild(StateNode node, int index)
Methods in com.vaadin.flow.dom.impl with parameters of type Element Modifier and Type Method Description void
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)
String
ClassAttributeHandler. getAttribute(Element element)
abstract String
CustomAttribute. getAttribute(Element element)
Gets the value that should be returned bygetAttribute(String)
for this attribute.String
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 Element Constructor Description ThemeListImpl(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 Element Modifier and Type Method Description Element
AttachExistingElementFeature. getPreviousSibling(StateNode node)
Gets previous sibling of the registerednode
.Methods in com.vaadin.flow.internal.nodefeature with parameters of type Element Modifier and Type Method Description void
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 Element Modifier and Type Method Description static 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 Element Modifier and Type Method Description static <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.webcomponent
Methods in com.vaadin.flow.server.webcomponent that return types with arguments of type Element Modifier and Type Method Description List<Element>
WebComponentConfigurationRegistry. 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 Element Modifier and Type Method Description void
WebComponentConfigurationRegistry. setShadowDomElements(List<Element> elements)
Set the elements that should be added to each shadow dom hosting an embedded web component.
-