protected void findMoreValues(RefField field, Object value) { Event event = new Event(CteEvents.ON_SELECT_REF, field, field.getValue()); org.zkoss.zk.ui.event.EventListener mainCtrl = ViewContext.getMainCtrl(); try { mainCtrl.onEvent(event); } catch (Exception e) { throw new UiException(e); } // System.out.println("MORE"); }
public boolean unsubscribe(EventListener<T> listener) { if (listener != null) for (Iterator<ListenerInfo<T>> it = _listenerInfos.iterator(); it.hasNext(); ) { final ListenerInfo<T> inf = it.next(); if (listener.equals(inf.listener)) { it.remove(); if (inf.async && --_nAsync == 0 && _serverPushEnabled) // B65-ZK-1840 added enabler argument for reference counting ((DesktopCtrl) Executions.getCurrent().getDesktop()).enableServerPush(false, this); return true; } } return false; }
public boolean isSubscribed(EventListener<T> listener) { if (listener != null) for (ListenerInfo<T> li : _listenerInfos) if (listener.equals(li.listener)) return true; return false; }