Class TableElement
- java.lang.Object
-
- se.idsec.utils.printcert.display.html.HtmlElement
-
- se.idsec.utils.printcert.display.html.TableElement
-
public class TableElement extends HtmlElement
HTML table element
-
-
Field Summary
-
Fields inherited from class se.idsec.utils.printcert.display.html.HtmlElement
LF
-
-
Constructor Summary
Constructors Constructor Description TableElement()TableElement(String className)TableElement(String className, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(String cell)voidaddRow(String[] cells)voidaddRow(String[] cells, int colspan)voidaddRow(String[] cells, String className)voidaddRow(String[] cells, String[] classNames)voidaddRow(String[] cells, String[] classNames, boolean[] show)voidaddRow(String[] cells, String[] classNames, int colspan, boolean[] show, String id)Adds a table row to a HTML tablevoidaddRow(String[] cells, String className, int colspan, boolean[] show)voidaddRow(String cell, int colspan)voidaddRow(String cell, String className)voidaddRow(String cell, String[] classNames, int colspan, boolean show)voidaddRow(String cell, String className, int colspan, boolean show)voidaddRow(String cell, String className, int colspan, boolean show, String id)TableRowElementgetLastTableRow()-
Methods inherited from class se.idsec.utils.printcert.display.html.HtmlElement
addAction, addAction, addAction, addAttribute, addHtmlElement, addNewHtmlElement, addStyle, getElements, setAction, setAttributes, setElements, setStyles, setText, toString, toString
-
-
-
-
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 rightclassNames- 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, int colspan)
-
addRow
public void addRow(String[] cells)
-
addRow
public void addRow(String cell, int colspan)
-
addRow
public void addRow(String cell)
-
getLastTableRow
public TableRowElement getLastTableRow()
-
-