Class TableImpl

    • Constructor Detail

      • TableImpl

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

      • hasHeaderOption

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

        public java.lang.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​(java.lang.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:
        Table.getFrame()
      • getGrid

        public java.lang.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​(java.lang.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:
        Table.getGrid()
      • getFooter

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

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

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