controller(new SliderAndScrollbarDialogController());
control(new ControlBuilder(DialogPanelControlDefinition.NAME) {{
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Alpha:"));
control(new SliderBuilder("sliderA", false) {{
width("*");
}});
}});
panel(builders.vspacer());
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Color:"));
height("35%");
panel(new PanelBuilder() {{
childLayoutVertical();
width("23px");
control(new SliderBuilder("sliderR", true));
control(new LabelBuilder() {{
alignCenter();
text("R");
width("100%");
}});
}});
panel(builders.hspacer("5px"));
panel(new PanelBuilder() {{
childLayoutVertical();
control(new SliderBuilder("sliderG", true));
width("23px");
control(new LabelBuilder() {{
alignCenter();
text("G");
width("100%");
}});
}});
panel(builders.hspacer("5px"));
panel(new PanelBuilder() {{
childLayoutVertical();
control(new SliderBuilder("sliderB", true));
width("23px");
control(new LabelBuilder() {{
alignCenter();
text("B");
width("100%");