Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Editable NatTable for GlazedLists?(Need to edit values in a GlazedList)
Editable NatTable for GlazedLists? [message #1564220] Wed, 14 January 2015 17:22 Go to next message
Jay Billings is currently offline Jay BillingsFriend
Messages: 54
Registered: July 2011
Member
Hello!

I have been working with GlazedLists for the past few weeks and just recently found out that their default event table viewer does not allow for editing the table values. I started looking at NatTable this morning to replace it. Is it possible to edit the values of a NatTable that is backed by a GlazedList? If yes, is there a good NatTable example I can check out? I looked at the two GlazedLists and NatTable examples on GitHub, but I didn't see any reference to either JFace's CellEditor or GlazedLists WritableTableFormat.

If we get this working, I'm willing to contribute some example code back.

Jay


Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
Re: Editable NatTable for GlazedLists? [message #1564274 is a reply to message #1564220] Wed, 14 January 2015 18:01 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
There are NatTable examples on GitHub? I don't know them, so I can't tell anything about that. But if you are looking at our homepage https://www.eclipse.org/nattable/ you will find the NatTable Examples Application that can be executed via WebStart when clicking on the "Try it!" button.

In the official examples application you will find several examples regarding editing. There is also dedicated example for editing in conjunction with GlazedLists.

But there is one important thing to know. NatTable has its own mechanism for editing. There is no JFace CellEditor support, nor do we support such thing as the WritableTableFormat. The reason for this is that NatTable is a custom painted table control that has no relation to a native SWT table.

To get started with NatTable you might want to give the new Getting Started Tutorial a try I published a few days ago: http://www.vogella.com/tutorials/NatTable/article.html

The editing tutorial is work in progress, but you will find some basic information on our website: https://www.eclipse.org/nattable/documentation.php?page=editing
Re: Editable NatTable for GlazedLists? [message #1564600 is a reply to message #1564274] Wed, 14 January 2015 22:14 Go to previous messageGo to next message
Jay Billings is currently offline Jay BillingsFriend
Messages: 54
Registered: July 2011
Member
Thanks Dirk! I'll check it all out and post what I come up with in the end.

As for the GitHub examples:

https://github.com/eclipse/nebula.widgets.nattable/tree/master/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_600_GlazedLists


Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
Re: Editable NatTable for GlazedLists? [message #1565118 is a reply to message #1564600] Thu, 15 January 2015 05:15 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
Oh, these are the official examples. I wasn't aware that they are also hosted on GitHub.

I think the editing example with GlazedLists is located in the integration section. And the editing examples are located in the configuration section
Re: Editable NatTable for GlazedLists? [message #1697396 is a reply to message #1565118] Wed, 03 June 2015 15:15 Go to previous message
Jay Billings is currently offline Jay BillingsFriend
Messages: 54
Registered: July 2011
Member
I finally got around to hooking Nattable up. It was straightforward and mostly followed the examples. Here's the code:

https://github.com/eclipse/ice/blob/jay/reflectivity/src/org.eclipse.ice.client.widgets/src/org/eclipse/ice/client/widgets/ListComponentSectionPage.java

We are in the process of pulling that code out into a reusable composite.

Thanks again for the help Dirk!


Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
Previous Topic:Putting multiple hyperlinks inside a cell
Next Topic:Multi edit in Menu options
Goto Forum:
  


Current Time: Fri Mar 05 20:50:15 GMT 2021

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

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

Back to the top