You could also potentially just override render() and call
getStyles().put("horizontalAlignment", HorizontalAlignment.CENTER) after the
call to super.render().
On Aug 4, 2010, at 5:43 PM, Olivier Dutrieux wrote:
> oups : cancel and replace my previous post I make a mistake on my class ^^ :
>
> To use :
> <columnHeader>
> <TableViewHeader tableView="$tableViewDetails">
> <dataRenderer>
> <content:TableViewHeaderDataRenderer overwriteHorizontalAlignment="center"
> xmlns:content="organization.company.wtk.content"/>
> </dataRenderer>
> </TableViewHeader>
> </columnHeader>
>
>
> Le 04/08/2010 23:19, Olivier Dutrieux a écrit :
>> I do that to extended
>> org.apache.pivot.wtk.content.TableViewHeaderDataRenderer : see attach file
>>
>> Le 04/08/2010 22:53, Duto a écrit :
>>> I found this process too^^ :
>>>
>>> src : TableViewHeaderDataRenderer
>>>
>>> 76: // Left-align the content
>>> 77: getStyles().put("horizontalAlignment", (text == null) ?
>>> 78: HorizontalAlignment.CENTER : HorizontalAlignment.LEFT);
>>>
>>> Why It's do like that ? It's a bug or ... ?
>>>
>>> Best regards
>>>
>>> Duto
>>
>
> --
> Olivier Dutrieux
> Études et Projets Informatiques (Tél : 31 62)
> <TableViewHeaderDataRenderer.java>