aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2012-09-04 11:52:33 +0000
committerArtur Signell <artur.signell@itmill.com>2012-09-04 11:52:33 +0000
commit5745d1e805aa6d44dd685769344c8b92b64bcd63 (patch)
tree300ff3ad8f0ac27f8750762f40988be5f27c3a44
parent8b1e5a2d314ae89d96f38f2d09517bb2a45705dd (diff)
downloadvaadin-framework-5745d1e805aa6d44dd685769344c8b92b64bcd63.tar.gz
vaadin-framework-5745d1e805aa6d44dd685769344c8b92b64bcd63.zip
CRLF -> LF
svn changeset:24301/svn branch:6.8
-rw-r--r--tests/testbench/com/vaadin/tests/components/urifragmentutilty/FragmentChangeLoop.java144
1 files changed, 72 insertions, 72 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/urifragmentutilty/FragmentChangeLoop.java b/tests/testbench/com/vaadin/tests/components/urifragmentutilty/FragmentChangeLoop.java
index ecd3461d3c..ead1669089 100644
--- a/tests/testbench/com/vaadin/tests/components/urifragmentutilty/FragmentChangeLoop.java
+++ b/tests/testbench/com/vaadin/tests/components/urifragmentutilty/FragmentChangeLoop.java
@@ -1,72 +1,72 @@
-package com.vaadin.tests.components.urifragmentutilty;
-
-import com.vaadin.tests.components.TestBase;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.Label;
-import com.vaadin.ui.UriFragmentUtility;
-import com.vaadin.ui.UriFragmentUtility.FragmentChangedEvent;
-import com.vaadin.ui.UriFragmentUtility.FragmentChangedListener;
-import com.vaadin.ui.VerticalLayout;
-
-public class FragmentChangeLoop extends TestBase {
- VerticalLayout layout1 = new VerticalLayout();
- VerticalLayout layout2 = new VerticalLayout();
- VerticalLayout layoutCurrent = null;
- UriFragmentUtility uriFragmentUtility = new UriFragmentUtility();
- Integer i = 0;
- private Label status;
- private Button setToF;
- private Button addOne;
-
- @Override
- protected void setup() {
- uriFragmentUtility.addListener(new FragmentChangedListener() {
-
- public void fragmentChanged(FragmentChangedEvent source) {
- status.setValue(++i + " fragment events");
- VerticalLayout layoutNew = (layoutCurrent == layout1 ? layout2
- : layout1);
- replaceComponent(layoutCurrent, layoutNew);
- layoutCurrent = layoutNew;
-
- }
- });
-
- layout1.setCaption("Layout 1");
- layout2.setCaption("Layout 2");
- addComponent(layout1);
- layoutCurrent = layout1;
- status = new Label("0 fragment events");
- setToF = new Button("Set fragment to F", new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- uriFragmentUtility.setFragment("F");
- }
- });
- addOne = new Button("Append '1' to fragment",
- new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- uriFragmentUtility.setFragment(uriFragmentUtility
- .getFragment() + "1");
- }
- });
- addComponent(status);
- addComponent(setToF);
- addComponent(addOne);
-
- addComponent(uriFragmentUtility);
-
- }
-
- @Override
- protected String getDescription() {
- return "Click the button to set the fragment to F. "
- + "This should cause the counter on the button to increase by one (unless the fragment is already F in case it should do nothing).";
- }
-
- @Override
- protected Integer getTicketNumber() {
- return 8916;
- }
-
-}
+package com.vaadin.tests.components.urifragmentutilty;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.UriFragmentUtility;
+import com.vaadin.ui.UriFragmentUtility.FragmentChangedEvent;
+import com.vaadin.ui.UriFragmentUtility.FragmentChangedListener;
+import com.vaadin.ui.VerticalLayout;
+
+public class FragmentChangeLoop extends TestBase {
+ VerticalLayout layout1 = new VerticalLayout();
+ VerticalLayout layout2 = new VerticalLayout();
+ VerticalLayout layoutCurrent = null;
+ UriFragmentUtility uriFragmentUtility = new UriFragmentUtility();
+ Integer i = 0;
+ private Label status;
+ private Button setToF;
+ private Button addOne;
+
+ @Override
+ protected void setup() {
+ uriFragmentUtility.addListener(new FragmentChangedListener() {
+
+ public void fragmentChanged(FragmentChangedEvent source) {
+ status.setValue(++i + " fragment events");
+ VerticalLayout layoutNew = (layoutCurrent == layout1 ? layout2
+ : layout1);
+ replaceComponent(layoutCurrent, layoutNew);
+ layoutCurrent = layoutNew;
+
+ }
+ });
+
+ layout1.setCaption("Layout 1");
+ layout2.setCaption("Layout 2");
+ addComponent(layout1);
+ layoutCurrent = layout1;
+ status = new Label("0 fragment events");
+ setToF = new Button("Set fragment to F", new Button.ClickListener() {
+ public void buttonClick(ClickEvent event) {
+ uriFragmentUtility.setFragment("F");
+ }
+ });
+ addOne = new Button("Append '1' to fragment",
+ new Button.ClickListener() {
+ public void buttonClick(ClickEvent event) {
+ uriFragmentUtility.setFragment(uriFragmentUtility
+ .getFragment() + "1");
+ }
+ });
+ addComponent(status);
+ addComponent(setToF);
+ addComponent(addOne);
+
+ addComponent(uriFragmentUtility);
+
+ }
+
+ @Override
+ protected String getDescription() {
+ return "Click the button to set the fragment to F. "
+ + "This should cause the counter on the button to increase by one (unless the fragment is already F in case it should do nothing).";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 8916;
+ }
+
+}