Package org.cloudsimplus.builders.tables
Interface TableColumn
- All Known Implementing Classes:
AbstractTableColumn
,CsvTableColumn
,HtmlTableColumn
,TextTableColumn
public interface TableColumn
An interface that represents a column of a table generated
using a
Table
.- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Method Summary
Modifier and Type Method Description String
generateData(Object data)
Generates the string that represents the data of the column, formatted according to theformat
.String
generateSubtitleHeader()
Generates the string that represents the sub-header of the column (if any), containing the column subtitle.String
generateTitleHeader()
Generates the string that represents the header of the column, containing the column title.String
getFormat()
String
getSubTitle()
Table
getTable()
String
getTitle()
TableColumn
setFormat(String format)
TableColumn
setSubTitle(String subTitle)
TableColumn
setTable(Table table)
TableColumn
setTitle(String title)
-
Method Details
-
generateData
Generates the string that represents the data of the column, formatted according to theformat
.- Parameters:
data
- The data of the column to be formatted- Returns:
- a string containing the formatted column data
-
generateTitleHeader
String generateTitleHeader()Generates the string that represents the header of the column, containing the column title.- Returns:
- the generated header string
-
generateSubtitleHeader
String generateSubtitleHeader()Generates the string that represents the sub-header of the column (if any), containing the column subtitle.- Returns:
- the generated sub-header string
-
getFormat
String getFormat()- Returns:
- The format to be used to display the content of the column,
according to the
String.format(java.lang.String, java.lang.Object...)
(optional).
-
getSubTitle
String getSubTitle()- Returns:
- The subtitle to be displayed below the title of the column (optional).
-
getTable
Table getTable()- Returns:
- The table that the column belongs to.
-
getTitle
String getTitle()- Returns:
- The title to be displayed at the top of the column.
-
setFormat
-
setSubTitle
-
setTable
-
setTitle
-