- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 51 of file DialogField.java.
◆ choices()
DialogField org.turro.zkoss.dialog.DialogField.choices |
( |
Enum[] |
choices | ) |
|
◆ createEditor()
HtmlBasedComponent org.turro.zkoss.dialog.DialogField.createEditor |
( |
| ) |
|
|
protected |
Definition at line 135 of file DialogField.java.
136 if(onEditor !=
null) {
137 return onEditor.get();
138 }
else if(value instanceof Boolean) {
139 Checkbox cb =
new Checkbox();
140 cb.setChecked((Boolean) value);
141 cb.setLabel(I_.get(label));
144 }
else if(value instanceof Number) {
145 ExpressionInput ei =
new ExpressionInput();
148 }
else if(value instanceof Date) {
149 Datebox db =
new Datebox((Date) value);
150 db.setFormat(format);
152 }
else if(value instanceof Enum) {
153 InputEnum ie =
new InputEnum(choices);
154 ie.setObjectValue((Enum) value);
157 }
else if(value instanceof File) {
158 FileListbox fl =
new FileListbox();
159 fl.setMold(
"select");
160 fl.setFilter(format);
161 fl.setDir((File) value);
162 fl.setSelectFirst(
true);
165 Textbox tb =
new Textbox((String) value);
169 tb.setMaxlength(maxLength);
◆ field() [1/2]
static DialogField org.turro.zkoss.dialog.DialogField.field |
( |
String |
label | ) |
|
|
static |
◆ field() [2/2]
static DialogField org.turro.zkoss.dialog.DialogField.field |
( |
String |
label, |
|
|
Object |
value |
|
) |
| |
|
static |
◆ format()
DialogField org.turro.zkoss.dialog.DialogField.format |
( |
String |
format | ) |
|
◆ getEditor()
HtmlBasedComponent org.turro.zkoss.dialog.DialogField.getEditor |
( |
| ) |
|
◆ getEditorValue()
Object org.turro.zkoss.dialog.DialogField.getEditorValue |
( |
| ) |
|
|
protected |
Definition at line 175 of file DialogField.java.
176 if(
editor instanceof Checkbox) {
177 return Boolean.valueOf(((Checkbox)
editor).isChecked());
178 }
else if(
editor instanceof Decimalbox) {
179 return StringParser.convertToClass(value.getClass(), ((Decimalbox)
editor).getValue());
180 }
else if(
editor instanceof ExpressionInput) {
181 return StringParser.convertToClass(value.getClass(), ((ExpressionInput)
editor).getNumber(scale));
182 }
else if(
editor instanceof Datebox) {
183 return ((Datebox)
editor).getValue();
184 }
else if(
editor instanceof GenericListbox) {
185 return ((GenericListbox)
editor).getObjectValue();
186 }
else if(
editor instanceof GenericCombobox) {
187 return ((GenericCombobox)
editor).getObjectValue();
188 }
else if(
editor instanceof GenericBandbox) {
189 return ((GenericBandbox)
editor).getObjectValue();
190 }
else if(
editor instanceof Listbox) {
191 return ((Listbox)
editor).getSelectedItem().getValue();
192 }
else if(
editor instanceof InputEnum) {
193 return ((InputEnum)
editor).getObjectValue();
195 return ((Textbox)
editor).getText();
◆ getLabel()
String org.turro.zkoss.dialog.DialogField.getLabel |
( |
| ) |
|
◆ getValue()
Object org.turro.zkoss.dialog.DialogField.getValue |
( |
| ) |
|
◆ help()
DialogField org.turro.zkoss.dialog.DialogField.help |
( |
String |
help | ) |
|
◆ initField()
DialogField org.turro.zkoss.dialog.DialogField.initField |
( |
| ) |
|
Definition at line 105 of file DialogField.java.
107 if(Strings.isBlank(label)) {
108 appendChild(
new Space());
HtmlBasedComponent createEditor()
void initiateEditor(HtmlBasedComponent editor)
HtmlBasedComponent labelComponent()
◆ initiateEditor()
void org.turro.zkoss.dialog.DialogField.initiateEditor |
( |
HtmlBasedComponent |
editor | ) |
|
|
protected |
Definition at line 199 of file DialogField.java.
201 if(
editor instanceof Checkbox) {
203 }
else if(
editor instanceof InputEnum) {
204 }
else if(
editor instanceof Combobox) {
205 }
else if(
editor instanceof DateboxShort) {
207 editor.setStyle(
"padding:0px;margin:0px;");
◆ label()
static DialogField org.turro.zkoss.dialog.DialogField.label |
( |
String |
label | ) |
|
|
static |
◆ labelComponent()
HtmlBasedComponent org.turro.zkoss.dialog.DialogField.labelComponent |
( |
| ) |
|
|
protected |
Definition at line 211 of file DialogField.java.
212 Label l = Labels.text(I_.get(label)).style(
"font-size:1.1em").get();
213 if(!Strings.isBlank(help)) {
214 Hlayout hbox =
new Hlayout();
215 hbox.setSclass(
"z-valign-middle");
216 hbox.setValign(
"middle");
219 b.setIconSclass(
"z-icon-question");
220 b.setTarget(
"_blank");
◆ lines()
DialogField org.turro.zkoss.dialog.DialogField.lines |
( |
int |
lines | ) |
|
◆ maxLength()
DialogField org.turro.zkoss.dialog.DialogField.maxLength |
( |
int |
maxLength | ) |
|
◆ onEditor()
DialogField org.turro.zkoss.dialog.DialogField.onEditor |
( |
Supplier< HtmlBasedComponent > |
onEditor | ) |
|
◆ onlyLabel()
DialogField org.turro.zkoss.dialog.DialogField.onlyLabel |
( |
| ) |
|
◆ scale()
DialogField org.turro.zkoss.dialog.DialogField.scale |
( |
int |
scale | ) |
|
◆ space()
static DialogField org.turro.zkoss.dialog.DialogField.space |
( |
| ) |
|
|
static |
◆ editor
HtmlBasedComponent org.turro.zkoss.dialog.DialogField.editor |
|
protected |
◆ labelOnEditor
boolean org.turro.zkoss.dialog.DialogField.labelOnEditor = false |
|
protected |
The documentation for this class was generated from the following file: