Class TableViewerContext


  • public class TableViewerContext
    extends ListViewerContext
    Represents the table viewer in the Console which can display text data as a table. The table viewer in the Console interprets the data of a Log Entry as a table. This class takes care of the necessary formatting and escaping required by the corresponding table viewer in the Console.

    You can use the TableViewerContext class for creating custom log methods around logCustomContext for sending custom data organized as tables. This class is not guaranteed to be thread safe.

    • Constructor Detail

      • TableViewerContext

        public TableViewerContext()
        Creates and initializes a TableViewerContext instance.
    • Method Detail

      • appendHeader

        public void appendHeader​(String header)
        Appends a header to the text data.
        Parameters:
        header - The header to append
      • addRowEntry

        public void addRowEntry​(String entry)
        Overloaded. Adds a string entry to the current row.
        Parameters:
        entry - The string entry to add
      • addRowEntry

        public void addRowEntry​(char entry)
        Overloaded. Adds a char entry to the current row.
        Parameters:
        entry - The char entry to add
      • addRowEntry

        public void addRowEntry​(boolean entry)
        Overloaded. Adds a boolean entry to the current row.
        Parameters:
        entry - The boolean entry to add
      • addRowEntry

        public void addRowEntry​(byte entry)
        Overloaded. Adds a byte entry to the current row.
        Parameters:
        entry - The byte entry to add
      • addRowEntry

        public void addRowEntry​(short entry)
        Overloaded. Adds a short entry to the current row.
        Parameters:
        entry - The short entry to add
      • addRowEntry

        public void addRowEntry​(int entry)
        Overloaded. Adds an int entry to the current row.
        Parameters:
        entry - The int entry to add
      • addRowEntry

        public void addRowEntry​(long entry)
        Overloaded. Adds a long entry to the current row.
        Parameters:
        entry - The long entry to add
      • addRowEntry

        public void addRowEntry​(float entry)
        Overloaded. Adds a float entry to the current row.
        Parameters:
        entry - The float entry to add
      • addRowEntry

        public void addRowEntry​(double entry)
        Overloaded. Adds a double entry to the current row.
        Parameters:
        entry - The double entry to add
      • addRowEntry

        public void addRowEntry​(Object entry)
        Overloaded. Adds an object entry to the current row.
        Parameters:
        entry - The object entry to add
      • beginRow

        public void beginRow()
        Begins a new row.
      • endRow

        public void endRow()
        Ends the current row.