19 package org.turro.contacts.name;
21 import org.turro.contacts.Contact;
22 import org.turro.string.Strings;
23 import org.zkoss.zk.ui.Executions;
24 import org.zkoss.zk.ui.Page;
25 import org.zkoss.zk.ui.event.Event;
26 import org.zkoss.zk.ui.event.Events;
27 import org.zkoss.zk.ui.select.Selectors;
28 import org.zkoss.zk.ui.select.annotation.Listen;
29 import org.zkoss.zk.ui.select.annotation.Wire;
30 import org.zkoss.zul.Div;
31 import org.zkoss.zul.Textbox;
39 @Wire
private Textbox full;
40 @Wire
private Textbox informal;
41 @Wire
private Textbox formal;
45 @Listen(
"onChange = #full")
48 entity.
setName(full.getValue());
49 Events.postEvent(
new Event(Events.ON_CHANGE,
this));
52 @Listen(
"onChange = #informal")
55 Events.postEvent(
new Event(Events.ON_CHANGE,
this));
58 @Listen(
"onChange = #formal")
61 Events.postEvent(
new Event(Events.ON_CHANGE,
this));
64 @Listen(
"onClick = #guess")
72 Events.postEvent(
new Event(Events.ON_CHANGE,
this));
89 super.onPageAttached(newpage, oldpage);
90 Executions.createComponents(
"/WEB-INF/_zul/bs/comps/contact/complexNameControl.zul",
this,
null);
91 Selectors.wireComponents(
this,
this,
false);
92 Selectors.wireEventListeners(
this,
this);
void setInformal(String informal)
void guessFrom(String name, boolean entity)
void setFull(String full)
void setFormal(String formal)