• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

How to sort the Generic List of values in a celltable in Java GWT?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have an absolute panel which contains one Cell table, as shown in the attachment which have list of columns..

Problem: Every time the list is randomly displayed, i want to sort the list. I have used the Collections.sort method like this,

Code:
@Override
public void onSuccess(Method pMethod, List<Met> pListMD) {
Collections.sort(pListMD,new Comparator<Met>() {

@Override
public int compare(Met o1, Met o2) {

return o1.getMetName().compareTo(o2.getMetName());
}
});

Note: Sorting is working fine in IE8 but not in Chrome and Firefox.

Please help me in sorting the list in Chrome and FF also.

Thanks in advance,
Raj

image_r8.png
[Thumbnail for image_r8.png]
 
This is my favorite tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!