For these types of last-resort situations, TableComparatorChooser exposes protected method you can override:
protected boolean isSortingMouseEvent(MouseEvent e)
which is consulted when deciding whether or not a MouseEvent should cause a sort to occur.
Good luck,
James
On Mon, May 4, 2009 at 2:47 PM, Kevin Stembridge
<kevin.stembridge@...> wrote:
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@...