From: Marc Englund Date: Mon, 8 Dec 2008 14:31:38 +0000 (+0000) Subject: setCursorX/Y implementation for #1724 X-Git-Tag: 6.7.0.beta1~3636 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3956a29cf805a1b6087be54163d0e3d618002de9;p=vaadin-framework.git setCursorX/Y implementation for #1724 svn changeset:6122/svn branch:trunk --- 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 @@ -998,6 +998,16 @@ public class GridLayout extends AbstractLayout implements return cursorX; } + /** + * 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 @@ -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) {