controller(new TextFieldDialogController());
control(new ControlBuilder(DialogPanelControlDefinition.NAME) {{
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Textfield:"));
control(new TextFieldBuilder("mainTextField") {{
width("*");
}});
}});
panel(builders.vspacer());
panel(builders.vspacer());
panel(builders.vspacer());
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Password Mode:"));
control(new ControlBuilder("passwordCharCheckBox", "checkbox") {{
set("checked", "false"); // start with uncheck
}});
panel(builders.hspacer("20px"));
control(builders.createShortLabel("Char:", "40px"));
panel(builders.hspacer("10px"));
control(new TextFieldBuilder("passwordCharTextField", "*") {{
maxLength(1);
width("20px");
}});
}});
panel(builders.vspacer());
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Enable Length:"));
control(new ControlBuilder("maxLengthEnableCheckBox", "checkbox") {{
set("checked", "false");
}});
panel(builders.hspacer("20px"));
control(builders.createShortLabel("Max:", "40px"));
panel(builders.hspacer("10px"));
control(new TextFieldBuilder("maxLengthTextField") {{
width("50px");
}});
}});
panel(builders.vspacer());
panel(new PanelBuilder() {{