Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TableItem Fontsize and weight
TableItem Fontsize and weight [message #698397] Tue, 19 July 2011 12:22 Go to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hello everybody,

how can i change the size and weight of the font used in a swt tableitem? Actually i need to change them only for special table items, not everyone. I know the indexes of the items. I Tried defining
TableItem.tableItemBig {
background-color: transparent;
color: #666666;
font: bold 14px;
}
in our css file, and then setting it to the
item.setData(WidgetUtil.CUSTOM_VARIANT, "tableItemBig");
But no effect


Greetings Edin
Re: TableItem Fontsize and weight [message #698426 is a reply to message #698397] Tue, 19 July 2011 12:36 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Edin,
currently, the CSS TableItem element does not support "font" property.
Please file an enhancement request if you need it. Meanwhile, you could
set the font of the particular item by TableItem#setFont( font ).
HTH,
Ivan

On 7/19/2011 3:22 PM, forums-noreply@eclipse.org wrote:
> Hello everybody,
>
> how can i change the size and weight of the font used in a swt
> tableitem? Actually i need to change them only for special table
> items, not everyone. I know the indexes of the items. I Tried defining
> TableItem.tableItemBig {
> background-color: transparent;
> color: #666666;
> font: bold 14px;
> }
> in our css file, and then setting it to the
> item.setData(WidgetUtil.CUSTOM_VARIANT, "tableItemBig");
> But no effect
>
>
> Greetings Edin
Re: TableItem Fontsize and weight [message #698494 is a reply to message #698426] Tue, 19 July 2011 15:00 Go to previous messageGo to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hi Ivan,
setFont Method is exactly what i needed, thnx
Re: TableItem Fontsize and weight [message #715289 is a reply to message #698426] Sat, 13 August 2011 05:13 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi Ivan,

Beside TableItem#setFont, is possible to change the font by overriding
ColumnLabelProvider#getFont ? I've tried this, but it's not working.

Thanks & Regards,

Setya

> Hi Edin,
> currently, the CSS TableItem element does not support "font" property.
> Please file an enhancement request if you need it. Meanwhile, you could
> set the font of the particular item by TableItem#setFont( font ).
> HTH,
> Ivan
>
> On 7/19/2011 3:22 PM, forums-noreply@eclipse.org wrote:
>> Hello everybody,
>>
>> how can i change the size and weight of the font used in a swt
>> tableitem? Actually i need to change them only for special table
>> items, not everyone. I know the indexes of the items. I Tried defining
>> TableItem.tableItemBig {
>> background-color: transparent;
>> color: #666666;
>> font: bold 14px;
>> }
>> in our css file, and then setting it to the
>> item.setData(WidgetUtil.CUSTOM_VARIANT, "tableItemBig");
>> But no effect
>>
>>
>> Greetings Edin
Re: TableItem Fontsize and weight [message #715309 is a reply to message #715289] Sat, 13 August 2011 08:23 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Setya,
sure... just checked it and it works as expected. Make sure that
ColumnLabelProvider#update method is called. If it's not working for you
please post your ColumnLabelProvider.
HTH,
Ivan

On 8/13/2011 8:13 AM, Setya wrote:
> Hi Ivan,
>
> Beside TableItem#setFont, is possible to change the font by overriding
> ColumnLabelProvider#getFont ? I've tried this, but it's not working.
>
> Thanks & Regards,
>
> Setya
>
>> Hi Edin,
>> currently, the CSS TableItem element does not support "font" property.
>> Please file an enhancement request if you need it. Meanwhile, you could
>> set the font of the particular item by TableItem#setFont( font ).
>> HTH,
>> Ivan
>>
>> On 7/19/2011 3:22 PM, forums-noreply@eclipse.org wrote:
>>> Hello everybody,
>>>
>>> how can i change the size and weight of the font used in a swt
>>> tableitem? Actually i need to change them only for special table
>>> items, not everyone. I know the indexes of the items. I Tried defining
>>> TableItem.tableItemBig {
>>> background-color: transparent;
>>> color: #666666;
>>> font: bold 14px;
>>> }
>>> in our css file, and then setting it to the
>>> item.setData(WidgetUtil.CUSTOM_VARIANT, "tableItemBig");
>>> But no effect
>>>
>>>
>>> Greetings Edin
>
Previous Topic:Section change
Next Topic:[GEF] Thumbnail + direct edit issues
Goto Forum:
  


Current Time: Fri Apr 26 19:13:29 GMT 2024

Powered by FUDForum. Page generated in 0.03198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top