TRowObject
- The row data typepublic static class AbstractReportBuilder.ColumnInfo<TRowObject>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
AbstractReportBuilder.ColumnInfo.Alignment
The Enum Alignment.
|
Modifier and Type | Field and Description |
---|---|
private AbstractReportBuilder.ColumnInfo.Alignment |
headerAlignment
The header alignment.
|
private float |
headerWidth
The header width.
|
private java.lang.String[] |
labels
The labels.
|
private float |
maxWidth
The max width.
|
private AbstractReportBuilder.ColumnInfo.Alignment |
valueAlignment
The value alignment.
|
private java.util.function.Function<TRowObject,java.lang.String> |
valueGetter
The value getter.
|
private float |
width
The width.
|
Constructor and Description |
---|
ColumnInfo(java.lang.String[] labels,
java.util.function.Function<TRowObject,java.lang.String> valueGetter)
Instantiates a new column info.
|
ColumnInfo(java.lang.String headerLabel,
java.util.function.Function<TRowObject,java.lang.String> valueGetter)
Instantiates a new column info.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getLabels()
Gets the labels.
|
float |
getMaxWidth()
Gets the max width.
|
AbstractReportBuilder.ColumnInfo.Alignment |
getValueAlignment()
Gets the value alignment.
|
java.util.function.Function<TRowObject,java.lang.String> |
getValueGetter()
Gets the value getter.
|
AbstractReportBuilder.ColumnInfo |
maxWidth(float maxWidth)
Sets the column maximal width.
|
void |
setLabels(java.lang.String[] labels)
Sets the labels.
|
void |
setMaxWidth(float maxWidth)
Sets the max width.
|
void |
setValueAlignment(AbstractReportBuilder.ColumnInfo.Alignment valueAlignment)
Sets the value horizontal alignment.
|
void |
setValueGetter(java.util.function.Function<TRowObject,java.lang.String> valueGetter)
Sets the value getter.
|
java.lang.String |
toString() |
AbstractReportBuilder.ColumnInfo |
valueAlignment(AbstractReportBuilder.ColumnInfo.Alignment valueAlignment)
Sets the value horizontal alignment.
|
private java.lang.String[] labels
private AbstractReportBuilder.ColumnInfo.Alignment headerAlignment
private java.util.function.Function<TRowObject,java.lang.String> valueGetter
private float maxWidth
private float width
private float headerWidth
private AbstractReportBuilder.ColumnInfo.Alignment valueAlignment
public ColumnInfo(java.lang.String headerLabel, java.util.function.Function<TRowObject,java.lang.String> valueGetter)
headerLabel
- The header labelvalueGetter
- The value getterpublic ColumnInfo(java.lang.String[] labels, java.util.function.Function<TRowObject,java.lang.String> valueGetter)
labels
- The labelsvalueGetter
- The value getterpublic AbstractReportBuilder.ColumnInfo maxWidth(float maxWidth)
maxWidth
- The max widthpublic AbstractReportBuilder.ColumnInfo valueAlignment(AbstractReportBuilder.ColumnInfo.Alignment valueAlignment)
valueAlignment
- The value alignmentpublic float getMaxWidth()
public void setMaxWidth(float maxWidth)
maxWidth
- The max widthpublic AbstractReportBuilder.ColumnInfo.Alignment getValueAlignment()
public void setValueAlignment(AbstractReportBuilder.ColumnInfo.Alignment valueAlignment)
valueAlignment
- The value alignmentpublic java.lang.String[] getLabels()
public void setLabels(java.lang.String[] labels)
labels
- The labelspublic java.util.function.Function<TRowObject,java.lang.String> getValueGetter()
public void setValueGetter(java.util.function.Function<TRowObject,java.lang.String> valueGetter)
valueGetter
- The value getterpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()