Class Table


public class Table extends Container
Table
Author:
pquiring
  • Constructor Details

    • Table

      public Table(int cellWidth, int cellHeight, int cols, int rows)
  • Method Details

    • setBorder

      public void setBorder(boolean state)
      Overrides:
      setBorder in class Component
    • html

      public String html()
      Description copied from class: Component
      Returns HTML to render component.
      Overrides:
      html in class Container
    • add

      public void add(Component comp, int x, int y)
    • add

      public void add(Component comp, int x, int y, int spanx, int spany)
    • addRow

      public void addRow()
    • addColumn

      public void addColumn()
    • setTableSize

      public void setTableSize(int cols, int rows)
      Sets number of columns and rows.
    • remove

      public void remove(Component c)
      Overrides:
      remove in class Container
    • remove

      public Component remove(int x, int y)
    • setSpans

      public void setSpans(int x, int y, int spanx, int spany)
    • get

      public Component get(int x, int y, boolean checkSpans)
    • getRows

      public int getRows()
    • getColumns

      public int getColumns()