Hi John,

Expenses uses a SortedHeader Class that overrides Header<String>, then
adds the arrow via HTML.  If I could actually run the code (it doesn't
compile), I'd tell you how well it works.

Is your API going to be strictly UI, or will it also involve getting
the data?  If the latter, I STRONGLY encourage you NOT to build it
around ListDataProvider.  Local data is easy to sort, it's the data on
a server that's "interesting".

Greg

On Dec 10, 10:15 am, John LaBanca <[email protected]> wrote:
> We plan to formalize an API for column sorting in GWT 2.2.  In the meantime,
> can you use IconCellDecorator to add a sort icon to the column headers?
>
> Thanks,
> John LaBanca
> [email protected]
>
> On Fri, Dec 10, 2010 at 10:48 AM, Jeff Schwartz 
> <[email protected]>wrote:
>
> > When the user clicks on a column header you would get the list of data via
> > the ListDataProvider associated with the table and sort the list as per the
> > needs of your application. You can maintain state for the current ordering
> > and a second click on the column header can reverse the ordering of the
> > sort. Once the sort is done you then just refresh the DataProvider and the
> > table will refresh to reflect the changes to the list. It is quite simple.
>
> > Jeff
>
> > On Thu, Dec 9, 2010 at 11:17 AM, Greg Dougherty <
> > [email protected]> wrote:
>
> >> My users would like to be able to sort my CellTable by clicking on a
> >> Column title.  Is there an existing GWT widget for putting a downward
> >> or upward pointing triangle in a CellTable Column title?  For that
> >> matter, what do I have to do to get a mouse click IN a Column title?
>
> >> Thanks,
> >> Greg
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-web-toolkit%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > *Jeff Schwartz*
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to