Mercurial > hg > STI-GWT
changeset 54:5c51a488c822 CellTable
fix: add missing refresh of highlights on range change of table
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 10 Dec 2012 17:28:22 +0100 |
parents | 0a3dca94458c |
children | 08ae8b6d627f |
files | src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java Mon Dec 10 17:17:10 2012 +0100 +++ b/src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java Mon Dec 10 17:28:22 2012 +0100 @@ -21,6 +21,7 @@ import com.google.gwt.view.client.CellPreviewEvent.Handler; import com.google.gwt.view.client.ListDataProvider; import com.google.gwt.view.client.Range; +import com.google.gwt.view.client.RangeChangeEvent; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.NodeList; import com.google.gwt.dom.client.Style.BorderStyle; @@ -300,8 +301,13 @@ SimplePager pager = new SimplePager(); pager.setDisplay(this.elementsTable); - + dataProvider.setList(this.actualObjectSet); + this.elementsTable.addRangeChangeHandler(new RangeChangeEvent.Handler(){ + public void onRangeChange(RangeChangeEvent event){ + updateView(false); + } + }); this.elementsTable.addCellPreviewHandler(new Handler<DataObject>() {