Class FormattedHeaderImpl<T>

Type Parameters:
T - the generic type
All Implemented Interfaces:
Serializable, Cloneable, Iterable<FormattedColumn<? extends T>>, Collection<FormattedColumn<? extends T>>, List<FormattedColumn<? extends T>>, RandomAccess, org.refcodes.mixin.Clearable, org.refcodes.struct.Keys<String,​FormattedColumn<? extends T>>, org.refcodes.struct.Keys.MutableKeys<String,​FormattedColumn<? extends T>>, ColumnRow<T,​FormattedColumn<? extends T>>, FormattedHeader<T>, HeaderRow<T,​FormattedColumn<? extends T>>

public class FormattedHeaderImpl<T>
extends AbstractHeader<T,​FormattedColumn<? extends T>>
implements FormattedHeader<T>
The Class FormattedHeaderImpl.
See Also:
Serialized Form
  • Constructor Details

    • FormattedHeaderImpl

      public FormattedHeaderImpl()
      Instantiates a new formatted header impl.
    • FormattedHeaderImpl

      public FormattedHeaderImpl​(FormattedColumn<? extends T>... aHeader)
      Instantiates a new formatted header impl.
      Parameters:
      aHeader - the header
  • Method Details

    • getResetEscapeCode

      public String getResetEscapeCode()
      Gets the ANSI reset Escape-Code for this FormattedHeader instance. In case an ANSI Escape-Codes is set, then this ANSI Reset-Code is prepended to the according text being printed.
      Specified by:
      getResetEscapeCode in interface FormattedHeader<T>
      Returns:
      The String to be used for resetting ANSI escaping.
    • setResetEscapeCode

      public void setResetEscapeCode​(String aEscapeCode)
      Gets the ANSI reset Escape-Code for this FormattedHeader instance. In case an ANSI Escape-Codes is set, then this ANSI Reset-Code is prepended to the according text being printed.
      Specified by:
      setResetEscapeCode in interface FormattedHeader<T>
      Parameters:
      aEscapeCode - The String to be used for resetting ANSI escaping.