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(String title)
TextTableColumn(String title, String subTitle)
TextTableColumn(Table table, String title)
TextTableColumn(Table table, String title, String subTitle)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class org.cloudsimplus.builders.tables.CsvTableColumn
generateHeader
-
Methods inherited from class org.cloudsimplus.builders.tables.AbstractTableColumn
generateTitleHeader, getFormat, getIndex, getSubTitle, getTable, getTitle, isLastColumn, setFormat, setSubTitle, setTable, setTitle, toString
-
-
-
-
Method Detail
-
generateData
public String generateData(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 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
-
-