public abstract class AbstractDataColumn extends Object implements DataColumn
NO_SORTING| Constructor and Description |
|---|
AbstractDataColumn(String header) |
AbstractDataColumn(String header,
GroupCalculator calculator) |
AbstractDataColumn(String header,
GroupCalculator calculator,
String valuesFormatter) |
AbstractDataColumn(String header,
GroupCalculator calculator,
String valuesFormatter,
HorizAlign horizAlign) |
AbstractDataColumn(String header,
GroupCalculator calculator,
String valuesFormatter,
HorizAlign horizAlign,
int sortLevel) |
AbstractDataColumn(String header,
GroupCalculator calculator,
String valuesFormatter,
HorizAlign horizAlign,
VertAlign vertAlign,
int sortLevel) |
AbstractDataColumn(String header,
GroupCalculator calculator,
String valuesFormatter,
HorizAlign horizAlign,
VertAlign vertAlign,
int sortLevel,
SortType sortType) |
AbstractDataColumn(String header,
GroupCalculator calculator,
String valuesFormatter,
String totalsFormatter,
HorizAlign horizAlign,
VertAlign vertAlign,
int sortLevel,
SortType sortType) |
| Modifier and Type | Method and Description |
|---|---|
GroupCalculator |
getCalculator()
getter for this column's calculator (if any)
|
String |
getFormattedTotal(Object totalValue)
returns the formatted value of the total as it will be displayed in the report
|
String |
getFormattedValue(Object value)
returns the formatted value ready to be displayed in the report
|
String |
getHeader()
getter for the column header
|
HorizAlign |
getHorizAlign()
returns the horizontal alignment of the values of this column
|
int |
getSortLevel()
getter for the sorting priority
|
SortType |
getSortType()
Asc or Desc
|
String |
getTotalsFormatter()
getter for formatter of the totals
|
String |
getValuesFormatter()
getter for the formater of this column's values
|
VertAlign |
getVertAlign()
returns the vertical alignment of the values of this column
|
void |
setCalculator(GroupCalculator calculator) |
void |
setHeader(String header)
setter for the header of the column
|
void |
setHorizAlign(HorizAlign horizAlign) |
void |
setSortLevel(int sortLevel)
setter for the sorting priority of the column
|
void |
setSortType(SortType sortType)
setter for the type of sorting (asc or desc)
|
void |
setTotalsFormatter(String formatter)
sets a formatter for totals displayed on this column.
|
void |
setValuesFormatter(String formatter)
sets a valuesFormatter for this column.
|
void |
setVertAlign(VertAlign vertAlign) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic AbstractDataColumn(String header)
header - public AbstractDataColumn(String header, GroupCalculator calculator)
header - calculator - public AbstractDataColumn(String header, GroupCalculator calculator, String valuesFormatter)
header - calculator - valuesFormatter - public AbstractDataColumn(String header, GroupCalculator calculator, String valuesFormatter, HorizAlign horizAlign)
header - calculator - valuesFormatter - horizAlign - public AbstractDataColumn(String header, GroupCalculator calculator, String valuesFormatter, HorizAlign horizAlign, int sortLevel)
header - calculator - valuesFormatter - horizAlign - sortLevel - public AbstractDataColumn(String header, GroupCalculator calculator, String valuesFormatter, HorizAlign horizAlign, VertAlign vertAlign, int sortLevel)
header - the header of this columncalculator - the calculatorvaluesFormatter - the valuesFormatterhorizAlign - the horizontal alignmentvertAlign - the vertical alignmentsortLevel - the sorting levelpublic AbstractDataColumn(String header, GroupCalculator calculator, String valuesFormatter, HorizAlign horizAlign, VertAlign vertAlign, int sortLevel, SortType sortType)
header - the header of this columncalculator - the calculatorvaluesFormatter - the valuesFormatterhorizAlign - the horizontal alignmentvertAlign - the vertical alignmentsortLevel - the sorting levelsortType - the sorting type (asc, desc)public AbstractDataColumn(String header, GroupCalculator calculator, String valuesFormatter, String totalsFormatter, HorizAlign horizAlign, VertAlign vertAlign, int sortLevel, SortType sortType)
header - the header of this columncalculator - the calculatorvaluesFormatter - the valuesFormattertotalsFormatter - the valuesFormatterhorizAlign - the horizontal alignmentvertAlign - the vertical alignmentsortLevel - the sorting levelsortType - the sorting type (asc, desc)public String getHeader()
getHeader in interface DataColumnpublic void setHeader(String header)
header - public String getFormattedValue(Object value)
DataColumngetFormattedValue in interface DataColumnvalue - the unformatted valuepublic String getFormattedTotal(Object totalValue)
DataColumngetFormattedTotal in interface DataColumnpublic GroupCalculator getCalculator()
getCalculator in interface DataColumnpublic void setCalculator(GroupCalculator calculator)
calculator - public void setValuesFormatter(String formatter)
getFormattedValue(Object)formatter - the formatter of the valuespublic String getValuesFormatter()
public void setTotalsFormatter(String formatter)
getFormattedTotal(Object)formatter - the formatter of this column's valuespublic String getTotalsFormatter()
public HorizAlign getHorizAlign()
DataColumngetHorizAlign in interface DataColumnpublic void setHorizAlign(HorizAlign horizAlign)
horizAlign - the horizAlign to setpublic VertAlign getVertAlign()
DataColumngetVertAlign in interface DataColumnpublic void setVertAlign(VertAlign vertAlign)
vertAlign - the vertical alignmentpublic int getSortLevel()
getSortLevel in interface DataColumnpublic void setSortLevel(int sortLevel)
sortLevel - public void setSortType(SortType sortType)
sortType - the type of sortingpublic SortType getSortType()
getSortType in interface DataColumnCopyright © 2006–2015. All rights reserved.