Class TableImpl

All Implemented Interfaces:
ContentNode, StructuralNode, Table

public class TableImpl extends StructuralNodeImpl implements Table
  • Constructor Details

    • TableImpl

      public TableImpl(org.jruby.runtime.builtin.IRubyObject rubyObject)
  • Method Details

    • hasHeaderOption

      public boolean hasHeaderOption()
      Specified by:
      hasHeaderOption in interface Table
    • getFrame

      public String getFrame()
      Description copied from interface: Table
      Returns the frame attribute of the table that defines what frame to render around the table. By default, the frame attribute is assigned the all value, which draws a border on each side of the table. If you set the frame attribute, you can override the default value with topbot, sides or none.
      Specified by:
      getFrame in interface Table
      Returns:
      the frame attribute
    • setFrame

      public void setFrame(String frame)
      Description copied from interface: Table
      Sets the frame attribute.
      Specified by:
      setFrame in interface Table
      Parameters:
      frame - all, topbot, sides or none
      See Also:
    • getGrid

      public String getGrid()
      Description copied from interface: Table
      Returns the grid attribute that defines what boundary lines to draw between rows and columns. By default the grid attribute is assigned the all value, which draws lines around each cell. Alternative values are cols to draw lines between columns, rows to draw boundary lines between rows and none to draw no boundary lines
      Specified by:
      getGrid in interface Table
      Returns:
      the value of the grid attribute, usually either all, cols, rows or none
    • setGrid

      public void setGrid(String grid)
      Description copied from interface: Table
      Sets the value of the attribute.
      Specified by:
      setGrid in interface Table
      Parameters:
      grid - usually either all, cols, rows or none
      See Also:
    • getColumns

      public List<Column> getColumns()
      Specified by:
      getColumns in interface Table
    • getFooter

      public List<Row> getFooter()
      Specified by:
      getFooter in interface Table
    • getBody

      public List<Row> getBody()
      Specified by:
      getBody in interface Table
    • getHeader

      public List<Row> getHeader()
      Specified by:
      getHeader in interface Table