import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
+import com.vaadin.ui.Label;
import com.vaadin.ui.Window;
public class ReplacingComponentsInHandleParameters extends TestBase {
event.getButton().setCaption("Clicked!");
}
};
-
final Window main = new Window() {
@Override
public void handleParameters(Map<String, String[]> parameters) {
super.handleParameters(parameters);
removeAllComponents();
- Button btn = new Button("Testing 2", clickListener);
+ addComponent(new Label(
+ "Reload window (without ?restartApplication), then click the button twice."));
+
+ Button btn = new Button("Click me", clickListener);
btn.setDebugId("TestId");
addComponent(btn);
}
};
-
- Button btn = new Button("Testing", clickListener);
- btn.setDebugId("TestId");
- main.addComponent(btn);
-
setMainWindow(main);
}
}