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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -