how set Button FontAwesome Icon with string in vaadin -


i want save button icon in db, i'd have like:

button button = new button(); string icon = "fontawesome.cogs"; button.seticon(icon); 

or

button button = new button(); string icon = "fonticon://fontawesome/f013"; button.seticon(new themeresource(icon)); 

what's right way achieve this?

store name of icon in db , load name:

seticon(fontawesome.valueof("cogs")) 

this can fail classnotfoundexception.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -