|
Re: Style setting mechanism [message #760089 is a reply to message #759845] |
Thu, 01 December 2011 09:44 |
|
Hi,
> I have custom components in my application that have a control elements
> such as SWT Button, SWT CheckBox etc. When I specify styles for 'Button'
> element in the css, the style is not picked up by the Button control in
> the custom component. Its being picked up by independent buttons though.
I do not see why the states are not applied to widgets in your custom
components. Could you provide a code snippet to demonstrate this?
> So for setting the styles for the controls in the custom components, I
> made changes in the code. I'm not very happy with this method though.
What kind of changes did you make?
> Here the second issue arises. Programmatically I can only set very few
> style elements for the control. Not all style properties supported in
> css are available if I want to do it programmatically.
Feel free to open an enhancement request for missing styling API.
> I would like to know how exactly the style is set to the components.
> Which I think would explain why all the style support is not available
> programmatically.
Styles are read from your CSS files, pre-processed and transferred to
the client, where they are applied to the widgets on state changes. What
exactly is the missing piece?
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.03266 seconds