Package org.cloudsimplus.builders.tables
Class HtmlTable
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTable
org.cloudsimplus.builders.tables.HtmlTable
- All Implemented Interfaces:
Table
A generator of HTML tables.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a column with a given title to the end of the table's columns to be printed.protected void
Prints the string to close the table.protected void
Prints the string to open the table.protected void
Prints the table title.protected String
Gets the string to close a row.protected String
Gets the string that has to precede each printed row.protected String
Gets the string that has to precede subtitles head.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 a 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
-
rowOpening
Description copied from class:AbstractTable
Gets the string that has to precede each printed row.- Specified by:
rowOpening
in classAbstractTable
- Returns:
-
rowClosing
Description copied from class:AbstractTable
Gets the string to close a row.- Specified by:
rowClosing
in classAbstractTable
- Returns:
-
subtitleHeaderOpening
Description copied from class:AbstractTable
Gets the string that has to precede subtitles head.- Specified by:
subtitleHeaderOpening
in classAbstractTable
- Returns:
-
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
-