diff options
author | John Alhroos <john.ahlroos@itmill.com> | 2010-11-02 13:45:40 +0000 |
---|---|---|
committer | John Alhroos <john.ahlroos@itmill.com> | 2010-11-02 13:45:40 +0000 |
commit | 1032552c74d4f35555985e2a85bdadd1c9010af0 (patch) | |
tree | 3478eff49e89b2b894e5a44929fd31030342144b | |
parent | 45a801f0245d4994573a176be6432e772a8277f7 (diff) | |
download | vaadin-framework-1032552c74d4f35555985e2a85bdadd1c9010af0.tar.gz vaadin-framework-1032552c74d4f35555985e2a85bdadd1c9010af0.zip |
HorizontalSplitPanel is now horizontal.
svn changeset:15827/svn branch:6.5
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/common/img/horizontal-sprites.png | bin | 215 -> 218 bytes | |||
-rw-r--r-- | src/com/vaadin/ui/HorizontalSplitPanel.java | 4 | ||||
-rw-r--r-- | src/com/vaadin/ui/VerticalSplitPanel.java | 5 | ||||
-rw-r--r-- | tests/src/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java | 5 |
4 files changed, 8 insertions, 6 deletions
diff --git a/WebContent/VAADIN/themes/reindeer/common/img/horizontal-sprites.png b/WebContent/VAADIN/themes/reindeer/common/img/horizontal-sprites.png Binary files differindex 3f107c2c31..7980a5aa18 100644 --- a/WebContent/VAADIN/themes/reindeer/common/img/horizontal-sprites.png +++ b/WebContent/VAADIN/themes/reindeer/common/img/horizontal-sprites.png diff --git a/src/com/vaadin/ui/HorizontalSplitPanel.java b/src/com/vaadin/ui/HorizontalSplitPanel.java index 5a8a594dd2..8675f727d6 100644 --- a/src/com/vaadin/ui/HorizontalSplitPanel.java +++ b/src/com/vaadin/ui/HorizontalSplitPanel.java @@ -4,5 +4,7 @@ import com.vaadin.terminal.gwt.client.ui.VSplitPanelHorizontal; @ClientWidget(VSplitPanelHorizontal.class) public class HorizontalSplitPanel extends SplitPanel { - + public HorizontalSplitPanel() { + super(ORIENTATION_HORIZONTAL); + } } diff --git a/src/com/vaadin/ui/VerticalSplitPanel.java b/src/com/vaadin/ui/VerticalSplitPanel.java index 10e7a50ead..d0ae66b2a2 100644 --- a/src/com/vaadin/ui/VerticalSplitPanel.java +++ b/src/com/vaadin/ui/VerticalSplitPanel.java @@ -1,9 +1,10 @@ package com.vaadin.ui; -public class VerticalSplitPanel extends SplitPanel { +import com.vaadin.terminal.gwt.client.ui.VSplitPanelVertical; +@ClientWidget(VSplitPanelVertical.class) +public class VerticalSplitPanel extends SplitPanel { public VerticalSplitPanel() { super(ORIENTATION_VERTICAL); } - } diff --git a/tests/src/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java b/tests/src/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java index 60cb9392b6..53d791efec 100644 --- a/tests/src/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java +++ b/tests/src/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java @@ -3,7 +3,6 @@ package com.vaadin.tests.components.splitpanel; import com.vaadin.terminal.Sizeable; import com.vaadin.tests.components.TestBase; import com.vaadin.ui.HorizontalSplitPanel; -import com.vaadin.ui.SplitPanel; import com.vaadin.ui.SplitPanel.SplitterClickEvent; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalSplitPanel; @@ -18,7 +17,7 @@ public class SplitPanelReversePosition extends TestBase { hsplit.setSizeFull(); hsplit.setImmediate(true); hsplit.setSplitPosition(100, Sizeable.UNITS_PIXELS, true); - hsplit.addListener(new SplitPanel.SplitterClickListener() { + hsplit.addListener(new HorizontalSplitPanel.SplitterClickListener() { public void splitterClick(SplitterClickEvent event) { System.out.println(hsplit.getSplitPosition()); @@ -33,7 +32,7 @@ public class SplitPanelReversePosition extends TestBase { vsplit.setSizeFull(); vsplit.setImmediate(true); vsplit.setSplitPosition(10, Sizeable.UNITS_PERCENTAGE, true); - vsplit.addListener(new SplitPanel.SplitterClickListener() { + vsplit.addListener(new VerticalSplitPanel.SplitterClickListener() { public void splitterClick(SplitterClickEvent event) { System.out.println(vsplit.getSplitPosition()); |