Class Section

java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.layout.Section
All Implemented Interfaces:
Component

public class Section extends HtmlTag
Semantic section wrapper for page structure.

Mutable and not thread-safe. Configure per request and avoid cross-thread reuse. For reuse, stop mutating shared instances and render stable structures with per-request context data.

  • Constructor Details

    • Section

      public Section()
      Creates a section with base class section.
  • Method Details

    • create

      public static Section create()
      Creates a new section instance.
      Returns:
      new section
    • withId

      public Section withId(String id)
      Sets the section id.
      Overrides:
      withId in class HtmlTag
      Parameters:
      id - element id
      Returns:
      this section
    • withClass

      public Section withClass(String className)
      Replaces class attribute with section <className>.
      Overrides:
      withClass in class HtmlTag
      Parameters:
      className - additional class token(s)
      Returns:
      this section
    • withChild

      public Section withChild(Component component)
      Appends a child component.
      Overrides:
      withChild in class HtmlTag
      Parameters:
      component - child component
      Returns:
      this section