Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Which line is currently visible?
Which line is currently visible? [message #1242872] Mon, 10 February 2014 07:43 Go to next message
Leo Pap is currently offline Leo PapFriend
Messages: 25
Registered: October 2013
Junior Member
Hi,

i have again a (stupid) question. I have a table with 100.000+ lines. These lines are not all visible of course. Is there any way to find out, which lines are currently visible? I couldn't find any way to do this, but I might be blind.... Sad
Re: Which line is currently visible? [message #1242880 is a reply to message #1242872] Mon, 10 February 2014 07:54 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
All lines that are visible are known by the ViewportLayer. So you could iterate over the positions in the viewport and translate position to index. That's the only way I could think of ATM.

There is no API to simply ask which lines are visible AFAIK.
Re: Which line is currently visible? [message #1242888 is a reply to message #1242880] Mon, 10 February 2014 08:07 Go to previous message
Leo Pap is currently offline Leo PapFriend
Messages: 25
Registered: October 2013
Junior Member
ok thank you! I will try this way...Smile
Previous Topic:Nattable refresh problem
Next Topic:Working with the SummaryRowLayer and TreeLayer
Goto Forum:
  


Current Time: Tue Apr 16 15:16:54 GMT 2024

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

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

Back to the top