CheckBox checkBox = new CheckBox("Show controls",
new MethodProperty<Boolean>(audio, "showControls"));
+ checkBox.setImmediate(true);
addComponent(checkBox);
checkBox = new CheckBox("HtmlContentAllowed",
new MethodProperty<Boolean>(audio, "htmlContentAllowed"));
+ checkBox.setImmediate(true);
addComponent(checkBox);
checkBox = new CheckBox("muted", new MethodProperty<Boolean>(audio,
"muted"));
+ checkBox.setImmediate(true);
addComponent(checkBox);
checkBox = new CheckBox("autoplay", new MethodProperty<Boolean>(audio,
"autoplay"));
+ checkBox.setImmediate(true);
addComponent(checkBox);
Button b = new Button("Change", new Button.ClickListener() {
controls.addComponent(new Label("width"));
controls.addComponent(new TextField(new MethodProperty<Float>(
testedLayout, "width")));
- controls.addComponent(new CheckBox("%",
- new MethodProperty<Boolean>(this, "widthPercents")));
+ CheckBox widthPercentsCheckBox = new CheckBox("%",
+ new MethodProperty<Boolean>(this, "widthPercents"));
+ widthPercentsCheckBox.setImmediate(true);
+ controls.addComponent(widthPercentsCheckBox);
controls.addComponent(new Label("height"));
controls.addComponent(new TextField(new MethodProperty<Float>(
testedLayout, "height")));
- controls.addComponent(new CheckBox("%",
- new MethodProperty<Boolean>(this, "heightPercents")));
+ CheckBox heightPercentsCheckBox = new CheckBox("%",
+ new MethodProperty<Boolean>(this, "heightPercents"));
+ heightPercentsCheckBox.setImmediate(true);
+ controls.addComponent(heightPercentsCheckBox);
controls.addComponent(marginLeft);
controls.addComponent(marginRight);
controls.addComponent(marginTop);