- All Implemented Interfaces:
Serializable
,Comparable<TableStyle>
,java.lang.constant.Constable
The Enum TableStyle defines character sets for various box border styles.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresenting a table style usingTextBoxStyle.ASCII_BLANK
for the header andTextBoxStyle.ASCII_BLANK
for the body.Representing a table style usingTextBoxStyle.ASCII
for the header andTextBoxStyle.ASCII
for the body.Representing a table style usingTextBoxStyle.BLANK
for the header andTextBoxStyle.BLANK
for the body.Representing a table style usingTextBoxStyle.BOLD_HEADER_SINGLE_BODY
for the header andTextBoxStyle.SINGLE
for the body.Representing a table style usingTextBoxStyle.DOUBLE
for the header andTextBoxStyle.DOUBLE
for the body.Representing a table style usingTextBoxStyle.DOUBLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body.Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body.Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.SINGLE
for the body.Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body.Representing a table style usingTextBoxStyle.HYBRID_BOLD_HEADER_SINGLE_BODY
for the header andTextBoxStyle.SINGLE
for the body.Representing a table style usingTextBoxStyle.SINGLE_BLANK
for the header andTextBoxStyle.SINGLE_BLANK
for the body.Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body.Representing a table style usingTextBoxStyle.SINGLE_DOUBLE
for the header andTextBoxStyle.SINGLE_DOUBLE
for the body.Representing a table style usingTextBoxStyle.SINGLE
for the header andTextBoxStyle.SINGLE
for the body. -
Field Summary
Modifier and TypeFieldDescriptionstatic final TableStyle
Style displayed for sure when being under test (e.g.static final TableStyle
Style supported Unicode capable terminals (when not being under test).static final TableStyle
Style displayed for sure when being on a Windows machine. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Returns the table body's characters.Returns the table header's characters.getTail()
Returns the table tail's characters.static TableStyle
Depending on the runtime environment (Windows, Linux, JUnit) we prefer different table styles as depending on the runtime environment not all characters used by the various table styles may be available.static TableStyle
toTableStyle
(String aValue) Retrieves aTableStyle
depending on the given string, ignoring the case as well as beeing graceful regarding "-" and "_",static TableStyle
Returns the enum constant of this type with the specified name.static TableStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SINGLE_HEADER_SINGLE_BODY
Representing a table style usingTextBoxStyle.SINGLE
for the header andTextBoxStyle.SINGLE
for the body. -
DOUBLE_SINGLE_HEADER_SINGLE_BODY
Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.SINGLE
for the body. -
DOUBLE_HEADER_DOUBLE_BODY
Representing a table style usingTextBoxStyle.DOUBLE
for the header andTextBoxStyle.DOUBLE
for the body. -
DOUBLE_SINGLE_HEADER_DOUBLE_SINGLE_BODY
Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body. -
SINGLE_DOUBLE_HEADER_SINGLE_BODY
Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body. -
SINGLE_DOUBLE_HEADER_SINGLE_DOUBLE_BODY
Representing a table style usingTextBoxStyle.SINGLE_DOUBLE
for the header andTextBoxStyle.SINGLE_DOUBLE
for the body. -
DOUBLE_HEADER_DOUBLE_SINGLE_BODY
Representing a table style usingTextBoxStyle.DOUBLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body. -
DOUBLE_SINGLE_HEADER_SINGLE_DASHED_BODY
Representing a table style usingTextBoxStyle.DOUBLE_SINGLE
for the header andTextBoxStyle.DOUBLE_SINGLE
for the body. -
BOLD_HEADER_SINGLE_BODY
Representing a table style usingTextBoxStyle.BOLD_HEADER_SINGLE_BODY
for the header andTextBoxStyle.SINGLE
for the body. -
HYBRID_BOLD_HEADER_SINGLE_BODY
Representing a table style usingTextBoxStyle.HYBRID_BOLD_HEADER_SINGLE_BODY
for the header andTextBoxStyle.SINGLE
for the body. -
ASCII_HEADER_ASCII_BODY
Representing a table style usingTextBoxStyle.ASCII
for the header andTextBoxStyle.ASCII
for the body. -
BLANK_HEADER_BLANK_BODY
Representing a table style usingTextBoxStyle.BLANK
for the header andTextBoxStyle.BLANK
for the body. -
SINGLE_BLANK_HEADER_SINGLE_BLANK_BODY
Representing a table style usingTextBoxStyle.SINGLE_BLANK
for the header andTextBoxStyle.SINGLE_BLANK
for the body. -
ASCII_BLANK_HEADER_ASCII_BLANK_BODY
Representing a table style usingTextBoxStyle.ASCII_BLANK
for the header andTextBoxStyle.ASCII_BLANK
for the body.
-
-
Field Details
-
UNICODE_TABLE_STYLE
Style supported Unicode capable terminals (when not being under test). -
WINDOWS_TABLE_STYLE
Style displayed for sure when being on a Windows machine. -
OTHER_TABLE_STYLE
Style displayed for sure when being under test (e.g. JUnit) or in a Cp1252 or a plain "xterm".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getHeader
Returns the table header's characters.- Returns:
- The table header characters.
-
getBody
Returns the table body's characters.- Returns:
- The table body characters.
-
getTail
Returns the table tail's characters.- Returns:
- The table header characters.
-
toTableStyle
Retrieves aTableStyle
depending on the given string, ignoring the case as well as beeing graceful regarding "-" and "_",- Parameters:
aValue
- The name of theTableStyle
to be interpreted graceful.- Returns:
- The
TableStyle
being determined.
-
toRuntimeTableStyle
Depending on the runtime environment (Windows, Linux, JUnit) we prefer different table styles as depending on the runtime environment not all characters used by the various table styles may be available.- Returns:
- The
TableStyle
by default fitting best for the current environment.
-