application .css contains all the general look and feel of the components
how the application.css styles can be incoporated into say Button\
Button loginButton = new Button("Login");
loginButton.setStyle("applicationButton");
I have seen the above code but, where we are importing the css … that i didnt find
Our requirement is, we are making an architeture above vaadin(With spring integreation)…So we create a new button named ApButton which extends Vaadin Button. So the ApButton will have an unique icon and caption can be form specific, also with red border
This is also in the case of TextFields and some basic components.
There is some other posts related to the vaadin button theming. See for instance
this one .
Css style files are commonly placed like this in the vaadin: WebContent/VAADIN/themes/yourtheme/yourstyles.css. There is whole chapter of this subject in
the book of vaadin
In vaadin is it possible to give one button font as italic and color red AND another button with font bold and color magenta. ie; 2 buttons with different style
One more think about button styling. It might be more easier to start button styling from the link styled button (BaseTheme.LINK_STYLE) than from the more graphical Reindeer styled button. One typically first set button style to link style and after that use addStyleName method to add one’s own style to top of link-styled button.
SetStyle is not changing the caption div element but seting style to the outer div element. im uising version vaadin 6.0, had downloaded vesion 6.2. (ie. if im giving as setStyle(“caption-red”); in generated html it is like class=“v-button-caption-red caption-red”> but this is applying to outer div elemnt.
Here you can clearly see that the caption has no change. Without change in caption style how this is going to change the button text color to red.
So from the existing implementation i think that we cannot change the text color of one button to red and another to say blue.But the entire style can be changed. It will be better if we can implement style(color, font size, etc) of our own to some components…