All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webforj.component.html.elements.Legend Maven / Gradle / Ivy

There is a newer version: 24.20
Show newest version
package com.webforj.component.html.elements;

import com.webforj.component.element.annotation.NodeName;
import com.webforj.component.html.HtmlComponent;

/**
 * Component representing a {@code legend} element.
 *
 * @see HTML legend
 *      Tag
 *
 * @author Hyyan Abo Fakher
 * @since 23.06
 */
@NodeName("legend")
public class Legend extends HtmlComponent {

  /**
   * Creates a new legend.
   */
  public Legend() {
    super();
  }

  /**
   * Creates a new legend with the given text.
   *
   * @param text the text
   */
  public Legend(String text) {
    this();
    setText(text);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy