Serializable
, Comparable<TableStyle>
public enum TableStyle extends Enum<TableStyle>
Modifier and Type | Field | Description |
---|---|---|
static TableStyle |
OTHER_TABLE_STYLE |
Style displayed for sure when being under test (e.g.
|
static TableStyle |
UNICODE_TABLE_STYLE |
Style supported Unicode capable terminals (when not being under test).
|
static TableStyle |
WINDOWS_TABLE_STYLE |
Style displayed for sure when being on a Windows machine.
|
Modifier and Type | Method | Description |
---|---|---|
TextBoxGrid |
getBody() |
Returns the table body's characters.
|
TextBoxGrid |
getHeader() |
Returns the table header's characters.
|
TextBoxGrid |
getTail() |
Returns the table tail's characters.
|
static TableStyle |
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.
|
static TableStyle |
toTableStyle(String aValue) |
Retrieves a
TableStyle depending on the given string, ignoring
the case as well as beeing graceful regarding "-" and "_", |
static TableStyle |
valueOf(String name) |
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.
|
public static final TableStyle SINGLE_HEADER_SINGLE_BODY
TextBoxStyle.SINGLE
for the
header and TextBoxStyle.SINGLE
for the body.public static final TableStyle DOUBLE_SINGLE_HEADER_SINGLE_BODY
TextBoxStyle.DOUBLE_SINGLE
for
the header and TextBoxStyle.SINGLE
for the body.public static final TableStyle DOUBLE_HEADER_DOUBLE_BODY
TextBoxStyle.DOUBLE
for the
header and TextBoxStyle.DOUBLE
for the body.public static final TableStyle DOUBLE_SINGLE_HEADER_DOUBLE_SINGLE_BODY
TextBoxStyle.DOUBLE_SINGLE
for
the header and TextBoxStyle.DOUBLE_SINGLE
for the body.public static final TableStyle SINGLE_DOUBLE_HEADER_SINGLE_BODY
TextBoxStyle.DOUBLE_SINGLE
for
the header and TextBoxStyle.DOUBLE_SINGLE
for the body.public static final TableStyle SINGLE_DOUBLE_HEADER_SINGLE_DOUBLE_BODY
TextBoxStyle.SINGLE_DOUBLE
for
the header and TextBoxStyle.SINGLE_DOUBLE
for the body.public static final TableStyle DOUBLE_HEADER_DOUBLE_SINGLE_BODY
TextBoxStyle.DOUBLE
for the
header and TextBoxStyle.DOUBLE_SINGLE
for the body.public static final TableStyle DOUBLE_SINGLE_HEADER_SINGLE_DASHED_BODY
TextBoxStyle.DOUBLE_SINGLE
for
the header and TextBoxStyle.DOUBLE_SINGLE
for the body.public static final TableStyle BOLD_HEADER_SINGLE_BODY
TextBoxStyle.BOLD_HEADER_SINGLE_BODY
for the header and
TextBoxStyle.SINGLE
for the body.public static final TableStyle HYBRID_BOLD_HEADER_SINGLE_BODY
TextBoxStyle.HYBRID_BOLD_HEADER_SINGLE_BODY
for the header and
TextBoxStyle.SINGLE
for the body.public static final TableStyle ASCII_HEADER_ASCII_BODY
TextBoxStyle.ASCII
for the
header and TextBoxStyle.ASCII
for the body.public static final TableStyle BLANK_HEADER_BLANK_BODY
TextBoxStyle.BLANK
for the
header and TextBoxStyle.BLANK
for the body.public static final TableStyle SINGLE_BLANK_HEADER_SINGLE_BLANK_BODY
TextBoxStyle.SINGLE_BLANK
for
the header and TextBoxStyle.SINGLE_BLANK
for the body.public static final TableStyle ASCII_BLANK_HEADER_ASCII_BLANK_BODY
TextBoxStyle.ASCII_BLANK
for the
header and TextBoxStyle.ASCII_BLANK
for the body.public static final TableStyle UNICODE_TABLE_STYLE
public static final TableStyle WINDOWS_TABLE_STYLE
public static final TableStyle OTHER_TABLE_STYLE
public static TableStyle[] values()
for (TableStyle c : TableStyle.values()) System.out.println(c);
public static TableStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic TextBoxGrid getHeader()
public TextBoxGrid getBody()
public TextBoxGrid getTail()
public static TableStyle toTableStyle(String aValue)
TableStyle
depending on the given string, ignoring
the case as well as beeing graceful regarding "-" and "_",aValue
- The name of the TableStyle
to be interpreted
graceful.TableStyle
being determined.public static TableStyle toRuntimeTableStyle()
TableStyle
by default fitting best for the current
environment.Copyright © 2021. All rights reserved.