19 package org.turro.contacts.zul.organigram;
21 import org.turro.contacts.organigram.TargetItem;
22 import org.turro.elephant.util.Images;
23 import org.turro.i18n.I_;
24 import org.zkoss.zk.ui.event.Event;
25 import org.zkoss.zk.ui.event.EventListener;
26 import org.zkoss.zk.ui.event.Events;
27 import org.zkoss.zk.ui.ext.AfterCompose;
28 import org.zkoss.zul.A;
29 import org.zkoss.zul.Hlayout;
30 import org.zkoss.zul.Image;
31 import org.zkoss.zul.Label;
42 this.targetItem = targetItem;
43 setSclass(
"z-valign-middle");
53 Hlayout hbox =
new Hlayout();
57 hbox.appendChild(del);
58 del.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
60 public void onEvent(Event event) throws Exception {
61 getSelector().getTargetArray().remove(targetItem);
62 Events.postEvent(new Event(Events.ON_CHANGE, getSelector()));
63 TargetSelectorItem.this.detach();
68 nol.setMold(
"select");
70 nol.addEventListener(Events.ON_SELECT,
new EventListener<Event>() {
72 public void onEvent(Event event) throws Exception {
73 targetItem.setNextOperator(nol.getObjectValue());
74 Events.postEvent(new Event(Events.ON_CHANGE, getSelector()));
static String getImage(String image)
static String byKey(String key)