java - Vaadin - ListSelect - set focus on selected item? -
i'm using listselect component of vaadin (version 7.x) , highlight option i've set default selection using setvalue() method - similar happens onclick() event when background colour changes blue , text colour white.
does know how this?
listselect itemlist = new listselect("please select item:"); itemlist.add(initialitem) for(item item: items) { if(!item.equals(initialitem.getname())) { //add item } itemlist.setvalue(initialitem.getname()); //set focus on intial item make stand out other items
thanks
use
itemlist.select(initialitem)
Comments
Post a Comment