Package org.jboss.elemento
Interface HasElement<E extends Element,B extends TypedBuilder<E,B>>
- All Superinterfaces:
IsElement<E>
,TypedBuilder<E,
B>
- All Known Implementing Classes:
InputElementBuilder
@Deprecated
public interface HasElement<E extends Element,B extends TypedBuilder<E,B>>
extends TypedBuilder<E,B>, IsElement<E>
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptiondefault B
Deprecated.Adds the given text as a text node.default B
Deprecated.Provides a way to modify the wrapped element using the specified consumer.default B
Deprecated.Adds anaria-
attribute to the element.default B
Deprecated.Adds anaria-
attribute to the element.default B
Deprecated.Adds anaria-
attribute to the element.default B
Deprecated.Sets the specified attribute of the element.default B
Deprecated.Sets the specified attribute of the element.default B
Deprecated.Sets the specified attribute of the element.Deprecated.default B
Deprecated.default B
Deprecated.Adds the specified CSS classes to the class list of the element.default B
Deprecated.Sets the id on the element.default B
Deprecated.Modifies the inner HTML on the element usingElement.innerHTML
.on
(EventType<V, ?> type, boolean useCapture, EventCallbackFn<V> callback) Deprecated.on
(EventType<V, ?> type, AddEventListenerOptions options, EventCallbackFn<V> callback) Deprecated.on
(EventType<V, ?> type, EventCallbackFn<V> callback) Deprecated.Adds the given callback to the element.default B
Deprecated.Executes code in the context of this builder.default B
textContent
(String text) Deprecated.Sets the inner text on the element usingNode.textContent
.default B
Deprecated.Changes the text of the first text node (if any) or adds the given text as a new text node.default B
Deprecated.Toggle the class value; i.e., if the class exists, then remove it, if not, then add it.default B
Deprecated.Adds (force=true) or removes (force=false) the specified CSS class to the class list of the element.default B
Deprecated.Adds (force=true) or removes (force=false) the specified CSS class to the class list of the element.default B
uniqueId()
Deprecated.Generates and sets a unique id on the element.Methods inherited from interface org.jboss.elemento.TypedBuilder
that
-
Method Details
-
uniqueId
Deprecated.Generates and sets a unique id on the element. -
id
Deprecated.Sets the id on the element. -
textContent
Deprecated.Sets the inner text on the element usingNode.textContent
. If you want to preserve existing child elements and just want to change the text of the text node, usetextNode(String)
. -
textNode
Deprecated.Changes the text of the first text node (if any) or adds the given text as a new text node. Use this method instead ofNode.textContent
if you want to preserve existing child elements. -
add
Deprecated.Adds the given text as a text node. -
css
Deprecated.Adds the specified CSS classes to the class list of the element. -
toggle
Deprecated.Toggle the class value; i.e., if the class exists, then remove it, if not, then add it. -
toggle
Deprecated.Adds (force=true) or removes (force=false) the specified CSS class to the class list of the element. -
toggle
Deprecated.Adds (force=true) or removes (force=false) the specified CSS class to the class list of the element. -
classList
Deprecated. -
classList
Deprecated. -
attr
Deprecated.Sets the specified attribute of the element. -
attr
Deprecated.Sets the specified attribute of the element. -
attr
Deprecated.Sets the specified attribute of the element. -
aria
Deprecated.Adds anaria-
attribute to the element.- Parameters:
name
- The name of the aria attributes w/o thearia-
prefix. However, it won't be added if it's already present.
-
aria
Deprecated.Adds anaria-
attribute to the element.- Parameters:
name
- The name of the aria attributes w/o thearia-
prefix. However, it won't be added if it's already present.
-
aria
Deprecated.Adds anaria-
attribute to the element.- Parameters:
name
- The name of the aria attributes w/o thearia-
prefix. However, it won't be added if it's already present.
-
apply
Deprecated.Provides a way to modify the wrapped element using the specified consumer. -
run
Deprecated.Executes code in the context of this builder. -
on
Deprecated.Adds the given callback to the element.HTMLLIElement listItem = li() .add(div().css("view") .add(input(checkbox) .css("toggle") .on(change, event -> ...)) .add(label() .text("Taste Elemento") .on(dblclick, event -> ...)) .add(button() .css("destroy") .on(click, event -> ...))) .add(input(text) .css("edit") .on(keydown, event -> ...) .on(blur, event -> ...)) .element();
-
on
default <V extends Event> B on(EventType<V, ?> type, boolean useCapture, EventCallbackFn<V> callback) Deprecated. -
on
default <V extends Event> B on(EventType<V, ?> type, AddEventListenerOptions options, EventCallbackFn<V> callback) Deprecated.
-
ElementAttributeMethods
ElementClassListMethods
ElementConsumerMethods
ElementContainerMethods
ElementEventMethods
ElementIdMethods
ElementTextMethods