18 package org.turro.publication.zul.ctrl;
20 import org.turro.publication.entity.PublicationCategory;
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.zk.ui.ext.AfterCompose;
25 import org.zkoss.zul.Listbox;
26 import org.zkoss.zul.Listitem;
37 this.category = category;
41 private void updateItems() {
42 getChildren().clear();
43 boolean firstSel = category ==
null;
45 Listitem li =
new Listitem(pc.getName(), pc);
50 }
else if(category !=
null) {
51 li.setSelected(pc.getId().equals(category.
getId()));
static List< PublicationCategory > getPublicationCategories()
void setCategory(PublicationCategory category)