At run time, is it possible to retrieve style detail such as font size of a widget? For instance if I've the setup as below:
css class is:
.labelfont {
font-size: 12px;
}
Resource class is:
public interface XyzCss extends CssResource {
String labelfont();
}
Code snippet in the container class is:
public class container() extends Composite{
static XyzCss css;
static {
//inject style here
}
//constructor
public container() {
Label widget = new Label("testlabel");
widget.addStyleName(css.labelfont());
//initialize ui binder
.........
}
//method
public void getFontsize() {
...what is the code snippet here that would fetch me the font size from style labelfont()?
}
}