Class HtmlElementText<SELF extends HtmlElementText<SELF>>

java.lang.Object
org.apache.juneau.bean.html5.HtmlElement<SELF>
org.apache.juneau.bean.html5.HtmlElementText<SELF>
Type Parameters:
SELF - The self type for fluent setters.
Direct Known Subclasses:
Bdi, Option

public abstract class HtmlElementText<SELF extends HtmlElementText<SELF>> extends HtmlElement<SELF>
A subclass of HTML elements that contain text only.
See Also:
  • Constructor Details

  • Method Details

    • getText

      Returns the inner text of this element.
      Returns:
      The inner text of this element, or null if no text is set.
    • setText

      @BeanProp("c") public SELF setText(Object text)
      Sets the inner text of this element.
      Parameters:
      text - The inner text of this element, or null if no text is set.
      Returns:
      This object.
    • text

      public SELF text(Object value)
      Sets the text node on this element.
      Parameters:
      value - The text node to add to this element. Can be null to leave the text unset.
      Returns:
      This object.