18 package org.turro.publication.zul.ctrl;
20 import org.turro.publication.entity.PublicationGroup;
21 import org.turro.publication.util.PublicationCategories;
22 import org.zkoss.zk.ui.event.Event;
23 import org.zkoss.zk.ui.event.Events;
24 import org.zkoss.zul.Listbox;
25 import org.zkoss.zul.Listitem;
40 private void updateItems() {
41 getChildren().clear();
42 boolean firstSel = group ==
null;
44 Listitem li =
new Listitem(pg.getName(), pg);
48 Events.postEvent(
new Event(Events.ON_SELECT,
GroupListbox.this));
49 }
else if(group !=
null) {
50 li.setSelected(pg.getId().equals(group.
getId()));
static List< PublicationGroup > getPublicationGroups()
void setGroup(PublicationGroup group)