|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.util.List<java.util.List<java.lang.Object>> data,
java.util.List<?> header,
Query q)
Constructor for ReportingTableModel |
Method Summary | |
---|---|
void |
addGroupingRows(java.util.Map<java.lang.Integer,java.util.List<java.lang.Object>> groupingrows)
Add Grouping Rows to Table Model |
void |
addRow(java.util.List row)
Add a row at the bottom of tablemodel. |
int |
getClickableIndex()
|
int |
getColumnCount()
Get the amount of colums of the tablemodel. |
java.lang.Object |
getColumnHeader(int c)
Returns the header at column c. |
java.lang.String |
getColumnName(int c)
Get the name of the Column. |
java.util.List<java.util.List<java.lang.Object>> |
getData()
Returns the Raw List of Data without clickableIndex, rownumber or groupingrows |
Pair<java.lang.String,java.lang.String> |
getDrillDownValues(ReportingExportable re)
|
java.util.List<java.util.List<java.lang.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. |
java.lang.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. |
void |
setValueAt(java.lang.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(java.util.List<java.util.List<java.lang.Object>> data, java.util.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 ObjetMethod Detail |
---|
public void addGroupingRows(java.util.Map<java.lang.Integer,java.util.List<java.lang.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 javax.swing.table.TableModel
getRowCount
in class ObjectTableModel
public int getColumnCount()
ObjectTableModel
getColumnCount
in interface javax.swing.table.TableModel
getColumnCount
in class ObjectTableModel
public java.lang.Object getColumnHeader(int c)
ObjectTableModel
getColumnHeader
in class ObjectTableModel
c
- the column index
public java.lang.String getColumnName(int c)
ObjectTableModel
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class ObjectTableModel
c
- the column indexpublic boolean isGroupingRow(int rowIndex)
rowIndex
-
public void addRow(java.util.List row)
ObjectTableModel
addRow
in class ObjectTableModel
row
- the new rowpublic void setValueAt(java.lang.Object val, int r, int c)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class ObjectTableModel
val
- the objectr
- the row indexc
- the column indexpublic java.util.List<java.util.List<java.lang.Object>> getFullData()
public java.util.List<java.util.List<java.lang.Object>> getData()
getData
in class ObjectTableModel
public void showGroupingRows(boolean showRows)
showRows
- - true if sum Rows should be shown.public java.lang.Object getValueAt(int rowIndex, int columnIndex)
ObjectTableModel
getValueAt
in interface javax.swing.table.TableModel
getValueAt
in class ObjectTableModel
rowIndex
- the row indexcolumnIndex
- the column indexpublic Pair<java.lang.String,java.lang.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 |