Skip to main content
summaryrefslogtreecommitdiffstats
blob: c745bda61d681e84f569751000c0f74d28b8203e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Pimp your JFace TreeViewer with the Nebula XViewer

The JFace TreeViewer is a great Viewer, but is lacking advanced features like filtering, sorting and searching.  In addition, there is no way for the end user to customize how they want to view the data.  The solution is the XViewer.  Converting a TreeViewer into an XViewer enhances the user experience by allowing them to dynamically interact with the data.

An XViewer provides:

To the User:
   - Simple text filtering of loaded items using either string or regular expression
   - Searching of table contents that highlights results in the table
   - Customization of the table columns in real-time provides
      - Ability to show or hide available columns
      - Ability to sort individual columns both forward and reverse
      - Ability to sort multiple columns in order
      - Ability to provide individual filters for each column
      - Ability to apply "computed columns" which provide calculations against an existing column
   - Save the above customizations for later use by any user
   - Toggle between saved customizations and set customizations as the default
   - Exporting visible data to HTML, CSV and PDF

To the Developer:
   - Easy Integration - XViewer extends JFace TreeViewer and default content and label providers
   - User Customization - Provide default table customization while allowing flexibility for users to tailor
   - Integrated Menus - Integrate XViewer menu items with your existing table context menus
   - Pre-defined column types (eg: String, Integer, Percents) with ability to application specific types

This tutorial will show:

   - How to take an existing TreeViewer and covert it over to an XViewer
   - How to implement the local and global storage of customizations
   - How to provide text, color, images and fonts to your table cells independent of each other 
   - How to provide customized menus to integrate XViewer capabilities with your own context menus
   - How to create your own computed columns 
   - How to use the bar-graph feature in a column to provide graphical bars for column data 

For more information, please visit our Nebula page at http://www.eclipse.org/nebula/widgets/xviewer/xviewer.php

Back to the top