A lightweight, scaleable Java (SWT) grid that can be used in pure SWT or Eclipse RCP applications.
The grid supports standard features such as: -
- Sorting (multiple columns).
- Filtering.
- Images.
- Styling (Fonts, colours, cell borders, etc.).
- Column resizing/repositioning (via drag-and-drop).
- Grouping (data can be grouped by aggregate/summary values).
See the Examples.java class to set-up and run the sample demo.
To use the grid you need to specify 4 things: -
- IGridContentProvider
- IGridLabelProvider
- Columns
- Elements (data to show in a row).
Finally, in addition to the standard control listeners, you can add an IGridListener to recieve grid-based events.