public class Columns extends Object
| Constructor and Description |
|---|
Columns() |
| Modifier and Type | Method and Description |
|---|---|
static FormattedColumn |
decimal(String name)
Returns a column for displaying decimals and floating point numbers with
"%,1.1f" formatting. |
static FormattedColumn |
decimal(String name,
int fractionDigits)
Returns a column for displaying decimals and floating point numbers with given fraction digits.
|
static void |
ensureWidth(com.brsanthu.dataexporter.model.Column column,
int width)
Ensures the given column is at least as wide as the given width.
|
static FormattedColumn |
format(String name,
String format)
Returns a column for displaying cells with arbitrary formatting.
|
static FormattedColumn |
integer(String name)
Returns a column for displaying integers with
"%,d" formatting. |
static MergedColumn |
merge(String title,
com.brsanthu.dataexporter.model.Column... columns)
Returns a merged column that will span the individual columns.
|
static FormattedColumn |
string(String name)
Returns a column displaying
toString values with proper word wrapping. |
static FormattedColumn |
string(String name,
com.brsanthu.dataexporter.model.AlignType align)
Returns a column displaying
toString values with proper word wrapping. |
public static FormattedColumn string(String name)
toString values with proper word wrapping. Column is aligned top left.name - name of the columnpublic static FormattedColumn string(String name, com.brsanthu.dataexporter.model.AlignType align)
toString values with proper word wrapping.name - name of the columnpublic static FormattedColumn integer(String name)
"%,d" formatting. Column is aligned top right.name - name of the columnpublic static FormattedColumn decimal(String name)
"%,1.1f" formatting. Column is aligned top right.name - name of the columnpublic static FormattedColumn decimal(String name, int fractionDigits)
name - name of the columnfractionDigits - number of fraction digits to showpublic static FormattedColumn format(String name, String format)
name - name of the columnformat - format stringpublic static MergedColumn merge(String title, com.brsanthu.dataexporter.model.Column... columns)
title - title of the merged columncolumns - columns that will be spannedpublic static void ensureWidth(com.brsanthu.dataexporter.model.Column column,
int width)
column - the column whose width is being adjustedwidth - the minimum widthCopyright © 2010-2016 Stardog Union. All Rights Reserved.