Skip to main content



      Home
Home » Eclipse Projects » Nebula » GridVisibleRange and GridVisibleRangeSuppor(GridVisibleRange and GridVisibleRangeSuppor)
GridVisibleRange and GridVisibleRangeSuppor [message #922367] Mon, 24 September 2012 20:46 Go to next message
Eclipse UserFriend
Hi,
I just downloaded new grid widget pluggin. I noticed there is GridVisibleRange()method in Grid and GridVisibleRangeSupport class. Are these used to determine visible items
at any given point? Has anybody implemented this?

Thanks,

Dhiresh
Re: GridVisibleRange and GridVisibleRangeSuppor [message #922573 is a reply to message #922367] Tue, 25 September 2012 02:01 Go to previous messageGo to next message
Eclipse UserFriend
Yes that what they are good for. I think the usage is quite straight you
create the RangeSupport through the factory method and then attach
listener which are called when the visible cells changed, giving you
access to new added/removed rows/cols from the viewport.

See [1] on a possible usage.

Tom

[1]http://tomsondev.bestsolution.at/2011/10/07/jface-viewer-and-eclipse-databinding-with-10-000-objects/

Am 25.09.12 02:46, schrieb Dhiresh Mising name:
> Hi,
> I just downloaded new grid widget pluggin. I noticed there is
> GridVisibleRange()method in Grid and GridVisibleRangeSupport class. Are
> these used to determine visible items
> at any given point? Has anybody implemented this?
>
> Thanks,
>
> Dhiresh
Re: GridVisibleRange and GridVisibleRangeSuppor [message #956056 is a reply to message #922367] Wed, 24 October 2012 03:53 Go to previous messageGo to next message
Eclipse UserFriend
Hey Tom,

I have another question for you:
I'm (trying to )using this GridVisibleRange now due to complians about slow performance in a table.
But using this, I can't set another input via "setInput()" to change the tables content. I think the VisibleRange prohibits that.

Is there any chance to combine both?

thanks,
Torsten
Re: GridVisibleRange and GridVisibleRangeSuppor [message #956282 is a reply to message #956056] Wed, 24 October 2012 07:37 Go to previous message
Eclipse UserFriend
Solved!
I simply throw away the complete table and build up a new one.
I expect to be able to sort and filter in the data, so I'll also just use the mechanism for that.

tableViewer.getControl().dispose(); // kill
tableViewer = createTableViewer(getParent()); // new
tableViewer.setInput(oModel.getData()); // fill
getParent().layout(); // fire!

[Updated on: Mon, 29 October 2012 04:12] by Moderator

Previous Topic:Nebula Source Code under the Sonar
Next Topic:Checkbox GridColumn Event Handling
Goto Forum:
  


Current Time: Wed Apr 30 14:07:47 EDT 2025

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

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

Back to the top