public class UtlTableFormatter extends Object
This class IS NOT intended to be used by end users.
Modifier and Type | Class and Description |
---|---|
static class |
UtlTableFormatter.Format
Enumerates the possible table format output.
|
static class |
UtlTableFormatter.Table
The table model.
|
Constructor and Description |
---|
UtlTableFormatter(boolean isMultiLine) |
Modifier and Type | Method and Description |
---|---|
int |
calculateDesiredFieldLength(String columnHeader,
Object value) |
int |
calculateFieldLength(String columnHeader,
Class<?> columnType) |
static UtlTableFormatter.Table |
createTable(String... columnHeaders) |
Object |
formatColumn(String columnHeader,
Class<?> columnType,
Object result,
int width,
UtlTableFormatter.Format format) |
Object |
formatColumn(String columnHeader,
Class<?> columnType,
Object result,
UtlTableFormatter.Format format) |
String |
formatForSingleLineColumn(String str,
int columnWidth) |
String |
getColumnFormat(String columnHeader,
Class<?> columnType,
int length) |
boolean |
isTimestampColumn(String columnHeader,
Class<?> columnType)
Tests if the given column should be treated as a Date column.
|
public final Object formatColumn(String columnHeader, Class<?> columnType, Object result, UtlTableFormatter.Format format)
public final Object formatColumn(String columnHeader, Class<?> columnType, Object result, int width, UtlTableFormatter.Format format)
public final String getColumnFormat(String columnHeader, Class<?> columnType, int length)
public int calculateDesiredFieldLength(String columnHeader, Object value)
public final boolean isTimestampColumn(String columnHeader, Class<?> columnType)
columnHeader
- the header name for the columnpublic final String formatForSingleLineColumn(String str, int columnWidth)
public static final UtlTableFormatter.Table createTable(String... columnHeaders)
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.