Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » How to split single cell into multiple rows
How to split single cell into multiple rows [message #1733110] Tue, 24 May 2016 12:57 Go to next message
Alin Vulparu is currently offline Alin VulparuFriend
Messages: 5
Registered: February 2014
Junior Member
I have a data model that contains an array of data and want to display the data inside the array in different rows under the same column without multiplying the original model data.

example:
class TableModel{
String field1;
String field2;
String[] fieldArray;
String field3;
String field4;
}


Now i would like to display this as in the following screenshot:

index.php/fa/25998/0/

What would be the best way to go about doing this in nattable?

Re: How to split single cell into multiple rows [message #1733112 is a reply to message #1733110] Tue, 24 May 2016 13:27 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
Use the TableCellPainter and TableCellEditor

https://www.eclipse.org/nattable/nandn/nandn_110.php

An example can be found in the EditorExample
Re: How to split single cell into multiple rows [message #1733119 is a reply to message #1733112] Tue, 24 May 2016 14:21 Go to previous message
Alin Vulparu is currently offline Alin VulparuFriend
Messages: 5
Registered: February 2014
Junior Member
Dirk Fauth wrote on Tue, 24 May 2016 16:27
Use the TableCellPainter and TableCellEditor

https://www.eclipse.org/nattable/nandn/nandn_110.php

An example can be found in the EditorExample


Thanks a lot for the help, it works Very Happy
Previous Topic:fresh installed, did nothing, immediately this
Next Topic:NatTable 1.4.0 released
Goto Forum:
  


Current Time: Thu Sep 20 17:11:12 GMT 2018

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

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

Back to the top