19 package org.turro.zul.fieldit;
21 import java.util.Date;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.turro.elephant.context.ElephantContext;
25 import org.turro.fieldit.AutoFillList;
26 import org.turro.fieldit.StringList;
27 import org.turro.i18n.I_;
28 import org.zkoss.zul.Listbox;
29 import org.zkoss.zul.Listitem;
38 appendItem(
I_.
get(
"String"), String.class.getName()).setSelected(
true);
39 appendItem(
I_.
get(
"Long integer"), Long.class.getName());
40 appendItem(
I_.
get(
"Double"), Double.class.getName());
41 appendItem(
I_.
get(
"Date"), Date.class.getName());
42 appendItem(
I_.
get(
"Boolean"), Boolean.class.getName());
48 if(javaClass !=
null) {
49 for(Listitem li : getItems()) {
50 if(((String) li.getValue()).equals(javaClass.getName())) {
58 if(getSelectedItem() !=
null) {
60 return Class.forName((String) getSelectedItem().getValue());
61 }
catch (ClassNotFoundException ex) {
static String logMsg(String msg)
static String get(String msg)
void setObjectValue(Class javaClass)