]> source.dussan.org Git - vaadin-framework.git/commitdiff
setCursorX/Y implementation for #1724
authorMarc Englund <marc.englund@itmill.com>
Mon, 8 Dec 2008 14:31:38 +0000 (14:31 +0000)
committerMarc Englund <marc.englund@itmill.com>
Mon, 8 Dec 2008 14:31:38 +0000 (14:31 +0000)
svn changeset:6122/svn branch:trunk

src/com/itmill/toolkit/ui/GridLayout.java

index 66dac51b0a277f949508cc9535b0b9eb1a56f28b..c12ea25c96656e8f183eaa39df2b4894df76ca7a 100644 (file)
@@ -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) {