Questions tagged [nattable]

Use this tag for questions about Eclipse NatTable which is an SWT table/grid widget that supports very large data sets and advanced features.

Eclipse NatTable which is part of the Eclipse Nebula project provides a high performance SWT data grid with many more features than the standard SWT table.

270 questions
0
votes
1 answer

Enabling checkbox in NATTable with data provider which is represented by a Boolean List

We have a data model which is represented by a java bean which consists of a list of boolean rather than individual boolean instances. public class MyModel { private String name; private String desc; private boolean check; private…
Joel Johnson
  • 93
  • 1
  • 9
0
votes
2 answers

NatTable - need checkbox only when editable

I am new to NatTable. I have gone thorough the NatTable examples and its source code but am not getting a solution to one of my problems. In the NatTable I have a column that should provide a checkbox for selection depending on the value of another…
praddyB
  • 153
  • 1
  • 6
0
votes
3 answers

Export Eclipse NAT Table to CSV/Excel

I am currently working on a project that uses a nat table to display data to a user. I am wanting to add an option to export this nat table to a csv file or an excel document. Is there an easy way to export to excel or must I find a way to do it…
James Manes
  • 526
  • 1
  • 11
  • 23
-1
votes
1 answer

RowSelection in NatTable with column group header

I created an Eclipse application where I implemented the row selection for the NatTable with a single column header. The row selection works correctly. Later I added a NatTable with a column group header to the application. Here comes problem, after…
yethro2021
  • 13
  • 2
-1
votes
1 answer

Changing the NatTable color

I am trying to grey-out/disable the entire NatTable upon a if condition. What I'm trying to achieve here is similar to the setenabled(false) function in a regular table. So Far I have found out that the configRegistry needs to be changed it must be…
graviteas
  • 1
  • 1
-1
votes
1 answer

Copy content from one nattable to other with same object type

Copy content (multiple rows) from one nattable to other. Both the nattables have same object type.
newB2java
  • 9
  • 3
-1
votes
1 answer

How to set a label to row header cell based on row object condition NatTable

If a user makes a change in the data I want to be able to mark an indication in the row header cell of that row. I tried a few things but was not successful. I know that I should set a label to the cell and then decorate the cell with the icon. I…
newB2java
  • 9
  • 3
-1
votes
1 answer

Custom DataProvider Nattable

I create nattable the following way. But I can get access to the cells only through getters and setters in my Student class. How else can I access cells? Should I create my own BodyDataProvider or use IDataProvider? If it is true, could someone give…
-1
votes
1 answer

Auto - Resize NatTable dynamically

I want to Auto - Resize NatTable dynamically according to the number of rows. In other words, I have a nattable of height 'x' with 10 rows. If rows are less than 10 then the height of nattable should reduce, so that empty space cannot be seen. If…
-1
votes
1 answer

How to change + icon in NatTable TreeGrid to arrow icon?

When I am trying TreeGridExample from here I get the tree with + expand-collapse icon. How can I change it to arrow icon like |>? I just want to is it customisable too or not.
Sachin Giri
  • 189
  • 11
-2
votes
1 answer

Is there any API in NatTable examples which shows source code upon clicking view source link?

I just wanted to know how View Source link is working which opens source code of a particular example NatTable class upon clicking. Same kind of requirement is there. So just wanted to know whether is there any built in API which fetches source code…
-2
votes
1 answer

Is there any way to drag from grid table viewer and drop it to nat table

I've added DragListener in GridTable viewer and DropListener in nat table but when I select any row grid viewer and drop it nat table ; selected data is not getting dropped Code snippet is attached below Drag Source listener in…
User134
  • 1
  • 2
-2
votes
1 answer

How do I fix NullPointerException and putting data into NatTable

When I try to use this piece of code: students.add(new Student("John","1", 3)); students.add(new Student("Chris","2", 2)); NatTable table = createTable(shell, students); table.refresh(); NullPointerException appears, maybe it is because something…
-2
votes
1 answer

Paint a more thick edge of each n cells in a nattable and set a color

a) How to paint a more thick edge of each two cells horizontally? b) and each 2 or 3 cell vertically? c) how can i set the borders color ? Thanks in advance. Example
ADeveloper
  • 15
  • 4
-3
votes
2 answers

How to get the column name in nattable?

I had create an example like Editor Example, while the difference is that my demo can hide column. While when I hidden some column, I can not the collect selected column index, I changed my mind, I want to get the selected column's header name. How…
1 2 3
17
18