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 ElementComponent. getElement()Gets the root element of this component.ElementComposite. getElement()Gets the root element of this composite.ElementHasElement. getElement()Gets the element associated with this instance.ElementUI. 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 (ifmapComponentistrue).static voidComponentUtil. 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.GPropertyDescriptor. get(Element element)Gets the property value for the given element.static ComponentComponentUtil. getInnermostComponent(Element element)Gets the innermost mapped component for the element.voidPropertyDescriptor. set(Element element, S value)Sets 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 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 voidConfirmDialog. setCancelButton(Element element)Sets custom cancel buttonvoidConfirmDialog. setConfirmButton(Element element)Sets custom confirm buttonvoidConfirmDialog. setHeader(Element element)Sets confirmation dialog custom header elementvoidConfirmDialog. setRejectButton(Element element)Sets custom Reject buttonvoidConfirmDialog. 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 ElementDialog.DialogHeaderFooter. rootprotected ElementDialog.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 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 Modifier and Type Method Description protected static RegistrationFieldHighlighterInitializer. 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 ElementAbstractColumn. footerTemplateprotected ElementAbstractColumn. footerTemplateprotected ElementAbstractColumn. headerTemplateprotected ElementAbstractColumn. headerTemplateMethods in com.vaadin.flow.component.grid that return Element Modifier and Type Method Description ElementGrid.Column. getElement()Gets the underlying<vaadin-grid-column>element.protected ElementGrid.UpdateQueue. getElement()ElementGridArrayUpdater.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 newDataCommunicatorobject 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 ElementAbstractInjectableElementInitializer. 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 voidIdMapper. 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 newWebComponentBindinginstance.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 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 Element Modifier and Type Method Description protected ElementTextRenderer. createElement(String item)Creates a newElementthat represent the rendereditem.protected ElementComponentDataGenerator. getContainer()ElementRendering. getTemplateElement()Deprecated.since Vaadin 22Methods in com.vaadin.flow.data.renderer with parameters of type Element Modifier and Type Method Description static <T> voidRendererUtil. 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 containerelement.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 containerelement.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 22voidComponentDataGenerator. 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 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 ElementElementFactory. createDiv(String textContent)Creates 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 ElementElement. get(StateNode node)Gets 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.ElementElement. getChild(int index)Returns the child element at the given position.ElementElementStateProvider. getChild(StateNode node, int index)Returns the child element at the given position.ElementNode. getChild(int index)Returns the child element at the given position.ElementShadowRoot. getHost()ElementElement. getParent()Gets the parent element.protected ElementElement. getSelf()ElementDomEvent. getSource()Returns the element on which the listener has been attached.ElementElementAttachEvent. getSource()ElementElementDetachEvent. getSource()ElementPropertyChangeEvent. getSource()ElementElement. removeAttribute(String attribute)Removes the given attribute.ElementElement. removeFromParent()Removes this element from its parent.ElementElement. removeFromTree()Removes this element from its parent and state tree.ElementElement. removeProperty(String name)Removes the given property.ElementElement. scrollIntoView()Executes the similarly named DOM method on the client side.ElementElement. setAttribute(String attribute, boolean value)Sets the given attribute to the given boolean value.ElementElement. setAttribute(String attribute, AbstractStreamResource resource)Sets the given attribute to the givenStreamResourcevalue.ElementElement. setAttribute(String attribute, String value)Sets the given attribute to the given value.ElementElement. setEnabled(boolean enabled)Sets the enabled state of the element.ElementElement. setProperty(String name, boolean value)Sets the given property to the given boolean value.ElementElement. setProperty(String name, double value)Sets the given property to the given numeric value.ElementElement. setProperty(String name, String value)Sets the given property to the given string value.ElementElement. setPropertyBean(String name, Object value)Sets the given property to the given bean, converted to a JSON object.ElementElement. setPropertyJson(String name, elemental.json.JsonValue 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.ElementElement. setPropertyMap(String name, Map<String,?> value)Sets the given property to the given map of beans or primitive values, converted to a JSON object.ElementElement. setText(String textContent)Sets the text content of this element, replacing any existing children.ElementElement. 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 JSoupNodeand its children into a matchingElementhierarchy.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 closestElementcorresponding to the given event data expression.Optional<Element>DomEvent. getEventTarget()Gets the closestElementthat corresponds to theevent.targetfor the DOM event.Methods in com.vaadin.flow.dom with parameters of type Element Modifier and Type Method Description voidChildElementConsumer. accept(Element child)This callback method is called when the request initiated by theNode.appendChild(Element...)method is successfully executed.NNode. 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.NNode. 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.NNode. 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 booleanElementUtil. isScript(Element element)Checks whether the given element is ascriptor not.default voidChildElementConsumer. onError(Node<?> parent, String tag, Element previousSibling)This 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.NNode. removeChild(Element... children)Removes the given child element(s).NNode. removeVirtualChild(Element... children)Removes the given children that have been attached as the virtual children of this element.NNode. setChild(int index, Element child)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 voidElementUtil. setInert(Element element, boolean inert)Sets whether or not the given element is inert.static org.jsoup.nodes.NodeElementUtil. toJsoup(org.jsoup.nodes.Document document, Element element)Converts 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 Element Modifier and Type Method Description NNode. appendChild(Collection<Element> children)Adds the given children as the last children of this element.NNode. appendVirtualChild(Collection<Element> children)Appends the given children as the virtual children of the element.NNode. insertChild(int index, Collection<Element> children)Inserts the given child element(s) at the given position.NNode. removeChild(Collection<Element> children)Removes the given child element(s).NNode. 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 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 Element Modifier and Type Method Description ElementAbstractNodeStateProvider. getChild(StateNode node, int index)ElementAbstractTextElementStateProvider. getChild(StateNode node, int index)Methods in com.vaadin.flow.dom.impl with parameters of type Element Modifier and Type Method Description voidAbstractNodeStateProvider. 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)StringClassAttributeHandler. getAttribute(Element element)abstract StringCustomAttribute. getAttribute(Element element)Gets the value that should be returned bygetAttribute(String)for this attribute.StringStyleAttributeHandler. 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 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 ElementAttachExistingElementFeature. 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 voidAttachExistingElementFeature. 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 Element Modifier and Type Method Description static 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 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 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.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 voidWebComponentConfigurationRegistry. setShadowDomElements(List<Element> elements)Set the elements that should be added to each shadow dom hosting an embedded web component.
-