19 package org.turro.erp.time;
21 import org.turro.elephant.context.Application;
22 import org.turro.util.CompareUtil;
23 import org.zkoss.lang.Strings;
24 import org.turro.elephant.zkoss.ElLabel;
25 import org.zkoss.zk.ui.event.Event;
26 import org.zkoss.zk.ui.event.EventListener;
27 import org.zkoss.zk.ui.event.Events;
28 import org.zkoss.zk.ui.ext.AfterCompose;
29 import org.zkoss.zul.Button;
30 import org.zkoss.zul.Grid;
31 import org.zkoss.zul.Label;
32 import org.zkoss.zul.Row;
33 import org.zkoss.zul.Rows;
44 if(CompareUtil.compare(
startsWith,
this.startsWith) == 0) {
45 this.startsWith =
null;
54 Rows rows = getRows();
56 rows.getChildren().clear();
66 if(!Strings.isBlank(
startsWith) && !hr.getName().toLowerCase().startsWith(
startsWith.toLowerCase())) {
69 final Row row =
new Row();
71 rows.appendChild(row);
75 row.setSclass(
"not-in");
77 row.appendChild(
new Label(hr.getName()));
80 select.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
82 public void onEvent(Event event) throws Exception {
83 Events.postEvent(new Event(Events.ON_CHANGE, XMLHumanResourceSelector.this, row.getValue()));
86 row.appendChild(select);
IConstructor getConstructor()
static Application getApplication()
static String getString(String key)
void setStartsWith(String startsWith)
List< XMLTimeControl > getPendingControl()
void setHumanResource(XMLHumanResource humanResource)