TableComparatorChooser: initial sort column

View: New views
2 Messages — Rating Filter:   Alert me  

TableComparatorChooser: initial sort column

by fab|an :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 how can I set the initial sort column which TableComparatorChooser takes to set the comparator?

fabian

Re: TableComparatorChooser: initial sort column

by James Lemieux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

TableComparatorChooser tcc = ...

tcc.appendComparator(0, 0, false);

OR

tcc.fromString("column 0");

The fromString call is designed more for restoring the sorting state
of the TCC (by passing it the String returned from TCC.toString()),
but also functions well as a public API for altering the sort.

James

On 7/29/08, fab|an <fabian@...> wrote:

>
> Hi,
>
>  how can I set the initial sort column which TableComparatorChooser takes to
> set the comparator?
>
> fabian
> --
> View this message in context:
> http://www.nabble.com/TableComparatorChooser%3A-initial-sort-column-tp18713939p18713939.html
> Sent from the GlazedLists - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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

LightInTheBox - Buy quality products at wholesale price!