public abstract class AbstractGroupColumn extends Object implements GroupColumn
| Constructor and Description |
|---|
AbstractGroupColumn(String header,
int groupingLevel,
String valuesFormatter,
HorizAlign horizAlign,
boolean showDuplicates) |
AbstractGroupColumn(String header,
int groupingLevel,
String valuesFormatter,
HorizAlign horizAlign,
VertAlign vertAlign,
boolean showDuplicates) |
AbstractGroupColumn(String header,
int groupingLevel,
String valuesFormatter,
HorizAlign horizAlign,
VertAlign vertAlign,
boolean showDuplicates,
SortType sortType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormattedValue(Object value)
returns the formatted value for the given object according to the
formatting rules of this grouping column
|
int |
getGroupingLevel()
getter for the priority of this column
The grouping levels start with 0 (the most important), 1, 2, 3 ..
|
String |
getHeader()
this appears in the final report as the title/header of the column
|
HorizAlign |
getHorizAlign()
returns the horizontal alignment of the values of this column
|
SortType |
getSortType()
whether you want to sort this ascending or descending
|
String |
getValuesFormatter() |
VertAlign |
getVertAlign()
returns the vertical alignment of the values of this column
|
void |
setGroupingLevel(int groupingLevel) |
void |
setHeader(String header) |
void |
setHorizAlign(HorizAlign horizAlign) |
void |
setShowDuplicates(boolean flag) |
void |
setSortType(SortType sortType) |
void |
setValuesFormatter(String formatter)
setter for the formatter of this column's values
|
void |
setVertAlign(VertAlign vertAlign) |
boolean |
showDuplicates()
whether or not this group column should display duplicate group values.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic AbstractGroupColumn(String header, int groupingLevel, String valuesFormatter, HorizAlign horizAlign, boolean showDuplicates)
header - groupingLevel - valuesFormatter - horizAlign - showDuplicates - public AbstractGroupColumn(String header, int groupingLevel, String valuesFormatter, HorizAlign horizAlign, VertAlign vertAlign, boolean showDuplicates)
header - groupingLevel - valuesFormatter - horizAlign - vertAlign - showDuplicates - public AbstractGroupColumn(String header, int groupingLevel, String valuesFormatter, HorizAlign horizAlign, VertAlign vertAlign, boolean showDuplicates, SortType sortType)
header - groupingLevel - valuesFormatter - horizAlign - vertAlign - showDuplicates - sortType - public int getGroupingLevel()
GroupColumngetGroupingLevel in interface GroupColumnpublic void setGroupingLevel(int groupingLevel)
groupingLevel - public String getHeader()
GroupColumngetHeader in interface GroupColumnpublic void setHeader(String header)
header - public String getFormattedValue(Object value)
GroupColumngetFormattedValue in interface GroupColumnvalue - an unformatted valuepublic String getValuesFormatter()
public void setValuesFormatter(String formatter)
formatter - the formatter of the valuespublic HorizAlign getHorizAlign()
GroupColumngetHorizAlign in interface GroupColumnpublic void setHorizAlign(HorizAlign horizAlign)
horizAlign - the horizAlign to setpublic VertAlign getVertAlign()
GroupColumngetVertAlign in interface GroupColumnpublic void setVertAlign(VertAlign vertAlign)
vertAlign - the vertical alignmentpublic boolean showDuplicates()
GroupColumn| Europe | South | 100 |
| Europe | North | 207 |
| Europe | East | 103 |
| Europe | West | 120 |
| Europe | South | 100 |
| North | 207 | |
| East | 103 | |
| West | 120 | |
| Asia | South | 300 |
| North | 267 | |
| East | 564 | |
| West | 122 |
showDuplicates in interface GroupColumnpublic void setShowDuplicates(boolean flag)
flag - public SortType getSortType()
GroupColumngetSortType in interface GroupColumnpublic void setSortType(SortType sortType)
sortType - Copyright © 2006–2015. All rights reserved.