private void initList() { // clear and init the list uizonelistgroup.setVisible(true); uizonelist.setVisible(false); uizonelistgroup.removeAll(); for (ZoneType zonetype : ZoneType.values()) { UIListItem listitem = new UIListItem(zonetype.toString(), zonetype); listitem.setTextColor(Color.black); listitem.addClickListener(zonelistener); uizonelistgroup.addItem(listitem); } }