Class FieldSet

All Implemented Interfaces:
Component, Container, Serializable, Cloneable

public class FieldSet extends AbstractContainer
A HTML fieldset element.
See Also:
  • Field Details

    • legendElem

      protected Element legendElem
  • Constructor Details

    • FieldSet

      public FieldSet()
      Creates a new and empty fieldset.
    • FieldSet

      public FieldSet(String legend)
      Creates a new fieldset and sets a legend element for it
    • FieldSet

      public FieldSet(String legend, String id)
      Creates a new fieldset, sets a legend element for it and defines an id
  • Method Details

    • setContent

      public void setContent(Object o)
      Set content for the fieldset
      Specified by:
      setContent in interface Component
      Overrides:
      setContent in class AbstractComponent
      Parameters:
      o - any object where the string representation is used for rendering
    • getContent

      public Object getContent()
      Returns the content (element)
      Specified by:
      getContent in interface Component
      Overrides:
      getContent in class AbstractComponent
      Returns:
      the content object of the component
    • setLegend

      public void setLegend(String legend)
      Set a legend for the fieldset (like a title)