summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/navigator
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 /server/src/com/vaadin/navigator
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 'server/src/com/vaadin/navigator')
-rw-r--r--server/src/com/vaadin/navigator/Navigator.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java
index 811a09fcfb..edc101bb44 100644
--- a/server/src/com/vaadin/navigator/Navigator.java
+++ b/server/src/com/vaadin/navigator/Navigator.java
@@ -23,8 +23,8 @@ import java.util.List;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.server.Page;
-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.ui.Component;
import com.vaadin.ui.ComponentContainer;
import com.vaadin.ui.CssLayout;
@@ -84,7 +84,7 @@ public class Navigator implements Serializable {
* and static to enable testing.
*/
public static class UriFragmentManager implements NavigationStateManager,
- FragmentChangedListener {
+ UriFragmentChangedListener {
private final Page page;
private Navigator navigator;
@@ -97,7 +97,7 @@ public class Navigator implements Serializable {
*/
public UriFragmentManager(Page page) {
this.page = page;
- page.addFragmentChangedListener(this);
+ page.addUriFragmentChangedListener(this);
}
@Override
@@ -121,7 +121,7 @@ public class Navigator implements Serializable {
}
@Override
- public void fragmentChanged(FragmentChangedEvent event) {
+ public void uriFragmentChanged(UriFragmentChangedEvent event) {
navigator.navigateTo(getState());
}
@@ -131,7 +131,7 @@ public class Navigator implements Serializable {
* @return The URI fragment.
*/
protected String getFragment() {
- return page.getFragment();
+ return page.getUriFragment();
}
/**
@@ -141,7 +141,7 @@ public class Navigator implements Serializable {
* The new URI fragment.
*/
protected void setFragment(String fragment) {
- page.setFragment(fragment, false);
+ page.setUriFragment(fragment, false);
}
}