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
10
votes
2 answers

Maven NatTable clean+install failure

I'm trying to import and resolve the developer projects for the NatTable project as explained in their Getting Started tutorial. I'm getting the following error on mvn -f [path to pom] clean install: Exception in thread "main"…
Georgian
  • 8,795
  • 8
  • 46
  • 87
5
votes
2 answers

JUnit-testing of NatTable

I want to do plain UI testing (i.e., not using SWTBot or other UI test frameworks) of NatTable contents. My approach is to create a shell, add my custom NatTable and then access the cell and check its contents (data value, config label etc.): //…
Stefan Winkler
  • 3,871
  • 1
  • 18
  • 35
3
votes
0 answers

Access "VSplit" Windows system cursor from SWT

I am developing an Eclipse RCP application (windows-only target platform) which uses both JFace TableViewers and NatTables. When the user wants to resize a table column, they get two different mouse cursors for the two types of tables. For NatTable…
Stefan Winkler
  • 3,871
  • 1
  • 18
  • 35
3
votes
1 answer

NullPointerException when creating a NatTable object in an Eclipse RCP part

I'm learning about Nebula NatTable. I created an RCP app. In the part, I edited the @PostConstruct like this: @PostConstruct public void createComposite(Composite parent) { final NatTable natTable = new NatTable(parent,…
aviit
  • 1,957
  • 1
  • 27
  • 50
3
votes
1 answer

Scroll NatTable programmatically

First question on stackoverflow ;-) Similar question to here, only I am trying to scroll a NAT-Table programmatically. I can neither show a selected Item, nor set a value to the Scrollbar itself (via getHorizontalBar or similar). The internet…
hschne
  • 704
  • 5
  • 21
2
votes
2 answers

Scroll NatTable programmatically to the selected Row

I have an action which scrolls the NatTable to the selected Row. I tried to use the below snippet which works partially natTable.doCommand(new ShowRowInViewportCommand( natTable.getBodyLayer().getViewportLayer(), rowPosition+delta)); It works if I…
SDS
  • 457
  • 5
  • 17
2
votes
0 answers

More rows in column header

I would like to get a table header like this: But I'm able to get only column header without the third row (y1, y2, y3). How can I do that? I have something like this so far: protected ILayer createColumnHeaderLayer(IDataProvider dataProvider, …
Jan Krakora
  • 2,500
  • 3
  • 25
  • 52
2
votes
2 answers

Advanced SWT table widgets

There are a couple of "advanced" table/spreadsheet SWT widgets out there (Nattable, Nebula Grid), but none of them support really large datasets. Nattable is the one which comes closest, but it still has limitations in the datatypes it uses causing…
JesperE
  • 63,317
  • 21
  • 138
  • 197
1
vote
2 answers

How to sort glazed TreeList?

I have a pretty weird question - how to sort glazed TreeList? I am using it in SWT NatTable, and when my data provider is set to GlazedListsDataProvider with TreeList inside it, sorting works in a very strange way. It works fine, if I am using…
Alex K.
  • 3,294
  • 4
  • 29
  • 41
1
vote
1 answer

NatTable: colored row selected, what about the selected cell?

I have a NatTable and some colored rows, via the label "mylabel". "mylabel" is assigned by a ConfigLabelAccumulator: final AggregateConfigLabelAccumulator labelAccumulator = new AggregateConfigLabelAccumulator(); labelAccumulator.add(new…
floh.mueller
  • 83
  • 1
  • 7
1
vote
1 answer

how to find the selected row index thus get items from the row in NatTable Grid?

I've a problem to use the NatTable Grid i.e. High Performance SWT Grid which I downloaded from http://sourceforge.net/projects/nattable/files/NatTable/. I can load the data into this NatTable Grid, but I don't know(or find any method in NatTable)…
yayayokoho3
  • 1,209
  • 2
  • 16
  • 40
1
vote
1 answer

Get the column width by index instead of position

I would like to get the column width by index instead of position. To get the width of columns currently viewed I can use this. bodyLayer.getColumnWidthByPosition(columnPosition) Is it possible to get the column width by index instead? This would…
Michael
  • 3,411
  • 4
  • 25
  • 56
1
vote
1 answer

Add a multi-select ComboBoxCellEditor in a Filter Row

I would like to have a check box in a filter row for certain columns. To do this I've added a ComboCellEditor with specified check box values to choose from. final ComboBoxCellEditor comboBoxCellEditor = new…
Michael
  • 3,411
  • 4
  • 25
  • 56
1
vote
2 answers

Table not displaying until clicked when a CellPainterWrapper instead of a TextPainter for columns

I would like to add dynamic icons to column headers. To do this I've created a class that extends CellPainterWrapper and added a CellPainterDecorator with a TextPainter as the base painter and my dynamic icon painter as the decorator painter. If I…
Michael
  • 3,411
  • 4
  • 25
  • 56
1
vote
1 answer

Body Layer not displaying correctly when using a FilterRowHeaderComposite

I have a composite layer for my columns to show a summary header and the column headers. If I create a FilterRowHeaderComposite and replace the column layer in the composite layer, it displays the filters correctly but no longer shows any of the…
Michael
  • 3,411
  • 4
  • 25
  • 56
1
2 3
17 18