[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Totals row for table

You can differentiate the row - you can set background and foreground 
colours as well as change the font to be bold, italic etc.

Check out ITableColorProvider and ITableFontProvider.

"Taavi Tänavsuu" <taavi.tanavsuu@xxxxxxx> wrote in message 
news:d7hk1g$t9d$1@xxxxxxxxxxxxxxxxxxx
> Hi,
>
> Newbie question: can anyone give a hint what would be the best way to add 
> a totals row to a JFace TableViewer?  I was thinking of either adding an 
> additional row via the table's ViewContentProvider, but seems like there's 
> no good way to visually differentiate this last row in the table (i.e. 
> make text bold and change background color), or add separate text fields 
> below the table area, but then these won't resize if a user resizes column 
> widths..
>
> Does anyone have a better idea?
>
> -taavi