aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/SplitPanel.java
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2010-03-31 08:22:25 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2010-03-31 08:22:25 +0000
commit61f6bcac6d5bdcf3ff7c3c774a2ad37d7798c207 (patch)
tree192f676696a5db6e03b6b1e94b52fdac3fec7429 /src/com/vaadin/ui/SplitPanel.java
parentb0821b2546f85f29bad1eb1e263a5a292fb923df (diff)
downloadvaadin-framework-61f6bcac6d5bdcf3ff7c3c774a2ad37d7798c207.tar.gz
vaadin-framework-61f6bcac6d5bdcf3ff7c3c774a2ad37d7798c207.zip
Fixes #4460: SplitPanel: add getters for the position (and unit) of the splitter on the server side component
svn changeset:12248/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/ui/SplitPanel.java')
-rw-r--r--src/com/vaadin/ui/SplitPanel.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/SplitPanel.java b/src/com/vaadin/ui/SplitPanel.java
index 4319bf7d9c..fe2da5d370 100644
--- a/src/com/vaadin/ui/SplitPanel.java
+++ b/src/com/vaadin/ui/SplitPanel.java
@@ -311,6 +311,25 @@ public class SplitPanel extends AbstractLayout {
}
/**
+ * Returns the current position of the splitter, in
+ * {@link #getSplitPositionUnit()} units.
+ *
+ * @return position of the splitter
+ */
+ public int getSplitPosition() {
+ return pos;
+ }
+
+ /**
+ * Returns the unit of position of the splitter
+ *
+ * @return unit of position of the splitter
+ */
+ public int getSplitPositionUnit() {
+ return posUnit;
+ }
+
+ /**
* Moves the position of the splitter.
*
* @param pos