summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets
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/tickets
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/tickets')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket34.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket34.java b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
index 18863273d1..dfeb83987d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket34.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
@@ -5,7 +5,7 @@ import java.util.Map;
import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Page;
-import com.vaadin.server.Page.FragmentChangedEvent;
+import com.vaadin.server.Page.UriFragmentChangedEvent;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
@@ -32,14 +32,14 @@ public class Ticket34 extends LegacyApplication {
"Test app for URI fragment management/reading", mainLayout);
setMainWindow(mainWin);
- mainWin.getPage().addListener(new Page.FragmentChangedListener() {
+ mainWin.getPage().addListener(new Page.UriFragmentChangedListener() {
@Override
- public void fragmentChanged(FragmentChangedEvent event) {
+ public void uriFragmentChanged(UriFragmentChangedEvent event) {
getMainWindow().showNotification(
- "Fragment now: " + event.getFragment());
+ "Fragment now: " + event.getUriFragment());
// try to change to view mapped by fragment string
- setView(event.getFragment());
+ setView(event.getUriFragment());
}
});
@@ -95,7 +95,7 @@ public class Ticket34 extends LegacyApplication {
public void buttonClick(ClickEvent event) {
String viewName = tf.getValue().toString();
// fragmentChangedListener will change the view if possible
- event.getButton().getUI().getPage().setFragment(viewName);
+ event.getButton().getUI().getPage().setUriFragment(viewName);
}
});