Home » Eclipse Projects » Remote Application Platform (RAP) » TableItem Fontsize and weight
|
Re: TableItem Fontsize and weight [message #698426 is a reply to message #698397] |
Tue, 19 July 2011 12:36 |
Ivan Furnadjiev 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 #715289 is a reply to message #698426] |
Sat, 13 August 2011 05:13 |
|
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 |
Ivan Furnadjiev 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
>
|
|
|
Goto Forum:
Current Time: Fri Apr 26 19:13:29 GMT 2024
Powered by FUDForum. Page generated in 0.03198 seconds
|