- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file InputField.java.
◆ InputField() [1/3]
org.turro.zkoss.dialog.InputField.InputField |
( |
String |
label, |
|
|
Object |
value, |
|
|
String |
format, |
|
|
int |
scale |
|
) |
| |
Definition at line 42 of file InputField.java.
52 appendChild(
new Label(
I_.
get(label)));
static String get(String msg)
◆ InputField() [2/3]
org.turro.zkoss.dialog.InputField.InputField |
( |
String |
label, |
|
|
Object |
value, |
|
|
Enum[] |
choices |
|
) |
| |
Definition at line 57 of file InputField.java.
62 this.choices = choices;
67 appendChild(
new Label(
I_.
get(label)));
◆ InputField() [3/3]
org.turro.zkoss.dialog.InputField.InputField |
( |
String |
label, |
|
|
HtmlBasedComponent |
editor, |
|
|
Object |
value |
|
) |
| |
◆ createEditor()
HtmlBasedComponent org.turro.zkoss.dialog.InputField.createEditor |
( |
| ) |
|
|
protected |
Definition at line 98 of file InputField.java.
99 if(value instanceof Boolean) {
100 Checkbox cb =
new Checkbox();
101 cb.setChecked((Boolean) value);
102 cb.setLabel(
I_.
get(label));
105 }
else if(value instanceof Number) {
109 }
else if(value instanceof Date) {
110 Datebox db =
new Datebox((Date) value);
111 db.setFormat(format);
113 }
else if(value instanceof Enum) {
114 InputEnum ie =
new InputEnum(choices);
115 ie.setObjectValue((Enum) value);
118 }
else if(value instanceof File) {
120 fl.setMold(
"select");
123 fl.setSelectFirst(
true);
126 Textbox tb =
new Textbox((String) value);
◆ getByLabel()
static InputField org.turro.zkoss.dialog.InputField.getByLabel |
( |
String |
label, |
|
|
InputField[] |
fields |
|
) |
| |
|
static |
◆ getEditor()
HtmlBasedComponent org.turro.zkoss.dialog.InputField.getEditor |
( |
| ) |
|
◆ getEditorValue()
Object org.turro.zkoss.dialog.InputField.getEditorValue |
( |
| ) |
|
|
protected |
Definition at line 135 of file InputField.java.
136 if(
editor instanceof Checkbox) {
137 return Boolean.valueOf(((Checkbox)
editor).isChecked());
138 }
else if(
editor instanceof Decimalbox) {
139 return StringParser.convertToClass(value.getClass(), ((Decimalbox)
editor).getValue());
142 }
else if(
editor instanceof Datebox) {
143 return ((Datebox)
editor).getValue();
150 }
else if(
editor instanceof Listbox) {
151 return ((Listbox)
editor).getSelectedItem().getValue();
152 }
else if(
editor instanceof InputEnum) {
153 return ((InputEnum)
editor).getObjectValue();
155 return ((Textbox)
editor).getText();
◆ getLabel()
String org.turro.zkoss.dialog.InputField.getLabel |
( |
| ) |
|
◆ getValue()
Object org.turro.zkoss.dialog.InputField.getValue |
( |
| ) |
|
◆ initiateEditor()
void org.turro.zkoss.dialog.InputField.initiateEditor |
( |
HtmlBasedComponent |
editor | ) |
|
|
protected |
Definition at line 159 of file InputField.java.
161 if(
editor instanceof Checkbox) {
163 }
else if(
editor instanceof InputEnum) {
164 }
else if(
editor instanceof Combobox) {
167 editor.setStyle(
"padding:0px;margin:0px;");
◆ editor
HtmlBasedComponent org.turro.zkoss.dialog.InputField.editor |
|
protected |
◆ labelOnEditor
boolean org.turro.zkoss.dialog.InputField.labelOnEditor = false |
|
protected |
The documentation for this class was generated from the following file: