Quick Search for SWT Table

I have a table that displays the output from the database, it can be up to 10,000 rows. I am looking to implement a quick search function that will allow the user to easily scroll the line with the value they are looking for.

The idea is to make it look a lot like a quick search for Chrome or Firefox. So:

  • User presses 'CTRL + F'
  • A window will appear:
  • quick find example
  • Then the user can quickly go through the table by pressing / or / \ on each corresponding value

My question is: does such a table exist? I looked at NatTable and XViewer but they both seem pretty big additions for relatively minor changes.

Another library that I looked at is close to installing billl Lucene TableSearcher , unfortunately, it is for filtering, not selection. However, this may be a perspective worth exploring.

+5
source share
3 answers

The solution I chose was not as simple as I hoped, but it had satisfactory performance.

, . , . ( ), 50 , . , , , , , .

"" - SWT ModifyListener, , "" . (0 = 0,0, 1 = 0,1..).

"drop in" , .

+1

, JFace . , . /.

Eclipse ( ). . org.eclipse.ui.dialogs.FilteredTree. , FilteredTable , , , . FilteredTree .

+2

FilteredItemsSelectionDialog

0

All Articles