Skip to main content



      Home
Home » Eclipse Projects » NatTable » Automatic scroll to last row?
Automatic scroll to last row? [message #1026612] Tue, 26 March 2013 08:08 Go to next message
Eclipse UserFriend
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 09:59 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 08:22:25 EDT 2025

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

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

Back to the top