Package org.cloudsimplus.builders.tables
Class TextTableColumn
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTableColumn
org.cloudsimplus.builders.tables.CsvTableColumn
org.cloudsimplus.builders.tables.TextTableColumn
- All Implemented Interfaces:
TableColumn
public class TextTableColumn extends CsvTableColumn
A column of an text (ASCII) table. The class generates the string
that represents a column in a text table.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from class org.cloudsimplus.builders.tables.CsvTableColumn
DATA_COL_SEPARATOR_FORMAT
-
Constructor Summary
Constructors Constructor Description TextTableColumn(java.lang.String title)
TextTableColumn(java.lang.String title, java.lang.String subTitle)
TextTableColumn(Table table, java.lang.String title)
TextTableColumn(Table table, java.lang.String title, java.lang.String subTitle)
-
Method Summary
Modifier and Type Method Description java.lang.String
generateData(java.lang.Object data)
Generates the string that represents the data of the column, formatted according to theformat
.java.lang.String
generateSubtitleHeader()
Generates the string that represents the sub-header of the column (if any), containing the column subtitle.Methods inherited from class org.cloudsimplus.builders.tables.AbstractTableColumn
generateTitleHeader, getFormat, getIndex, getSubTitle, getTable, getTitle, isLastColumn, setFormat, setSubTitle, setTable, setTitle, toString
-
Constructor Details
-
TextTableColumn
public TextTableColumn(java.lang.String title, java.lang.String subTitle) -
TextTableColumn
public TextTableColumn(java.lang.String title) -
TextTableColumn
-
TextTableColumn
-
-
Method Details
-
generateData
public java.lang.String generateData(java.lang.Object data)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 classCsvTableColumn
- Parameters:
data
- The data of the column to be formatted- Returns:
- a string containing the formatted column data
-
generateSubtitleHeader
public java.lang.String generateSubtitleHeader()Description copied from interface:TableColumn
Generates the string that represents the sub-header of the column (if any), containing the column subtitle.- Specified by:
generateSubtitleHeader
in interfaceTableColumn
- Overrides:
generateSubtitleHeader
in classAbstractTableColumn
- Returns:
- the generated sub-header string
-