« Return to Thread: filter text fields in custom table header

filter text fields in custom table header

by Kevin Stembridge :: Rate this Message:

Reply to Author | View in Thread

Hi all,
I'm trying to create a table that provides multi-column filtering,
where the header of each column contains a text field.

I've followed Jesse's advice on this thread to get the multi filter
thing working using text fields that are separate from the table.
https://glazedlists.dev.java.net/servlets/ReadMsg?listName=users&msgNo=1971

And I've followed James' advice on this screencast to create a custom
table header that includes the text fields. The column header is split
so that the top half displays the column label and the bottom half
contains a text field.
http://www.publicobject.com/glazedlistsdeveloper/screencasts/customtableheaderrenderer/

But once the text fields become part of the table header it seems that
something is intercepting their mouse clicks in order to enable column
sorting. Clicking on a text field does not set focus on the text field
but it does sort the table on that column.

Can anyone provide any advice on how to prevent sorting when clicking
on the text field part of the column header while still enabling
sorting when clicking on the label part of the header?


Many thanks,
Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: filter text fields in custom table header