setCloseTooltip(uiText.BackToDefault());
// construct
visibility = new ListBox();
StyledLabel show = new StyledLabel("label", uiText.With());
final Roster roster = OswServiceFactory.getService().getRoster();
roster.registerEventHandler(new Observer<RosterEvent>() {
@Override
public void handleEvent(RosterEvent event) {
updateVisibility(visibility, roster.getGroups());
}
});
updateVisibility(visibility, roster.getGroups());
visibility.setVisibleItemCount(1);
layout.add(label);
layout.add(visibility);
add(layout);
add(fix);