Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » IDataProvider
IDataProvider [message #901986] Wed, 15 August 2012 12:06 Go to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 191
Registered: July 2009
Senior Member
Hi,

I implemented a data provider to provide the body data (BodyDataProvider). From this is derived the
class to provide the column header data (ColHeaderDataProvider). But it seams instead of calling the
methods of class ColHeaderDataProvider the methods from class BodyDataProvider are called.

how come his? Or did I miss some thing?

Martin
Re: IDataProvider [message #901989 is a reply to message #901986] Wed, 15 August 2012 12:15 Go to previous messageGo to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 191
Registered: July 2009
Senior Member
Hi,

found my mistake. I have to set the correct providers to the column and row header layer steck. By
mistake I used the BodyDataProvider.

this is correct
IDataProvider dataProvider = new BodyDataProvider();
IDataProvider colHeaderDataProvider = new ColHeaderDataProvider();
IDataProvider rowHeaderDataProvider = new RowHeaderDataProvider();
bodyLayer = new BodyLayerStack(dataProvider);
ColumnHeaderLayerStack columnHeaderLayer = new ColumnHeaderLayerStack(colHeaderDataProvider);
//before dataProvider instead of colHeaderDataProvider
RowHeaderLayerStack rowHeaderLayer = new RowHeaderLayerStack(rowHeaderDataProvider); //before
dataProvider instead of rowHeaderDataProvider

Martin



Martin Jacob wrote, On 15.08.2012 14:06:
> Hi,
>
> I implemented a data provider to provide the body data (BodyDataProvider). From this is derived the
> class to provide the column header data (ColHeaderDataProvider). But it seams instead of calling the
> methods of class ColHeaderDataProvider the methods from class BodyDataProvider are called.
>
> how come his? Or did I miss some thing?
>
> Martin
Re: IDataProvider [message #901990 is a reply to message #901986] Wed, 15 August 2012 12:19 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Hi,

without seeing the code that leads to your issue it is hard to help. How are your classes look like and how do you attach the data provider to the label stacks?

Greez,
Dirk
Previous Topic:GlazedLists & EMF
Next Topic:addColumnsIndexesToGroup
Goto Forum:
  


Current Time: Thu Apr 25 13:42:58 GMT 2024

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

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

Back to the top