Class TableElement


  • public class TableElement
    extends HtmlElement
    HTML table element
    • Constructor Detail

      • TableElement

        public TableElement()
      • TableElement

        public TableElement​(String className)
      • TableElement

        public TableElement​(String className,
                            String id)
    • Method Detail

      • addRow

        public void addRow​(String[] cells,
                           String[] classNames,
                           int colspan,
                           boolean[] show,
                           String id)
        Adds a table row to a HTML table
        Parameters:
        cells - an array of table cell data strings. Each string will be placed in a separate table cell from left to right
        classNames - The first string in the array will be used as class for the table row. additional strings in the array will be used as classes for each table cell from left to right. If the number of strings is < cells+1, then the last cells will have no class assigned. A String value of "" causes no class to be added to the corresponding cell/row @param colspan the column span for the last table cell @param show false of this table row should be hidden, otherwise true
      • addRow

        public void addRow​(String[] cells,
                           String className,
                           int colspan,
                           boolean[] show)
      • addRow

        public void addRow​(String[] cells,
                           String className)
      • addRow

        public void addRow​(String cell,
                           String[] classNames,
                           int colspan,
                           boolean show)
      • addRow

        public void addRow​(String cell,
                           String className,
                           int colspan,
                           boolean show)
      • addRow

        public void addRow​(String cell,
                           String className,
                           int colspan,
                           boolean show,
                           String id)
      • addRow

        public void addRow​(String cell,
                           String className)
      • addRow

        public void addRow​(String[] cells,
                           int colspan)
      • addRow

        public void addRow​(String[] cells,
                           String[] classNames,
                           boolean[] show)
      • addRow

        public void addRow​(String[] cells,
                           String[] classNames)
      • addRow

        public void addRow​(String[] cells)
      • addRow

        public void addRow​(String cell,
                           int colspan)
      • addRow

        public void addRow​(String cell)