|
As explained in Section 11.1, “Special Characteristics of AJAX Applications”, an AJAX web application usually runs in a single "web page" in a browser window. The page is generally not reloaded after it is opened initially, but it communicates user interaction with the server through AJAX communications. A window in an AJAX application is therefore more like a window in a desktop application and less like a web page. A import com.vaadin.ui.*;
public class HelloWorld extends com.vaadin.Application {
public void init() {
Window main = new Window("The Main Window");
setMainWindow(main);
... fill the main window with components ...
}
}
You can add components to the main window, or to any other window, with the
Vaadin has two basic kinds of windows: application-level windows, such as the main window, and child windows (or sub-windows) inside the application-level windows. The child windows are explained in the next section, while application-level windows are covered in Section 11.2, “Application-Level Windows”. |
Table of Contents
|