Class HtmlTable

java.lang.Object
org.cloudsimplus.builders.tables.AbstractTable
org.cloudsimplus.builders.tables.HtmlTable
All Implemented Interfaces:
Table

public class HtmlTable extends AbstractTable
A generator of HTML tables.
Since:
CloudSim Plus 1.0
Author:
Manoel Campos da Silva Filho
  • Constructor Details

    • HtmlTable

      public HtmlTable()
    • HtmlTable

      public HtmlTable(String title)
      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 class AbstractTable
    • printTitle

      protected void printTitle()
      Description copied from class: AbstractTable
      Prints the table title.
      Specified by:
      printTitle in class AbstractTable
    • rowOpening

      protected String rowOpening()
      Description copied from class: AbstractTable
      Gets the string that has to precede each printed row.
      Specified by:
      rowOpening in class AbstractTable
      Returns:
    • rowClosing

      protected String rowClosing()
      Description copied from class: AbstractTable
      Gets the string to close a row.
      Specified by:
      rowClosing in class AbstractTable
      Returns:
    • subtitleHeaderOpening

      protected String subtitleHeaderOpening()
      Description copied from class: AbstractTable
      Gets the string that has to precede subtitles head.
      Specified by:
      subtitleHeaderOpening in class AbstractTable
      Returns:
    • printTableClosing

      protected void printTableClosing()
      Description copied from class: AbstractTable
      Prints the string to close the table.
      Specified by:
      printTableClosing in class AbstractTable
    • addColumn

      public TableColumn addColumn(int index, String columnTitle)
      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 list
      columnTitle - The title of the column to be added.
      Returns:
      the created column