Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT table filtering(How to make a fast search on an SWT table by writing query in an text input ?)
SWT table filtering [message #502694] Wed, 09 December 2009 13:24 Go to next message
Oceanys  is currently offline Oceanys Friend
Messages: 3
Registered: December 2009
Junior Member
Hi,

I'm using SWT Table component without any JFace top level component.

I have a populated table and a simple Text input where I can write a key word search. I want to implement table filtering feature using only SWT components (no JFace please because I'm using NetBeans) or an appropriate API.

How can I do this ?

In fact I tried the GlazedLists API but its tutorial is dedicated to Swing and the only example that I found contains a JFace TableViewer.

Thanks in advance.
Re: SWT table filtering [message #502748 is a reply to message #502694] Wed, 09 December 2009 15:21 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Oceanys wrote:
> Hi,
>
> I'm using SWT Table component without any JFace top level component.
>
> I have a populated table and a simple Text input where I can write a key
> word search. I want to implement table filtering feature using only SWT
> components (no JFace please because I'm using NetBeans) or an
> appropriate API.
>
> How can I do this ?

If you don't want to use the jface viewer API, you have to write your
own viewer, because the SWT widgets are free of concepts like filtering,
sorting, and the like. So what you need to do is to introduce a layer
between your model and the widget that contains the filtered
data (and of-course some API to add/remove filters) which also ensures
that the SWT table content is refreshed after filter or model changes.

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:Event at org.eclipse.swt.widgets.Combo
Next Topic:SWT widget not displayed
Goto Forum:
  


Current Time: Thu Nov 27 05:00:20 GMT 2014

Powered by FUDForum. Page generated in 0.02004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software