Package org.cloudsimplus.builders.tables
Class HtmlTableColumn
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTableColumn
org.cloudsimplus.builders.tables.HtmlTableColumn
- All Implemented Interfaces:
TableColumn
A column of an HTML table. The class generates the HTML code
that represents a column in a HTML table.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
ConstructorDescriptionHtmlTableColumn
(String title) HtmlTableColumn
(String title, String subTitle) HtmlTableColumn
(Table table, String title) HtmlTableColumn
(Table table, String title, String subTitle) -
Method Summary
Modifier and TypeMethodDescriptiongenerateData
(Object data) Generates the string that represents the data of the column, formatted according to theformat
.protected String
generateHeader
(String str) Generates a header for the column, either for the title or subtitle header.Methods inherited from class org.cloudsimplus.builders.tables.AbstractTableColumn
generateSubtitleHeader, generateTitleHeader, getFormat, getIndex, getSubTitle, getTable, getTitle, isLastColumn, setFormat, setSubTitle, setTable, setTitle, toString
-
Constructor Details
-
HtmlTableColumn
-
HtmlTableColumn
-
HtmlTableColumn
-
HtmlTableColumn
-
-
Method Details
-
generateHeader
Description copied from class:AbstractTableColumn
Generates a header for the column, either for the title or subtitle header.- Specified by:
generateHeader
in classAbstractTableColumn
- Parameters:
str
- header title or subtitle- Returns:
- the generated header string
-
generateData
Description copied from class:AbstractTableColumn
Generates the string that represents the data of the column, formatted according to theformat
.- Specified by:
generateData
in interfaceTableColumn
- Overrides:
generateData
in classAbstractTableColumn
- Parameters:
data
- The data of the column to be formatted- Returns:
- a string containing the formatted column data
-