TableColumn and Table Fonts [message #988909] |
Mon, 03 December 2012 11:32  |
Eclipse User |
|
|
|
I see that the .SetFont method is not available/implemented for TableColumn objects.
This is the same in SWT as RWT/RAP.
Ok, but in SWT, if I use .SetFont on the Table itself, that font is also used for the TableColumn headers. I would like to duplicate this behaviour in RWT/RAP, but presently the TableColumn header appears to be using the default theme font rather than honouring, or inheriting the Table's font.
Is this deliberate behaviour, or should the TableColumn inherit the Table's font?
As it is a difference between SWT vs RWT/RAP, it is not desirable, as I want to single-source my application for both targets.
I don't particularly want to resort to CSS theme in this instance, although I see that this is a possible solution - my application is structured such that programmatic setting of Table (and thus TableColumn) fonts is a requirement.
Is it a bug, deliberate, or just a planned difference?
Any ideas appreciated!
John
|
|
|
Re: TableColumn and Table Fonts [message #989226 is a reply to message #988909] |
Wed, 05 December 2012 04:52   |
Eclipse User |
|
|
|
Hi.
Differences between SWT and RWT are rarely deliberate. Could you please
open an entry on the RAP Bugzilla for this? Thanks!
Also, what RAP version are you working on?
Greetings,
Tim
Am 03.12.2012 17:32, schrieb John Gymer:
> I see that the .SetFont method is not available/implemented for
> TableColumn objects.
>
> This is the same in SWT as RWT/RAP.
>
> Ok, but in SWT, if I use .SetFont on the Table itself, that font is also
> used for the TableColumn headers. I would like to duplicate this
> behaviour in RWT/RAP, but presently the TableColumn header appears to be
> using the default theme font rather than honouring, or inheriting the
> Table's font.
>
> Is this deliberate behaviour, or should the TableColumn inherit the
> Table's font?
>
> As it is a difference between SWT vs RWT/RAP, it is not desirable, as I
> want to single-source my application for both targets.
>
> I don't particularly want to resort to CSS theme in this instance,
> although I see that this is a possible solution - my application is
> structured such that programmatic setting of Table (and thus
> TableColumn) fonts is a requirement.
>
> Is it a bug, deliberate, or just a planned difference?
> Any ideas appreciated!
> John
>
>
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
|
|
Re: TableColumn and Table Fonts [message #989535 is a reply to message #989252] |
Thu, 06 December 2012 11:28  |
Eclipse User |
|
|
|
On 12/05/2012 12:02 PM, John Gymer wrote:
> Actually, quite amendment to Point 1... it seems that .setHeight()
> method works ok in SWT and RWT. It is only .height property that doesn't
> work. That's fine - I'll just use .setHeight() for everything!
You should not use the height property in SWT as well. The JavaDoc
clearly states: "<b>IMPORTANT:</b> This field is <em>not</em> part of
the SWT public API ..."
Regards, Ralf
--
Ralf Sternberg
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.03401 seconds