diff options
author | Marc Englund <marc.englund@itmill.com> | 2008-12-08 14:31:38 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2008-12-08 14:31:38 +0000 |
commit | 3956a29cf805a1b6087be54163d0e3d618002de9 (patch) | |
tree | 5e1854ef5b3f1e305a2ed38df72e94896ff06281 /src/com/itmill/toolkit/ui/GridLayout.java | |
parent | 53a12f615ad79a7c6c478ed51fabaaaef75037ab (diff) | |
download | vaadin-framework-3956a29cf805a1b6087be54163d0e3d618002de9.tar.gz vaadin-framework-3956a29cf805a1b6087be54163d0e3d618002de9.zip |
setCursorX/Y implementation for #1724
svn changeset:6122/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/GridLayout.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/GridLayout.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/ui/GridLayout.java b/src/com/itmill/toolkit/ui/GridLayout.java index 66dac51b0a..c12ea25c96 100644 --- a/src/com/itmill/toolkit/ui/GridLayout.java +++ b/src/com/itmill/toolkit/ui/GridLayout.java @@ -999,6 +999,16 @@ public class GridLayout extends AbstractLayout implements } /** + * Sets the current cursor x-position. This is usually handled automatically + * by GridLayout. + * + * @param cursorX + */ + public void setCursorX(int cursorX) { + this.cursorX = cursorX; + } + + /** * Gets the current cursor y-position. The cursor position points the * position for the next component that is added without specifying its * coordinates (grid cell). When the cursor position is occupied, the next @@ -1010,6 +1020,16 @@ public class GridLayout extends AbstractLayout implements return cursorY; } + /** + * Sets the current cursor y-position. This is usually handled automatically + * by GridLayout. + * + * @param cursorY + */ + public void setCursorY(int cursorY) { + this.cursorY = cursorY; + } + /* Documented in superclass */ public void replaceComponent(Component oldComponent, Component newComponent) { |