final CheckBox checkBox = new CheckBox("Checkbox");
checkBox.setEnabled(false);
layout.addComponent(checkBox);
layout.addComponent(new Button("Toggle components enabled",
new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
combobox.setEnabled(!combobox.isEnabled());
textField.setEnabled(!textField.isEnabled());