Skip to main content



      Home
Home » Eclipse Projects » NatTable » Indexing for sorted GlazedList
Indexing for sorted GlazedList [message #1714056] Mon, 09 November 2015 10:41 Go to next message
Eclipse UserFriend
Hi,

I would like to highlight invalid input in a NatTable.
I am using GlazedLists for sorting of the data.

Now, in order to paint the invalid content, I am using IConfigLabelAccumulator.
This relies on column/row position, but I need access to the actual object behind the data.

I tried to get it via ILayer.getRowIndexByPosition(), but this does not transform the visible row index to the underlying data.

So my question would be: how do I get the actual object by having only the visible row/column position as input.


Thanks for any help!
Re: Indexing for sorted GlazedList [message #1714057 is a reply to message #1714056] Mon, 09 November 2015 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
I tried to get it via ILayer.getRowIndexByPosition(), but this does not transform the visible row index to the underlying data


Well, it should exactly do that. On which layer are you calling getRowIndexByPosition()? And which list are you accessing?
Re: Indexing for sorted GlazedList [message #1714131 is a reply to message #1714057] Tue, 10 November 2015 03:07 Go to previous message
Eclipse UserFriend
Okay, sorry for the confusion. My problem was the example from the tutorial:
Tutorial Examples->GlazedLists->GlazedListsSortingExample.
It is missing (for simplicity) the AbstractLayerTransform implementation.

Now, the indexing works as expected!
Previous Topic:ignoring number of persisted rows (while restoring table)
Next Topic:Update column comparators after column reorder
Goto Forum:
  


Current Time: Wed Jun 18 07:53:22 EDT 2025

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

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

Back to the top