19 package org.turro.queue.zul;
21 import org.turro.action.queue.NotificationCategory;
22 import org.turro.action.queue.Notifications;
23 import org.zkoss.zk.ui.event.Event;
24 import org.zkoss.zk.ui.event.Events;
25 import org.zkoss.zk.ui.ext.AfterCompose;
26 import org.zkoss.zul.Listbox;
27 import org.zkoss.zul.Listitem;
38 this.category = category;
43 Listitem item = getSelectedItem();
44 return item !=
null ? item.getValue() :
null;
47 private void updateItems() {
48 getChildren().clear();
49 boolean firstSel = category ==
null;
51 Listitem li =
new Listitem(pc.getCategory(), pc);
52 li.setTooltiptext(pc.getIdCategory());
57 }
else if(category !=
null) {
58 li.setSelected(pc.getIdCategory().equals(category.
getIdCategory()));
static Collection< NotificationCategory > getAllCategories()
void setCategory(NotificationCategory category)
NotificationCategory getCategory()