Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Custom cellrenderer with wrong getColumn
Custom cellrenderer with wrong getColumn [message #593874] Fri, 06 March 2009 15:06
David F. is currently offline David F.Friend
Messages: 12
Registered: July 2009
Junior Member
Hello,

I try to customize the nebula grid to display a particular class called
MyClass.
So I have make my own CellRenderer and my own GridItem and I use them with
the nebula grid. My CellRenderer extends DefaultCellRenderer and use an
ArrayList of MyClass to store data (like the GridItem for texts or images).

But in my own paint(GC gc, Object value) method, when I ask to getColumn()
the number of the current column, I always have the number of columns
(like a count).
When I debug step by step, I can see that:
- getBounds is correct
- getRow is correct
- getColumn is wrong

Have you any idea of my error ?

Thanks

David
Previous Topic:GridViewer - Getting notifed when a record gets invisible through vertical scrolling
Next Topic:Custom cellrenderer with wrong getColumn
Goto Forum:
  


Current Time: Sat Apr 27 04:40:36 GMT 2024

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

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

Back to the top