Package org.cloudsimplus.builders.tables
Class HtmlTable
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTable
org.cloudsimplus.builders.tables.HtmlTable
- All Implemented Interfaces:
Table
public class HtmlTable extends AbstractTable
A generator of HTML tables.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TableColumn
addColumn(int index, String columnTitle)
Adds a column with a given title to the end of the table's columns to be printed.protected void
printRowClosing()
Prints the string to close a row.protected void
printRowOpening()
Prints the string that has to precede each printed row.protected void
printTableClosing()
Prints the string to close the table.protected void
printTableOpening()
Prints the string to open the table.protected void
printTitle()
Prints the table title.Methods inherited from class org.cloudsimplus.builders.tables.AbstractTable
addColumn, addColumn, addColumn, addColumn, addColumnList, getColumns, getColumnSeparator, getPrintStream, getRows, getTitle, newRow, print, printColumnHeaders, setColumnSeparator, setPrintStream, setTitle
-
Constructor Details
-
HtmlTable
public HtmlTable() -
HtmlTable
Creates an Table- Parameters:
title
- Title of the table
-
-
Method Details
-
printTableOpening
protected void printTableOpening()Description copied from class:AbstractTable
Prints the string to open the table.- Specified by:
printTableOpening
in classAbstractTable
-
printTitle
protected void printTitle()Description copied from class:AbstractTable
Prints the table title.- Specified by:
printTitle
in classAbstractTable
-
printRowOpening
protected void printRowOpening()Description copied from class:AbstractTable
Prints the string that has to precede each printed row.- Specified by:
printRowOpening
in classAbstractTable
-
printRowClosing
protected void printRowClosing()Description copied from class:AbstractTable
Prints the string to close a row.- Specified by:
printRowClosing
in classAbstractTable
-
printTableClosing
protected void printTableClosing()Description copied from class:AbstractTable
Prints the string to close the table.- Specified by:
printTableClosing
in classAbstractTable
-
addColumn
Description copied from interface:Table
Adds a column with a given title to the end of the table's columns to be printed.- Parameters:
index
- the position to insert the column into the column's listcolumnTitle
- The title of the column to be added.- Returns:
- the created column
-