|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.ds.ObjectTableModel
com.groiss.reporting.data.ReportingTableModel
public class ReportingTableModel
reporting tablemodel holds data which are read from db and calculated data like grouping rows
| Field Summary |
|---|
| Fields inherited from class com.groiss.ds.ObjectTableModel |
|---|
data, header |
| Constructor Summary | |
|---|---|
ReportingTableModel(List<List<Object>> data,
List<?> header,
Query q)
Constructor for ReportingTableModel |
|
| Method Summary | |
|---|---|
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 |
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 |
Query |
getQuery()
|
int |
getRowCount()
Get amount of rows in the tablemodel. |
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)
Set flag if tablemodel is used to export results to HTML. needed to build linked reports Links in Colums and to enable clickable columsn * @param isHTMLExport true if TableModel is used for a HTML Export. |
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. |
| Methods inherited from class com.groiss.ds.ObjectTableModel |
|---|
addTableModelListener, getColumnClass, getHeader, isCellEditable, removeTableModelListener, setHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 Objet| Method Detail |
|---|
public 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 TableModelgetRowCount in class ObjectTableModelpublic int getColumnCount()
ObjectTableModel
getColumnCount in interface TableModelgetColumnCount in class ObjectTableModelpublic Object getColumnHeader(int c)
ObjectTableModel
getColumnHeader in class ObjectTableModelc - the column index
public String getColumnName(int c)
ObjectTableModel
getColumnName in interface TableModelgetColumnName in class ObjectTableModelc - the column indexpublic boolean isGroupingRow(int rowIndex)
rowIndex -
public void addRow(List row)
ObjectTableModel
addRow in class ObjectTableModelrow - the new row
public void setValueAt(Object val,
int r,
int c)
setValueAt in interface TableModelsetValueAt in class ObjectTableModelval - the objectr - the row indexc - the column indexpublic List<List<Object>> getFullData()
public List<List<Object>> getData()
getData in class ObjectTableModelpublic void showGroupingRows(boolean showRows)
showRows - - true if sum Rows should be shown.
public Object getValueAt(int rowIndex,
int columnIndex)
ObjectTableModel
getValueAt in interface TableModelgetValueAt in class ObjectTableModelrowIndex - the row indexcolumnIndex - the column indexpublic Pair<String,String> getDrillDownValues(ReportingExportable re)
re -
public void setHTMLExport(boolean isHTMLExport)
public int getClickableIndex()
public Query getQuery()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||