public class TableColumnData extends Object
The information contained within an instance of this class is used when exporting a table to spreadsheet.
| Constructor and Description |
|---|
TableColumnData(DialogObjectConstant diaConst,
short cellAlignment,
String cellFormat,
String bcMethod,
int sortIndex,
ListRowComparator.Sorting sorting)
Assigns the provided data to the class' global variables.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBcMethod()
Gets the name of the placement method used to place the Basic Container within this column.
|
short |
getCellAlignment()
Gets a short representing the cell style, used for all cells in the current column.
|
String |
getCellFormat()
Gets a
String representation of the cell format, used for all cells in the current column. |
DialogObjectConstant |
getDiaConst()
Gets the column's
DialogObjectConstant. |
int |
getSortIndex()
Gets the index used to keep track of the order columns should be looked at, when comparing different rows.
|
ListRowComparator.Sorting |
getSorting()
Gets an enum representing the sort direction, i.e.
|
void |
setSortIndex(int sortIndex)
Sets the index used to keep track of the order columns should be looked at, when comparing different rows.
|
void |
setSorting(ListRowComparator.Sorting sorting)
Sets the sort direction, represented as an enum.
|
public TableColumnData(DialogObjectConstant diaConst, short cellAlignment, String cellFormat, String bcMethod, int sortIndex, ListRowComparator.Sorting sorting)
diaConst - The column's DialogObjectConstantcellAlignment - A short representing the cell style. The value should be set according to the values in CellStylecellFormat - A String representation of the cell formatbcMethod - The name of a placement method, if the current column contains a Basic ContainersortIndex - An index used to keep track of the order columns should be looked at, when comparing different rowssorting - An enum representing the sort directionpublic DialogObjectConstant getDiaConst()
DialogObjectConstant.DialogObjectConstantpublic short getCellAlignment()
The value should be set according to the values in CellStyle
public String getCellFormat()
String representation of the cell format, used for all cells in the current column.String representation of the cell formatpublic String getBcMethod()
If this column does not contain a Basic Container, the returned value is an empty String.
public ListRowComparator.Sorting getSorting()
The value is used when sorting tables.
public void setSorting(ListRowComparator.Sorting sorting)
The value is used when sorting tables.
sorting - the sort direction represented as an enumpublic int getSortIndex()
The value is used when sorting tables.
public void setSortIndex(int sortIndex)
The value is used when sorting tables.
sortIndex - the index telling when this column should be checked when comparing two rowsCopyright © 2006–2017 Esito AS. All rights reserved.