public class DataSetTable extends Table
Modifier and Type | Field and Description |
---|---|
protected DataProvider |
dataProvider |
protected DataSet |
dataSet |
protected int |
dataSetRowCount |
protected DomainConfiguration |
groupByConfig |
protected Map |
groupByFunctions |
protected DataProperty |
groupByProperty |
protected boolean |
groupByShowTotals |
protected String |
groupByTotalsHtmlStyle |
currentPage, headerPosition, htmlClass, htmlStyle, maxRowsPerPage, model, rowEvenStyle, rowEventClass, rowHoverClass, rowHoverStyle, rowOddClass, rowOddStyle, tableColumns
Constructor and Description |
---|
DataSetTable() |
Modifier and Type | Method and Description |
---|---|
protected void |
catchDataSetChanges() |
TableColumn |
createColumn() |
DataProperty |
getDataProperty(int columnIndex) |
DataSet |
getDataSet() |
String |
getGroupByFunctionCode(int columnIndex) |
DataProperty |
getGroupByProperty() |
String |
getGroupByTotalsHtmlStyle() |
TableModel |
getModel()
Be always aware of changes in the dataset every time the table model is requested in order to ensure
that the table feeds from the most up to date data.
|
int[] |
getNonGroupByColumnIndexes() |
DataProperty |
getOriginalDataProperty(int columnIndex) |
DataSet |
getOriginalDataSet() |
protected DataSet |
groupByDataSet(DataProperty groupByProperty) |
protected void |
initFromDataSet() |
boolean |
isNonGroupByColumn(int columnIndex) |
void |
refreshGroupBy() |
void |
setDataProvider(DataProvider provider) |
void |
setGroupByFunctionCode(int columnIndex,
String functionCode) |
void |
setGroupByProperty(DataProperty property) |
void |
setGroupByShowTotals(boolean groupByShowTotals) |
void |
setGroupByTotalsHtmlStyle(String groupByTotalsHtmlStyle) |
boolean |
showGroupByTotals() |
protected void |
switchGroupByOff() |
protected void |
switchGroupByOn(DataProperty property) |
addColumn, getColumn, getColumnCount, getColumnName, getCurrentPage, getHeaderPosition, getHtmlClass, getHtmlStyle, getMaxRowsPerPage, getNumberOfPages, getRowCount, getRowEvenStyle, getRowEventClass, getRowHoverClass, getRowHoverStyle, getRowOddClass, getRowOddStyle, getValueAt, moveColumn, removeColumn, setCurrentPage, setHeaderPosition, setHtmlClass, setHtmlStyle, setMaxRowsPerPage, setModel, setRowEvenStyle, setRowEventClass, setRowHoverClass, setRowHoverStyle, setRowOddClass, setRowOddStyle
protected transient DataProvider dataProvider
protected transient DataSet dataSet
protected transient int dataSetRowCount
protected transient DataProperty groupByProperty
protected transient DomainConfiguration groupByConfig
protected Map groupByFunctions
protected boolean groupByShowTotals
protected String groupByTotalsHtmlStyle
public TableColumn createColumn()
createColumn
in class Table
public TableModel getModel()
public void setDataProvider(DataProvider provider)
protected void initFromDataSet()
public DataSet getDataSet()
public DataProperty getDataProperty(int columnIndex)
public DataSet getOriginalDataSet()
public DataProperty getOriginalDataProperty(int columnIndex)
public DataProperty getGroupByProperty()
public void setGroupByProperty(DataProperty property)
public String getGroupByFunctionCode(int columnIndex)
public void setGroupByFunctionCode(int columnIndex, String functionCode)
public boolean showGroupByTotals()
public void setGroupByShowTotals(boolean groupByShowTotals)
public String getGroupByTotalsHtmlStyle()
public void setGroupByTotalsHtmlStyle(String groupByTotalsHtmlStyle)
public boolean isNonGroupByColumn(int columnIndex)
public int[] getNonGroupByColumnIndexes()
protected void switchGroupByOn(DataProperty property)
protected void switchGroupByOff()
public void refreshGroupBy()
protected void catchDataSetChanges()
protected DataSet groupByDataSet(DataProperty groupByProperty)
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.