summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-12-08 14:31:38 +0000
committerMarc Englund <marc.englund@itmill.com>2008-12-08 14:31:38 +0000
commit3956a29cf805a1b6087be54163d0e3d618002de9 (patch)
tree5e1854ef5b3f1e305a2ed38df72e94896ff06281 /src/com/itmill/toolkit/ui
parent53a12f615ad79a7c6c478ed51fabaaaef75037ab (diff)
downloadvaadin-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')
-rw-r--r--src/com/itmill/toolkit/ui/GridLayout.java20
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) {