Modifier and Type | Method and Description |
---|---|
Element |
UI.getElement()
Gets the element for this UI.
|
Element |
HasElement.getElement()
Gets the element associated with this instance.
|
Element |
Composite.getElement()
Gets the root element of this composite.
|
Element |
Component.getElement()
Gets the root element of this component.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Component> |
ComponentUtil.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
(if
mapComponent is true ). |
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> |
Component.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.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Element |
AppLayout.getContent()
Returns the
Element |
Element |
AppLayoutMenu.getElement()
Gets the element associated with this instance.
|
Element |
AbstractAppRouterLayout.getElement() |
Element |
AppLayout.getMenu() |
Modifier and Type | Method and Description |
---|---|
void |
AppLayout.setBranding(Element branding)
Sets the element into branding area
|
void |
AppLayout.setContent(Element content)
Sets the displayed content.
|
void |
AppLayout.setMenu(Element menu)
Sets the element to be placed in the menu slot.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfirmDialog.setCancelButton(Element element)
Sets custom cancel button
|
void |
ConfirmDialog.setConfirmButton(Element element)
Sets custom confirm button
|
void |
ConfirmDialog.setHeader(Element element)
Sets confirmation dialog custom header element
|
void |
ConfirmDialog.setRejectButton(Element element)
Sets custom Reject button
|
void |
ConfirmDialog.setText(Element element)
Sets custom confirmation message element
|
Modifier and Type | Method and Description |
---|---|
Element |
GridArrayUpdater.UpdateQueueData.getElement() |
protected Element |
Grid.UpdateQueue.getElement() |
Element |
Grid.Column.getElement()
Gets the underlying
<vaadin-grid-column> element. |
Modifier and Type | Method and Description |
---|---|
protected DataCommunicator<T> |
Grid.DataCommunicatorBuilder.build(Element element,
CompositeDataGenerator<T> dataGenerator,
U arrayUpdater,
SerializableSupplier<ValueProvider<T,String>> uniqueKeyProviderSupplier)
Build a new
DataCommunicator object for the given Grid
instance. |
Constructor and Description |
---|
UpdateQueueData(Element element,
String uniqueKeyProperty) |
Modifier and Type | Method and Description |
---|---|
Rendering<T> |
EditorRenderer.render(Element container,
DataKeyMapper<T> keyMapper,
Element contentTemplate) |
Modifier and Type | Method and Description |
---|---|
protected Element |
ComponentDataGenerator.getContainer() |
protected abstract Element |
AbstractComponentDataGenerator.getContainer()
Gets the element where the generated components will be attached to.
|
Modifier and Type | Method and Description |
---|---|
void |
ComponentDataGenerator.setContainer(Element container) |
Modifier and Type | Method and Description |
---|---|
protected Element |
TextRenderer.createElement(String item)
Creates a new
Element that represent the rendered item . |
Element |
Rendering.getTemplateElement()
Gets the
<template> element associated with the rendering. |
Modifier and Type | Method and Description |
---|---|
static <T> void |
RendererUtil.registerEventHandlers(Renderer<T> renderer,
Element contentTemplate,
Element templateDataHost,
ValueProvider<String,T> keyMapper)
Registers the event handlers associated to a
TemplateRenderer , if
any. |
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)
Handles the rendering of the model objects by using the given
<template> element in the given container. |
Rendering<SOURCE> |
ComponentRenderer.render(Element container,
DataKeyMapper<SOURCE> keyMapper,
Element contentTemplate) |
Rendering<SOURCE> |
BasicRenderer.render(Element container,
DataKeyMapper<SOURCE> keyMapper,
Element contentTemplate) |
Modifier and Type | Method and Description |
---|---|
Element |
Element.addSynchronizedProperty(String property)
Adds the property whose value should automatically be synchronized from
the client side and updated in this
Element . |
Element |
Element.addSynchronizedProperty(String property,
DisabledUpdateMode mode)
Adds the property whose value should automatically be synchronized from
the client side and updated in this
Element . |
Element |
Element.addSynchronizedPropertyEvent(String eventType)
Adds the event to use for property synchronization from the client side.
|
static Element |
ElementFactory.createAnchor()
Creates an
<a> element. |
static Element |
ElementFactory.createAnchor(String href)
Creates an
<a> with the given href attribute. |
static Element |
ElementFactory.createAnchor(String href,
String textContent)
Creates an
<a> element with the given href 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 given href 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 |
Node.getChild(int index)
Returns the child element at the given position.
|
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 |
ShadowRoot.getHost() |
Element |
Element.getParent()
Gets the parent element.
|
protected Element |
Element.getSelf() |
Element |
PropertyChangeEvent.getSource() |
Element |
ElementDetachEvent.getSource() |
Element |
ElementAttachEvent.getSource() |
Element |
DomEvent.getSource() |
Element |
Element.removeAttribute(String attribute)
Removes the given attribute.
|
Element |
Element.removeFromParent()
Removes this element from its parent.
|
Element |
Element.removeProperty(String name)
Removes the given property.
|
Element |
Element.removeSynchronizedProperty(String property)
Removes the property from the synchronized properties set (
getSynchronizedProperties() ). |
Element |
Element.removeSynchronizedPropertyEvent(String eventType)
Removes the event from the event set that is used for property
synchronization (
getSynchronizedPropertyEvents() ). |
Element |
Element.setAttribute(String attribute,
AbstractStreamResource resource)
Sets the given attribute to the given
StreamResource value. |
Element |
Element.setAttribute(String attribute,
boolean value)
Sets the given attribute to the given boolean 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.setPropertyJson(String name,
elemental.json.JsonValue value)
Sets the given property to the given JSON value.
|
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.
|
Element |
Element.synchronizeProperty(String property,
String eventType)
Synchronize the given
property 's value when the given
eventType occurs on this element on the client side. |
Element |
Element.synchronizeProperty(String property,
String eventType,
DisabledUpdateMode mode)
Synchronize the given
property 's value when the given
eventType occurs on this element on the client side. |
Modifier and Type | Method and Description |
---|---|
Stream<Element> |
Node.getChildren()
Gets all the children of this element.
|
Stream<Element> |
Element.getChildren()
Gets all the children of this element.
|
Modifier and Type | Method and Description |
---|---|
void |
ChildElementConsumer.accept(Element child)
This callback method is called when the request initiated by the
Node.appendChild(Element...) method is successfully executed. |
N |
Node.appendChild(Element... children)
Adds the given children as the last children of this element.
|
N |
Node.appendVirtualChild(Element... children)
Appends the given children as the virtual children of the element.
|
void |
ElementStateProvider.appendVirtualChild(StateNode node,
Element child,
String type,
String payload)
Append the given element as a virtual child.
|
void |
ElementStateProvider.attachExistingElement(StateNode node,
String tagName,
Element previousSibling,
ChildElementConsumer callback)
Attaches a child element with the given
tagName which is the next
sibling for the previousSibling . |
protected void |
Node.ensureChildHasParent(Element child,
boolean internalCheck)
Ensures that the
child has the correct parent. |
int |
Node.indexOfChild(Element child)
Returns the index of the specified
child in the children list, or
-1 if this list does not contain the child . |
N |
Node.insertChild(int index,
Element... children)
Inserts the given child element(s) at the given position.
|
void |
ElementStateProvider.insertChild(StateNode node,
int index,
Element child)
Inserts the given child 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 a
script 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 provided
parent by the tag name after the
previousSibling . |
N |
Node.removeChild(Element... children)
Removes the given child element(s).
|
void |
ElementStateProvider.removeChild(StateNode node,
Element child)
Removes the given child.
|
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 given
Component . |
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 the
element using provided element type . |
Constructor and 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 new
PropertyChangeEvent event containing the current
property value of the given element. |
Modifier and Type | Method and Description |
---|---|
Element |
AbstractTextElementStateProvider.getChild(StateNode node,
int index) |
Element |
AbstractNodeStateProvider.getChild(StateNode node,
int index) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTextElementStateProvider.appendVirtualChild(StateNode node,
Element child,
String type,
String payload) |
void |
AbstractNodeStateProvider.appendVirtualChild(StateNode node,
Element child,
String type,
String payload) |
void |
AbstractTextElementStateProvider.attachExistingElement(StateNode node,
String tagName,
Element previousSibling,
ChildElementConsumer callback) |
void |
AbstractNodeStateProvider.attachExistingElement(StateNode node,
String tagName,
Element previousSibling,
ChildElementConsumer callback) |
String |
StyleAttributeHandler.getAttribute(Element element) |
abstract String |
CustomAttribute.getAttribute(Element element)
Gets the value that should be returned by
getAttribute(String) for this attribute. |
String |
ClassAttributeHandler.getAttribute(Element element) |
boolean |
StyleAttributeHandler.hasAttribute(Element element) |
abstract boolean |
CustomAttribute.hasAttribute(Element element)
Checks what
hasAttribute(String) should return for this
attribute. |
boolean |
ClassAttributeHandler.hasAttribute(Element element) |
void |
AbstractTextElementStateProvider.insertChild(StateNode node,
int index,
Element child) |
void |
AbstractNodeStateProvider.insertChild(StateNode node,
int index,
Element child) |
void |
StyleAttributeHandler.removeAttribute(Element element) |
abstract void |
CustomAttribute.removeAttribute(Element element)
Removes the attribute when
removeAttribute(String) is
called for this attribute. |
void |
ClassAttributeHandler.removeAttribute(Element element) |
void |
AbstractTextElementStateProvider.removeChild(StateNode node,
Element child) |
void |
AbstractNodeStateProvider.removeChild(StateNode node,
Element child) |
void |
StyleAttributeHandler.setAttribute(Element element,
String attributeValue) |
abstract void |
CustomAttribute.setAttribute(Element element,
String value)
Sets the value when
setAttribute(String, String) is
called for this attribute. |
void |
ClassAttributeHandler.setAttribute(Element element,
String value) |
Constructor and Description |
---|
ThemeListImpl(Element element)
Creates new theme list for element specified.
|
Modifier and Type | Method and Description |
---|---|
Element |
AttachExistingElementFeature.getPreviousSibling(StateNode node)
Gets previous sibling of the registered
node . |
Modifier and Type | Method and Description |
---|---|
void |
AttachExistingElementFeature.register(Node<?> parent,
Element previousSibling,
StateNode child,
ChildElementConsumer callback)
Registers the data for the
child node requested as being attached
to an existing element. |
Modifier and Type | Method and Description |
---|---|
static List<LocaleChangeObserver> |
EventUtil.collectLocaleChangeObservers(Element element)
Collect all Components implementing
LocaleChangeObserver
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.
|
Modifier and Type | Method and 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.
|
Copyright © 2019. All rights reserved.