|
static void | getInput (Page page, String title, String label, Object value, String format, int scale, final Command onOk) |
|
static void | getInput (Page page, String title, String label, Object value, String format, int scale, final Command onOk, final Command onClose) |
|
static void | getInput (Page page, String title, InputField[] fields, final Command onOk) |
|
static void | getInput (Page page, String title, InputField[] fields, final Command onOk, final Command onClose) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file InputDialog.java.
◆ InputDialog()
org.turro.zkoss.dialog.InputDialog.InputDialog |
( |
String |
title, |
|
|
InputField[] |
fields, |
|
|
Set< DialogButton > |
buttons |
|
) |
| |
Definition at line 44 of file InputDialog.java.
45 super(title,
"normal",
false);
47 this.buttons = buttons;
50 Panelchildren pc =
new Panelchildren();
51 pc.setStyle(
"padding: 5px;");
52 panel.appendChild(pc);
53 container =
new Vbox();
54 container.setSclass(
"inputDialogContainer");
55 pc.appendChild(container);
57 container.appendChild(
new Separator());
◆ getFields()
InputField [] org.turro.zkoss.dialog.InputDialog.getFields |
( |
| ) |
|
◆ getInput() [1/4]
static void org.turro.zkoss.dialog.InputDialog.getInput |
( |
Page |
page, |
|
|
String |
title, |
|
|
InputField[] |
fields, |
|
|
final Command |
onOk |
|
) |
| |
|
static |
◆ getInput() [2/4]
static void org.turro.zkoss.dialog.InputDialog.getInput |
( |
Page |
page, |
|
|
String |
title, |
|
|
InputField[] |
fields, |
|
|
final Command |
onOk, |
|
|
final Command |
onClose |
|
) |
| |
|
static |
Definition at line 143 of file InputDialog.java.
147 Modal.doModal(
id,
new Command() {
149 public Object execute(Context context) {
150 if(onClose !=
null) onClose.execute(context);
153 if(onOk !=
null) onOk.execute(context);
◆ getInput() [3/4]
static void org.turro.zkoss.dialog.InputDialog.getInput |
( |
Page |
page, |
|
|
String |
title, |
|
|
String |
label, |
|
|
Object |
value, |
|
|
String |
format, |
|
|
int |
scale, |
|
|
final Command |
onOk |
|
) |
| |
|
static |
◆ getInput() [4/4]
static void org.turro.zkoss.dialog.InputDialog.getInput |
( |
Page |
page, |
|
|
String |
title, |
|
|
String |
label, |
|
|
Object |
value, |
|
|
String |
format, |
|
|
int |
scale, |
|
|
final Command |
onOk, |
|
|
final Command |
onClose |
|
) |
| |
|
static |
Definition at line 110 of file InputDialog.java.
113 InputField field =
new InputField(label, value, format, scale);
114 final InputDialog id =
new InputDialog(title,
new InputField[] { field }, DialogButton.getOkCancelButtons());
116 Modal.doModal(
id,
new Command() {
118 public Object execute(Context context) {
119 if(onClose !=
null) onClose.execute(context);
121 context.put(
"value",
id.
getFields()[0].getValue());
122 if(onOk !=
null) onOk.execute(context);
◆ getPressedButton()
DialogButton org.turro.zkoss.dialog.InputDialog.getPressedButton |
( |
| ) |
|
The documentation for this class was generated from the following file: