Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Re-ordering of rows doesn't update row header position
Re-ordering of rows doesn't update row header position [message #1689051] Sun, 22 March 2015 14:41 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Hi all,
I've just tested the _5083_ColumnAndRowReorderExample.
If I move a row, the position number in the row header remains
unchanged. How could I achieve that this position number is updated
after moving?
Is there a command for moving rows? I.e., if I want to create a context
menu with "move row up" then I have to give a command to do this. Is
this possible? And could I bind this action to a shortcut (like in
Eclipse Java IDE ALT+UP)?

TIA,
Ralf.
Re: Re-ordering of rows doesn't update row header position [message #1689111 is a reply to message #1689051] Sun, 22 March 2015 19:06 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Quote:
How could I achieve that this position number is updated after moving?


You need to implement an IDataProvider that shows the row number correlated to the position in the list. The current implementation simply increments the number IIRC.

Quote:
Is there a command for moving rows?


RowReorderCommand

Quote:
I want to create a context menu with "move row up" ... Is this possible?


Yes, use the PopupMenuBuilder and provide a custom IMenuItemProvider

Quote:
And could I bind this action to a shortcut


Yes, you need to register a UIBindingConfiguration
Previous Topic:Auto row height for images
Next Topic:Confused about layer configuration
Goto Forum:
  


Current Time: Thu Apr 25 01:12:34 GMT 2024

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

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

Back to the top