summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Window.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-20 10:34:36 +0200
committerArtur Signell <artur@vaadin.com>2012-11-20 10:41:57 +0200
commit512b541b3edb1dbc919dd1fa757965a766c603ad (patch)
treee8a3ea6eafb16631480daf7411f6ce11b4d12a18 /server/src/com/vaadin/ui/Window.java
parentbc96d13c542efbb056c10583e13d53613a1c123e (diff)
downloadvaadin-framework-512b541b3edb1dbc919dd1fa757965a766c603ad.tar.gz
vaadin-framework-512b541b3edb1dbc919dd1fa757965a766c603ad.zip
Updated Panel, Window to use Component in constructors (#10300)
* Updated javadoc to be consistent with how Panel and Window behave (#10289) Change-Id: I682d202e27b14d9695a8a6cd9eaff8a53fc6ae82
Diffstat (limited to 'server/src/com/vaadin/ui/Window.java')
-rw-r--r--server/src/com/vaadin/ui/Window.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/server/src/com/vaadin/ui/Window.java b/server/src/com/vaadin/ui/Window.java
index 3f6091aa90..338c77239a 100644
--- a/server/src/com/vaadin/ui/Window.java
+++ b/server/src/com/vaadin/ui/Window.java
@@ -42,10 +42,8 @@ import com.vaadin.shared.ui.window.WindowState;
* {@link UI}. A window is added to a {@code UI} using
* {@link UI#addWindow(Window)}. </p>
* <p>
- * The contents of a window is set using {@link #setContent(ComponentContainer)}
- * or by using the {@link #Window(String, ComponentContainer)} constructor. The
- * contents can in turn contain other components. By default, a
- * {@link VerticalLayout} is used as content.
+ * The contents of a window is set using {@link #setContent(Component)} or by
+ * using the {@link #Window(String, Component)} constructor.
* </p>
* <p>
* A window can be positioned on the screen using absolute coordinates (pixels)
@@ -75,14 +73,14 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier,
};
/**
- * Creates a new unnamed window with a default layout.
+ * Creates a new, empty sub window
*/
public Window() {
this("", null);
}
/**
- * Creates a new unnamed window with a default layout and given title.
+ * Creates a new, empty sub window with a given title.
*
* @param caption
* the title of the window.
@@ -92,14 +90,14 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier,
}
/**
- * Creates a new unnamed window with the given content and title.
+ * Creates a new, empty sub window with the given content and title.
*
* @param caption
* the title of the window.
* @param content
* the contents of the window
*/
- public Window(String caption, ComponentContainer content) {
+ public Window(String caption, Component content) {
super(caption, content);
registerRpc(rpc);
setSizeUndefined();