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 (ifmapComponentistrue).static voidComponentUtil.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 ComponentComponentUtil.getInnermostComponent(Element element) Gets the innermost mapped component for the element.voidSets the property value for the given element.protected static voidComponent.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.protectedCreates 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. -
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 ElementDragSource.getDraggableElement()Returns the element where thedraggableattribute is applied, making it draggable by the user.default ElementDragSource.getElement()default ElementDropTarget.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 ElementGrid.UpdateQueue.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 newDataCommunicatorobject 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 ElementReactAdapterComponent.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 ElementAbstractInjectableElementInitializer.getElement()Returns server side element to initialize.Method parameters in com.vaadin.flow.component.template.internal with type arguments of type ElementModifier and TypeMethodDescriptionvoidMaps an element or component to the given field.Constructors in com.vaadin.flow.component.template.internal with parameters of type ElementModifierConstructorDescriptionprotectedCreates 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, tools.jackson.databind.JsonNode newAttributeDefaults) Creates a newWebComponentBindinginstance.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.protectedWebComponentWrapper(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 ElementModifierConstructorDescriptionprotectedWebComponentWrapper(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 ElementAbstractComponentDataGenerator.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 ElementTextRenderer.createElement(String item) Creates a newElementthat represent the rendereditem.protected ElementComponentDataGenerator.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.voidComponentDataGenerator.setContainer(Element container) -
Uses of Element in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom that return ElementModifier and TypeMethodDescriptionstatic ElementElementFactory.createAnchor()Creates an<a>element.static ElementElementFactory.createAnchor(String href) Creates an<a>with the givenhrefattribute.static ElementElementFactory.createAnchor(String href, String textContent) Creates an<a>element with the givenhrefattribute and text content.static ElementElementFactory.createBr()Creates a<br>element.static ElementElementFactory.createButton()Creates a<button>element.static ElementElementFactory.createButton(String textContent) Creates a<button>with the given text content.static ElementElementFactory.createDiv()Creates a<div>element.static ElementCreates a<div>with the given text content.static ElementElementFactory.createEmphasis()Creates an<em>element.static ElementElementFactory.createEmphasis(String textContent) Creates an<em>element with the given text content.static ElementElementFactory.createHeading1()Creates an<h1>element.static ElementElementFactory.createHeading1(String textContent) Creates a<h1>element with the given text content.static ElementElementFactory.createHeading2()Creates an<h2>element.static ElementElementFactory.createHeading2(String textContent) Creates a<h2>element with the given text content.static ElementElementFactory.createHeading3()Creates an<h3>element.static ElementElementFactory.createHeading3(String textContent) Creates a<h3>element with the given text content.static ElementElementFactory.createHeading4()Creates an<h4>element.static ElementElementFactory.createHeading4(String textContent) Creates a<h4>element with the given text content.static ElementElementFactory.createHeading5()Creates an<h5>element.static ElementElementFactory.createHeading5(String textContent) Creates a<h5>element with the given text content.static ElementElementFactory.createHeading6()Creates an<h6>element.static ElementElementFactory.createHeading6(String textContent) Creates a<h6>element with the given text content.static ElementElementFactory.createHr()Creates an<hr>element.static ElementElementFactory.createInput()Creates an<input>element.static ElementElementFactory.createInput(String type) Creates an<input>element with the given type.static ElementElementFactory.createLabel()Creates an<label>element.static ElementElementFactory.createLabel(String textContent) Creates an<label>element with the given text content.static ElementElementFactory.createListItem()Creates an<li>element.static ElementElementFactory.createListItem(String textContent) Creates an<li>element with the given text content.static ElementElementFactory.createOption()Creates an<option>element.static ElementElementFactory.createOption(String textContent) Creates an<option>element with the given text content.static ElementElementFactory.createParagraph()Creates a<p>element.static ElementElementFactory.createParagraph(String textContent) Creates a<p>element with the given text content.static ElementElementFactory.createPreformatted()Creates a<pre>element.static ElementElementFactory.createPreformatted(String textContent) Creates a<pre>element with the given text content.static ElementElementFactory.createRouterLink(String href, String textContent) Creates an<a>element with the givenhrefattribute, text content and the router link attribute.static ElementElementFactory.createSelect()Creates a<select>element.static ElementElementFactory.createSpan()Creates a<span>element.static ElementElementFactory.createSpan(String textContent) Creates a<span>element with the given text content.static ElementElementFactory.createStrong()Creates a<strong>element.static ElementElementFactory.createStrong(String textContent) Creates a<strong>element with the given text content.static ElementElement.createText(String text) Creates a text node with the given text.static ElementElementFactory.createTextarea()Creates a<textarea>element.static ElementElementFactory.createUnorderedList()Creates a<ul>element.static ElementGets the element mapped to the given state node.static ElementElement.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 ElementElement.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 givenStreamResourcevalue.Element.setAttribute(String attribute, ElementRequestHandler requestHandler) Sets the given attribute to the givenElementRequestHandlervalue.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, tools.jackson.databind.node.BaseJsonNode value) Sets the given property to the given JSON value.<T> ElementElement.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 JSoupNodeand its children into a matchingElementhierarchy.Element.getChildren()Gets all the children of this element.Node.getChildren()Gets all the children of this element.DomEvent.getEventDataElement(String eventDataExpression) Gets the closestElementcorresponding to the given event data expression.DomEvent.getEventTarget()Gets the closestElementthat corresponds to theevent.targetfor the DOM event.Methods in com.vaadin.flow.dom with parameters of type ElementModifier and TypeMethodDescriptionvoidThis 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.voidElementStateProvider.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.voidElementStateProvider.attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) Attaches a child element with the giventagNamewhich is the next sibling for thepreviousSibling.protected voidNode.ensureChildHasParent(Element child, boolean internalCheck) Ensures that thechildhas the correct parent.intNode.indexOfChild(Element child) Returns the index of the specifiedchildin the children list, or -1 if this list does not contain thechild.voidElementStateProvider.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 booleanElementUtil.isCustomElement(Element element) Checks whether the given element is a custom element or not.static booleanChecks whether the given element is ascriptor not.default voidThis callback method is called when the requested client element cannot be found in the providedparentby thetagname after thepreviousSibling.voidElementStateProvider.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 voidElementUtil.setComponent(Element element, Component component) Defines a mapping between this element and the givenComponent.static voidElementUtil.setIgnoreParentInert(Element element, boolean ignoreParentInert) Sets whether or not the element should inherit or not inherit its parent's inert state.static voidSets whether or not the given element is inert.static org.jsoup.nodes.NodeConverts the given element and its children to a JSoup node with children.booleanNodeVisitor.visit(NodeVisitor.ElementType type, Element element) Visit theelementusing 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 newPropertyChangeEventevent 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 TypeMethodDescriptionvoidAbstractNodeStateProvider.appendVirtualChild(StateNode node, Element child, String type, String payload) voidAbstractTextElementStateProvider.appendVirtualChild(StateNode node, Element child, String type, String payload) voidAbstractNodeStateProvider.attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) voidAbstractTextElementStateProvider.attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) ClassAttributeHandler.getAttribute(Element element) abstract StringCustomAttribute.getAttribute(Element element) Gets the value that should be returned bygetAttribute(String)for this attribute.StyleAttributeHandler.getAttribute(Element element) booleanClassAttributeHandler.hasAttribute(Element element) abstract booleanCustomAttribute.hasAttribute(Element element) Checks whathasAttribute(String)should return for this attribute.booleanStyleAttributeHandler.hasAttribute(Element element) voidAbstractNodeStateProvider.insertChild(StateNode node, int index, Element child) voidAbstractTextElementStateProvider.insertChild(StateNode node, int index, Element child) voidClassAttributeHandler.removeAttribute(Element element) abstract voidCustomAttribute.removeAttribute(Element element) Removes the attribute whenremoveAttribute(String)is called for this attribute.voidStyleAttributeHandler.removeAttribute(Element element) voidAbstractNodeStateProvider.removeChild(StateNode node, Element child) voidAbstractTextElementStateProvider.removeChild(StateNode node, Element child) voidClassAttributeHandler.setAttribute(Element element, String value) abstract voidCustomAttribute.setAttribute(Element element, String value) Sets the value whensetAttribute(String, String)is called for this attribute.voidStyleAttributeHandler.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 TypeMethodDescriptionvoidAttachExistingElementFeature.register(Node<?> parent, Element previousSibling, StateNode child, ChildElementConsumer callback) Registers the data for thechildnode 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 implementingLocaleChangeObserverconnected to the given element tree.static voidEventUtil.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 voidEventUtil.inspectHierarchy(Element node, Collection<Element> descendants, Predicate<Element> filter) Collect all children for given node as a Element stream.static voidEventUtil.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.StreamResourceRegistry.ElementStreamResource.getOwner()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.Methods in com.vaadin.flow.server with parameters of type ElementModifier and TypeMethodDescriptionStreamResourceRegistry.registerResource(ElementRequestHandler elementRequestHandler, Element owner) Registers a stream resource in the session and returns registration handler.Constructors in com.vaadin.flow.server with parameters of type ElementModifierConstructorDescriptionElementStreamResource(ElementRequestHandler elementRequestHandler, Element owner) -
Uses of Element in com.vaadin.flow.server.streams
Methods in com.vaadin.flow.server.streams that return ElementModifier and TypeMethodDescriptionDownloadEvent.getOwningElement()Get the owning element for the download related to this event.UploadEvent.getOwningElement()Get the owning element for the upload related to this event.TransferContext.owningElement()Returns the value of theowningElementrecord component.Methods in com.vaadin.flow.server.streams with parameters of type ElementModifier and TypeMethodDescriptiondefault voidDownloadHandler.handleRequest(VaadinRequest request, VaadinResponse response, VaadinSession session, Element owner) voidElementRequestHandler.handleRequest(VaadinRequest request, VaadinResponse response, VaadinSession session, Element owner) Request handler callback for handing client-server or server-client data transfer scoped to a specific (owner) element.default voidUploadHandler.handleRequest(VaadinRequest request, VaadinResponse response, VaadinSession session, Element owner) Constructors in com.vaadin.flow.server.streams with parameters of type ElementModifierConstructorDescriptionDownloadEvent(VaadinRequest request, VaadinResponse response, VaadinSession session, Element owningElement) TransferContext(VaadinRequest request, VaadinResponse response, VaadinSession session, String fileName, Element owningElement, long contentLength) Create a transfer context for data transfer progress listeners.TransferContext(VaadinRequest request, VaadinResponse response, VaadinSession session, String fileName, Element owningElement, long contentLength, Exception exception) Creates an instance of aTransferContextrecord class.UploadEvent(VaadinRequest request, VaadinResponse response, VaadinSession session, String fileName, long contentLength, String contentType, Element owningElement, org.apache.commons.fileupload2.core.FileItemInput item, jakarta.servlet.http.Part part) Create a new download event with required data. -
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 TypeMethodDescriptionvoidWebComponentConfigurationRegistry.setShadowDomElements(List<Element> elements) Set the elements that should be added to each shadow dom hosting an embedded web component.