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, wait
getValue
public 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()
GroupColumn
getGroupingLevel
in interface GroupColumn
public void setGroupingLevel(int groupingLevel)
groupingLevel
- public String getHeader()
GroupColumn
getHeader
in interface GroupColumn
public void setHeader(String header)
header
- public String getFormattedValue(Object value)
GroupColumn
getFormattedValue
in interface GroupColumn
value
- an unformatted valuepublic String getValuesFormatter()
public void setValuesFormatter(String formatter)
formatter
- the formatter of the valuespublic HorizAlign getHorizAlign()
GroupColumn
getHorizAlign
in interface GroupColumn
public void setHorizAlign(HorizAlign horizAlign)
horizAlign
- the horizAlign to setpublic VertAlign getVertAlign()
GroupColumn
getVertAlign
in interface GroupColumn
public 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 GroupColumn
public void setShowDuplicates(boolean flag)
flag
- public SortType getSortType()
GroupColumn
getSortType
in interface GroupColumn
public void setSortType(SortType sortType)
sortType
- Copyright © 2006–2015. All rights reserved.