Class TextTable.Column

  • Enclosing class:
    TextTable

    public static class TextTable.Column
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Column​(java.lang.String header)  
      Column​(java.lang.String header, TextTable.Alignment alignment)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fit​(java.lang.String value)  
      java.lang.String format​(java.lang.String value, java.lang.String padding)  
      java.lang.String formatHeader​(java.lang.String padding)  
      java.lang.String getSeparator​(char character)  
      int getWidth()  
      void resetWidth()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • header

        private java.lang.String header
      • width

        private int width
    • Constructor Detail

      • Column

        public Column​(java.lang.String header)
    • Method Detail

      • formatHeader

        public java.lang.String formatHeader​(java.lang.String padding)
      • format

        public java.lang.String format​(java.lang.String value,
                                       java.lang.String padding)
      • getSeparator

        public java.lang.String getSeparator​(char character)
      • fit

        public void fit​(java.lang.String value)
      • resetWidth

        public void resetWidth()
      • getWidth

        public int getWidth()