Class Table.Cell

java.lang.Object
io.mindspice.simplypages.components.display.Table.Cell
All Implemented Interfaces:
Component
Enclosing class:
Table

public static class Table.Cell extends Object implements Component
Renderable table cell model.

Exactly one of text or component is set per instance.

  • Constructor Details

    • Cell

      public Cell(String textValue)
      Creates a text cell.
      Parameters:
      textValue - untrusted or trusted text
    • Cell

      public Cell(Component componentValue)
      Creates a component cell.
      Parameters:
      componentValue - component value
  • Method Details

    • render

      public String render(RenderContext context)
      Renders a cell, escaping text values and delegating component rendering.
      Specified by:
      render in interface Component
      Parameters:
      context - render context
      Returns:
      cell HTML
    • render

      public String render()
      Renders using empty context.
      Specified by:
      render in interface Component
      Returns:
      cell HTML