summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/minitutorials
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-13 16:29:01 +0200
committerArtur Signell <artur@vaadin.com>2012-11-13 16:29:01 +0200
commitad54bec291ebb929f55b4f9208ed29f018223659 (patch)
treea2e64210f6b0d322fd2a42f1377fceb86b4a6d64 /uitest/src/com/vaadin/tests/minitutorials
parentd65970d329249c6725ec0bafd46725405492e833 (diff)
downloadvaadin-framework-ad54bec291ebb929f55b4f9208ed29f018223659.tar.gz
vaadin-framework-ad54bec291ebb929f55b4f9208ed29f018223659.zip
Renamed uri fragment methods in Page to use UriFragment instead of Fragment (#10141)
Change-Id: I1c5826a667e718ec147807889082d27392cf44e8
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials')
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java18
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7b1/AxessingWebPageAndBrowserInfoUI.java12
2 files changed, 15 insertions, 15 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
index 5d7555a952..15c4fa838e 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
@@ -16,8 +16,8 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.server.Page.FragmentChangedEvent;
-import com.vaadin.server.Page.FragmentChangedListener;
+import com.vaadin.server.Page.UriFragmentChangedEvent;
+import com.vaadin.server.Page.UriFragmentChangedListener;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -36,26 +36,26 @@ public class UsingUriFragments extends UI {
@Override
protected void init(VaadinRequest request) {
Label label = new Label("Hello, your fragment is "
- + getPage().getFragment());
+ + getPage().getUriFragment());
getContent().addComponent(label);
// React to fragment changes
- getPage().addListener(new FragmentChangedListener() {
+ getPage().addListener(new UriFragmentChangedListener() {
@Override
- public void fragmentChanged(FragmentChangedEvent source) {
- handleFragment(source.getFragment());
+ public void uriFragmentChanged(UriFragmentChangedEvent source) {
+ handleFragment(source.getUriFragment());
}
});
// Handle the fragment received in the initial request
- handleFragment(getPage().getFragment());
+ handleFragment(getPage().getUriFragment());
addComponent(new Button("Show and set fragment",
new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
- handleFragment(getPage().getFragment());
- getPage().setFragment("customFragment");
+ handleFragment(getPage().getUriFragment());
+ getPage().setUriFragment("customFragment");
}
}));
}
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b1/AxessingWebPageAndBrowserInfoUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7b1/AxessingWebPageAndBrowserInfoUI.java
index 8623dd0b73..8fb7536190 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7b1/AxessingWebPageAndBrowserInfoUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7b1/AxessingWebPageAndBrowserInfoUI.java
@@ -19,8 +19,8 @@ package com.vaadin.tests.minitutorials.v7b1;
import com.vaadin.server.Page;
import com.vaadin.server.Page.BrowserWindowResizeEvent;
import com.vaadin.server.Page.BrowserWindowResizeListener;
-import com.vaadin.server.Page.FragmentChangedEvent;
-import com.vaadin.server.Page.FragmentChangedListener;
+import com.vaadin.server.Page.UriFragmentChangedEvent;
+import com.vaadin.server.Page.UriFragmentChangedListener;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Notification;
@@ -43,11 +43,11 @@ public class AxessingWebPageAndBrowserInfoUI extends AbstractTestUI {
}
});
- page.setFragment(page.getFragment() + "foo");
- page.addFragmentChangedListener(new FragmentChangedListener() {
+ page.setUriFragment(page.getUriFragment() + "foo");
+ page.addUriFragmentChangedListener(new UriFragmentChangedListener() {
@Override
- public void fragmentChanged(FragmentChangedEvent event) {
- Notification.show("Fragment=" + event.getFragment());
+ public void uriFragmentChanged(UriFragmentChangedEvent event) {
+ Notification.show("Fragment=" + event.getUriFragment());
}
});
}