diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2008-02-01 11:51:19 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2008-02-01 11:51:19 +0000 |
commit | f66d433474b831feabd3bf78c6fb50f09d20e268 (patch) | |
tree | f98b311908ed027363ba2f774d27e5c6a7918ba0 /src/com/itmill/toolkit/tests/BasicRandomTest.java | |
parent | 8a30d9ec793b343e48ff4ec05391be0fca1cd9d0 (diff) | |
download | vaadin-framework-f66d433474b831feabd3bf78c6fb50f09d20e268.tar.gz vaadin-framework-f66d433474b831feabd3bf78c6fb50f09d20e268.zip |
Fixed gridlayout API calls.
svn changeset:3699/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/BasicRandomTest.java')
-rw-r--r-- | src/com/itmill/toolkit/tests/BasicRandomTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/tests/BasicRandomTest.java b/src/com/itmill/toolkit/tests/BasicRandomTest.java index 8eac734448..c0b08fe394 100644 --- a/src/com/itmill/toolkit/tests/BasicRandomTest.java +++ b/src/com/itmill/toolkit/tests/BasicRandomTest.java @@ -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); } |