Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridVisibleRange and GridVisibleRangeSuppor(GridVisibleRange and GridVisibleRangeSuppor)
GridVisibleRange and GridVisibleRangeSuppor [message #922367] Tue, 25 September 2012 00:46 Go to next message
Dhiresh Patel  is currently offline Dhiresh Patel
Messages: 79
Registered: July 2009
Member
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 06:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5407
Registered: July 2009
Senior Member
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 07:53 Go to previous messageGo to next message
Torsten Harms is currently offline Torsten Harms
Messages: 3
Registered: October 2012
Junior Member
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


I never finish anyth...
Re: GridVisibleRange and GridVisibleRangeSuppor [message #956282 is a reply to message #956056] Wed, 24 October 2012 11:37 Go to previous message
Torsten Harms is currently offline Torsten Harms
Messages: 3
Registered: October 2012
Junior Member
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!


I never finish anyth...

[Updated on: Mon, 29 October 2012 08:12]

Report message to a moderator

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


Current Time: Thu Oct 23 03:54:09 GMT 2014

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

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