aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-08-09 12:23:37 +0000
committerArtur Signell <artur.signell@itmill.com>2010-08-09 12:23:37 +0000
commite1555a63c4d0b41688435ac617c37e7306e9a40e (patch)
tree032e18019625e0604f6397e348d6de8e629da308
parent771369aac1d5a745ee4af7912f791fdec6a0f8ea (diff)
downloadvaadin-framework-e1555a63c4d0b41688435ac617c37e7306e9a40e.tar.gz
vaadin-framework-e1555a63c4d0b41688435ac617c37e7306e9a40e.zip
Added a comment about screen size not being available in Application.init()
svn changeset:14432/svn branch:6.4
-rw-r--r--src/com/vaadin/terminal/Terminal.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/Terminal.java b/src/com/vaadin/terminal/Terminal.java
index c4da595be8..7b8612d2db 100644
--- a/src/com/vaadin/terminal/Terminal.java
+++ b/src/com/vaadin/terminal/Terminal.java
@@ -28,6 +28,11 @@ public interface Terminal extends Serializable {
/**
* Gets the width of the terminal screen in pixels. This is the width of the
* screen and not the width available for the application.
+ * <p>
+ * Note that the screen width is typically not available in the
+ * {@link com.vaadin.Application#init()} method as this is called before the
+ * browser has a chance to report the screen size to the server.
+ * </p>
*
* @return the width of the terminal screen.
*/
@@ -37,6 +42,12 @@ public interface Terminal extends Serializable {
* Gets the height of the terminal screen in pixels. This is the height of
* the screen and not the height available for the application.
*
+ * <p>
+ * Note that the screen height is typically not available in the
+ * {@link com.vaadin.Application#init()} method as this is called before the
+ * browser has a chance to report the screen size to the server.
+ * </p>
+ *
* @return the height of the terminal screen.
*/
public int getScreenHeight();