Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Automatic scroll to last row?
Automatic scroll to last row? [message #1026612] Tue, 26 March 2013 12:08 Go to next message
Jon Dahlberg is currently offline Jon DahlbergFriend
Messages: 11
Registered: February 2013
Junior Member
I am adding rows live to NatTable and I would like to be able to have a mode where the table automatically scrolls to the last row when rows are added.

To do this I am implementing the ListEventListener interface for glazed lists EventList and doing viewPortLayer.moveRowPositionIntoViewport(rowIndex, true) on the listChanged event. Is there a better way to accomplish this?

I am using the snapshot build of 1.0.0 if it makes any difference.
Re: Automatic scroll to last row? [message #1027047 is a reply to message #1026612] Tue, 26 March 2013 13:59 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
You could also create a ILayerListener or ILayerEventHandler (which is typed) for handling RowInsertEvents. For this you would need to use the DetailGlazedListsEventHandler that is added with 1.0.0. Nevertheless you would still need to call viewPortLayer.moveRowPositionIntoViewport(rowIndex, true) to scroll to the last row.
Previous Topic:Paint problem with two level column groups and custom cell painters
Next Topic:-
Goto Forum:
  


Current Time: Thu Apr 25 14:35:43 GMT 2024

Powered by FUDForum. Page generated in 0.02658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top