summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/GridLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/ui/GridLayout.java')
-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) {