Package org.patternfly.core
Interface ElementDelegate<E extends Element,B extends TypedBuilder<E,B>>
-
- All Superinterfaces:
Container<E,B>,HasElement<E,B>,IsElement<E>,TypedBuilder<E,B>
public interface ElementDelegate<E extends Element,B extends TypedBuilder<E,B>> extends TypedBuilder<E,B>, HasElement<E,B>, Container<E,B>
Delegates all methods related to text and inner HTML fromHasElementand alladd()methods fromContainerto the element returned bydelegate().Please note that if you implement this interface in your (sub)component, you must use
element().appendChild()to add something to the (sub)component itself!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Badd(Node node)default Badd(String text)HTMLElementdelegate()default BinnerHtml(SafeHtml html)default BtextContent(String text)default BtextNode(String text)-
Methods inherited from interface org.jboss.elemento.Container
add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, on, run, toggle, toggle, toggle, uniqueId
-
Methods inherited from interface org.jboss.elemento.TypedBuilder
that
-
-
-
-
Method Detail
-
delegate
HTMLElement delegate()
-
textContent
default B textContent(String text)
- Specified by:
textContentin interfaceHasElement<E extends Element,B extends TypedBuilder<E,B>>
-
textNode
default B textNode(String text)
- Specified by:
textNodein interfaceHasElement<E extends Element,B extends TypedBuilder<E,B>>
-
add
default B add(String text)
- Specified by:
addin interfaceHasElement<E extends Element,B extends TypedBuilder<E,B>>
-
innerHtml
default B innerHtml(SafeHtml html)
- Specified by:
innerHtmlin interfaceHasElement<E extends Element,B extends TypedBuilder<E,B>>
-
-