summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Panel.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/Panel.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/Panel.java')
-rw-r--r--server/src/com/vaadin/ui/Panel.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/server/src/com/vaadin/ui/Panel.java b/server/src/com/vaadin/ui/Panel.java
index b5cfe04407..472aefd5e0 100644
--- a/server/src/com/vaadin/ui/Panel.java
+++ b/server/src/com/vaadin/ui/Panel.java
@@ -56,20 +56,19 @@ public class Panel extends AbstractSingleComponentContainer implements
};
/**
- * Creates a new empty panel. A VerticalLayout is used as content.
+ * Creates a new empty panel.
*/
public Panel() {
this((ComponentContainer) null);
}
/**
- * Creates a new empty panel which contains the given content. The content
- * cannot be null.
+ * Creates a new empty panel which contains the given content.
*
* @param content
* the content for the panel.
*/
- public Panel(ComponentContainer content) {
+ public Panel(Component content) {
registerRpc(rpc);
setContent(content);
setWidth(100, Unit.PERCENTAGE);
@@ -77,7 +76,7 @@ public class Panel extends AbstractSingleComponentContainer implements
}
/**
- * Creates a new empty panel with caption. Default layout is used.
+ * Creates a new empty panel with caption.
*
* @param caption
* the caption used in the panel (HTML).
@@ -94,7 +93,7 @@ public class Panel extends AbstractSingleComponentContainer implements
* @param content
* the content used in the panel.
*/
- public Panel(String caption, ComponentContainer content) {
+ public Panel(String caption, Component content) {
this(content);
setCaption(caption);
}