Skip to main content



      Home
Home » Eclipse Projects » NatTable » How to get dataprovider / Row Object from selection layer.(How to get dataprovider / Row Object from selection layer.)
How to get dataprovider / Row Object from selection layer. [message #1718785] Wed, 30 December 2015 04:48 Go to next message
Eclipse UserFriend
Is there direct way to get RowObject from Selection layer?

Re: How to get dataprovider / Row Object from selection layer. [message #1718789 is a reply to message #1718785] Wed, 30 December 2015 05:23 Go to previous messageGo to next message
Eclipse UserFriend
No, not directly via SelectionLayer.
Re: How to get dataprovider / Row Object from selection layer. [message #1719085 is a reply to message #1718789] Tue, 05 January 2016 00:32 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply. I am trying to get the required by traversing underlying layer. But Somehow, I am not able to get.
I mean, I have instance of Selection Layer for that I am trying to get instance ColumnHideShowLayer, somehow I am not able to get. Could you please suggest the way to get the same.

am trying....

ColumnHideShowLayer columnhideshowLayer = (ColumnHideShowLayer) ((SelectionLayer) selectionLayer).getUnderlyingLayersByRowPosition(getRowIndex());
columnhideshowLayer.getUnderlyingLayersByRowPosition(getRowIndex());

Bu Getting error at line no.1 only...
Re: How to get dataprovider / Row Object from selection layer. [message #1719101 is a reply to message #1719085] Tue, 05 January 2016 04:42 Go to previous message
Eclipse UserFriend
I don't understand what or better why are you trying things that way. What you are trying to do is a hack.

You didn't explain your use case for which you need the current selected row object, but I assume you want to perform actions on the selected item. Have a look at the RowSelectionProvider and the corresponding examples to get an idea how it works. If you have another requirement, specify what you are trying to do instead of asking only half the question.
Previous Topic:Is NatTable Creation in a JPanel using java.awt.Frame possible
Next Topic:Nattable takes too long to refresh
Goto Forum:
  


Current Time: Tue Jun 24 09:11:23 EDT 2025

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

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

Back to the top