public class ReportingTableModel extends ObjectTableModel
data, header
Constructor and Description |
---|
ReportingTableModel(List<List<Object>> data,
List<?> header,
Query q)
Constructor for ReportingTableModel
|
Modifier and Type | Method and Description |
---|---|
void |
addGroupingRows(Map<Integer,List<Object>> groupingrows)
Add Grouping Rows to Table Model
|
void |
addRow(List row)
Add a row at the bottom of tablemodel.
|
int |
getClickableIndex() |
int |
getColumnCount()
Get the amount of colums of the tablemodel.
|
Object |
getColumnHeader(int c)
Returns the header at column c.
|
String |
getColumnName(int c)
Get the name of the Column.
|
List<List<Object>> |
getData()
Returns the Raw List of Data without clickableIndex, rownumber or groupingrows
|
static List<Pair<String,String>> |
getDrillDownValues(ReportingExportable re) |
List<List<Object>> |
getFullData()
returns the completeted Data table including clickableIndex at index 0 (if exists), rownumber at index 0 or 1 (depends on clickableindex) and grouping rows (which habe no clickableIndex or rownumber
Note: Method builds a new table, so this may cost performance.
|
Query |
getQuery() |
int |
getRowCount()
Get amount of rows in the tablemodel.
|
ReportingExportable |
getSeriesDef(int col) |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.
|
boolean |
isGroupingRow(int rowIndex)
Returns boolean flag if a rowIndex references to a grouping row
|
void |
setHTMLExport(boolean isHTMLExport)
Deprecated.
only relevant for old reporting-UI. since the old UI is deprecated too
|
void |
setSeriesDef(Map<Integer,ReportingExportable> seriesDef) |
void |
setValueAt(Object val,
int r,
int c)
Sets a cell value in the table model.
|
void |
showGroupingRows(boolean showRows)
Set Flag if grouping rows should be shown.
|
addTableModelListener, getColumnClass, getHeader, isCellEditable, removeTableModelListener, setHeader
public ReportingTableModel(List<List<Object>> data, List<?> header, Query q)
data
- the data Matrix of the reportingtablemodel (rownumbers and groupingrows are not included)header
- the header objects without a header for the row number columnsq
- The Query Objetpublic void addGroupingRows(Map<Integer,List<Object>> groupingrows)
groupingrows
- a map of grouping rows
map has the row index of this gouping row as key and the row (list of objects) as valuepublic int getRowCount()
ObjectTableModel
getRowCount
in interface TableModel
getRowCount
in class ObjectTableModel
public int getColumnCount()
ObjectTableModel
getColumnCount
in interface TableModel
getColumnCount
in class ObjectTableModel
public Object getColumnHeader(int c)
ObjectTableModel
getColumnHeader
in class ObjectTableModel
c
- the column indexpublic String getColumnName(int c)
ObjectTableModel
getColumnName
in interface TableModel
getColumnName
in class ObjectTableModel
c
- the column indexpublic boolean isGroupingRow(int rowIndex)
rowIndex
- public void addRow(List row)
ObjectTableModel
addRow
in class ObjectTableModel
row
- the new rowpublic void setValueAt(Object val, int r, int c)
setValueAt
in interface TableModel
setValueAt
in class ObjectTableModel
val
- the objectr
- the row indexc
- the column indexpublic List<List<Object>> getFullData()
public List<List<Object>> getData()
getData
in class ObjectTableModel
public void showGroupingRows(boolean showRows)
showRows
- - true if sum Rows should be shown.public Object getValueAt(int rowIndex, int columnIndex)
ObjectTableModel
getValueAt
in interface TableModel
getValueAt
in class ObjectTableModel
rowIndex
- the row indexcolumnIndex
- the column indexpublic static List<Pair<String,String>> getDrillDownValues(ReportingExportable re)
re
- @Deprecated public void setHTMLExport(boolean isHTMLExport)
public int getClickableIndex()
public Query getQuery()
public void setSeriesDef(Map<Integer,ReportingExportable> seriesDef)
public ReportingExportable getSeriesDef(int col)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.