Class AbstractElementContainer<T extends AbstractUIElement>

Type Parameters:
T - The type of elements that may be children of the element
Direct Known Subclasses:
Article, Div, Footer, Header, HGroup, Section

public abstract class AbstractElementContainer<T extends AbstractUIElement>
extends AbstractUIElement
A parent class for elements made to be containers of other elements (i.e., divs, headers, hgroup, etc.)
  • Field Details

  • Constructor Details

    • AbstractElementContainer

      public AbstractElementContainer​(String id, List<String> cssClasses, String style, List<T> children, boolean hidden, Map<String,​String> customAttributes)
    • AbstractElementContainer

      public AbstractElementContainer()
  • Method Details

    • addChild

      public void addChild​(T child)
      Adds a child to the element
      Parameters:
      child - The child to add as a child of the element
    • removeChild

      public void removeChild​(T child)
      Removes a child from the element
      Parameters:
      child - The child to remove from the element
    • getChildren

      public List<T> getChildren()