Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

method onSort()

925796Mar 29 2012 — edited Mar 29 2012
Hi all !!!
I ve a read only table sortable.
I ve created a method onSort() with this code :

+public void onSort(SortEvent sortEvent) {+

List sortList = sortEvent.getSortCriteria();
SortCriterion sc = (SortCriterion)sortList.get(0);
boolean order = sc.isAscending();
String property = sc.getProperty();

+}+

So now when I press the triangles in the column headers I can catch the information about the column sorted and in which order.
My problem is that I want to avoid the sorting of the column, i.e.I want to have only the information about column and order.
Any tips ?

Thanks in advance
This post has been answered by John Stegeman on Mar 29 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2012
Added on Mar 29 2012
1 comment
189 views