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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

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