aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2014-11-25 17:23:45 +0200
committerSauli Tähkäpää <sauli@vaadin.com>2014-11-28 12:27:22 +0200
commitcb4068013b62230de27322b9db4ecf75b01d0e0b (patch)
tree59f452f6c1a2b860f9c08784e0e38bdae3c20c0a /server/src/com/vaadin/ui
parentac3ed7465c1f7c6620034c131142365a993ae537 (diff)
downloadvaadin-framework-cb4068013b62230de27322b9db4ecf75b01d0e0b.tar.gz
vaadin-framework-cb4068013b62230de27322b9db4ecf75b01d0e0b.zip
Add getter to SplitterState.positionReversed (#15285)
Change-Id: I1e3783d21cb5f2832838dfe36c91c7f6a4ddb313
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r--server/src/com/vaadin/ui/AbstractSplitPanel.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractSplitPanel.java b/server/src/com/vaadin/ui/AbstractSplitPanel.java
index 09f881cf46..e9b37f8cff 100644
--- a/server/src/com/vaadin/ui/AbstractSplitPanel.java
+++ b/server/src/com/vaadin/ui/AbstractSplitPanel.java
@@ -342,12 +342,26 @@ public abstract class AbstractSplitPanel extends AbstractComponentContainer {
* Returns the unit of position of the splitter
*
* @return unit of position of the splitter
+ * @see #setSplitPosition(float, Unit)
*/
public Unit getSplitPositionUnit() {
return posUnit;
}
/**
+ * Is the split position reversed. By default the split position is measured
+ * by the first region, but if split position is reversed the measuring is
+ * done by the second region instead.
+ *
+ * @since
+ * @return {@code true} if reversed, {@code false} otherwise.
+ * @see #setSplitPosition(float, boolean)
+ */
+ public boolean isSplitPositionReversed() {
+ return getSplitterState(false).positionReversed;
+ }
+
+ /**
* Sets the minimum split position to the given position and unit. If the
* split position is reversed, maximum and minimum are also reversed.
*