]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed gridlayout API calls.
authorJani Laakso <jani.laakso@itmill.com>
Fri, 1 Feb 2008 11:51:19 +0000 (11:51 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Fri, 1 Feb 2008 11:51:19 +0000 (11:51 +0000)
svn changeset:3699/svn branch:trunk

src/com/itmill/toolkit/tests/BasicRandomTest.java

index 8eac73444869d2fb636d0aa2285195db8ab6b8e6..c0b08fe3945853b7d1592480338c4d2b52961c30 100644 (file)
@@ -270,8 +270,8 @@ public class BasicRandomTest extends com.itmill.toolkit.Application implements
                     } else if (container instanceof GridLayout) {
                         final GridLayout gl = (GridLayout) container;
                         if (j == 0) {
-                            final int x = rand.nextInt(gl.getWidth());
-                            final int y = rand.nextInt(gl.getHeight());
+                            final int x = rand.nextInt(gl.getColumns());
+                            final int y = rand.nextInt(gl.getRows());
                             gl.removeComponent(x, y);
                             gl.addComponent(c, x, y);
                         } else {
@@ -355,8 +355,8 @@ public class BasicRandomTest extends com.itmill.toolkit.Application implements
             }
             gl.setCaption("GridLayout_" + caption);
             gl.setDescription(gl.getCaption());
-            for (int x = 0; x < gl.getWidth(); x++) {
-                for (int y = 0; y < gl.getHeight(); y++) {
+            for (int x = 0; x < gl.getColumns(); x++) {
+                for (int y = 0; y < gl.getRows(); y++) {
                     gl.addComponent(getExamplePicture("x=" + x + ", y=" + y),
                             x, y);
                 }