Row filters of tables [message #1234162] |
Tue, 21 January 2014 11:24 |
Rainer N. Messages: 9 Registered: January 2014 |
Junior Member |
|
|
Hi,
my intent is to add a row to a table which contains the column sum of every visible row.
To do so, I need to ignore this row when the row filters are applied. However, the corresponding methods are private and thus can't be overridden:
private void applyRowFiltersInternal() {
for (ITableRow row : m_rows) {
applyRowFiltersInternal((InternalTableRow) row);
}
}
private void applyRowFiltersInternal(InternalTableRow row) {
row.setFilterAcceptedInternal(true);
if (m_rowFilters.size() > 0) {
for (ITableRowFilter filter : m_rowFilters) {
if (!filter.accept(row)) {
row.setFilterAcceptedInternal(false);
/*
* ticket 95770
*/
if (isSelectedRow(row)) {
deselectRow(row);
}
break;
}
}
}
}
m_rows is private, too. Thus, I can't remove the row and add it later using this list. (If I remove the row using the methods, events will be fired and the newly added row does not appear (presumably because of the filtering ))
If I wanted to use custom row filters, I had to create filters for all different column types and I probably had to customize the ColumnFilterForm.
What other way is possible to achieve the desired behaviour?
(Besides, if possible, I would also like to skip the row when sorting the table.)
Thank you.
Best regards,
Rainer
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02246 seconds