how do i inject css into gwt without actually having to use into the gwt.xml file ?
i have a module in another package and css in another package
now i need to include those css to Widgets. how do i do that ?
i dont want to define those css styles in main style sheet which is in war directory
say i have a widget someWidget and style “.someWidget:HOVER{}”
how do i apply that css,
its easier to just apply css to the widget using addStyleName or so ,
but without using public how to inject CSS to the HTML ?
i have a package com.someWidget which has widgets , and have package com.Styles.css which has all the styles. and i have a client bundle for those css in to com.Style
If you have an interface
Stylesthat extendsCssResourcethen injecting the styles into the page is simple: