import com.vaadin.ui.Component;\r
import com.vaadin.ui.Label;\r
import com.vaadin.ui.Layout;\r
-import com.vaadin.ui.SplitPanel;\r
import com.vaadin.ui.VerticalLayout;\r
import com.vaadin.ui.Window;\r
\r
public final void init() {\r
window = new Window(getClass().getName());\r
setMainWindow(window);\r
- window.getLayout().setSizeFull();\r
+ window.getContent().setSizeFull();\r
\r
Label label = new Label(getDescription(), Label.CONTENT_XHTML);\r
label.setWidth("100%");\r
- window.getLayout().addComponent(label);\r
+ window.getContent().addComponent(label);\r
\r
layout = new VerticalLayout();\r
- window.getLayout().addComponent(layout);\r
- ((VerticalLayout) window.getLayout()).setExpandRatio(layout, 1);\r
+ window.getContent().addComponent(layout);\r
+ ((VerticalLayout) window.getContent()).setExpandRatio(layout, 1);\r
\r
setup();\r
}\r
\r
private Window window;\r
- private SplitPanel splitPanel;\r
private Layout layout;\r
\r
public TestBase() {\r