Form form;
Table table;
@Override
public void init() {
LegacyWindow main = new LegacyWindow();
setMainWindow(main);
main.addComponent(info);
HorizontalLayout l = new HorizontalLayout();
main.addComponent(l);
l.addComponent(new Button("Toggle root panel",
new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
toggle(root);
}
}));
l.addComponent(new Button("Toggle panel one",
new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
toggle(one);
}
}));
l.addComponent(new Button("Toggle panel two",
new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
toggle(two);
}
}));
l.addComponent(new Button("Toggle form", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
toggle(form);
}
}));
l.addComponent(new Button("Toggle table", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
toggle(table);
}
}));
GridLayout content = new GridLayout(2, 3);
root.setContent(content);
main.addComponent(root);
TextField tf = new TextField("Enabled");
tf.setImmediate(true);
content.addComponent(tf);
tf = new TextField("Disabled");