List of usage examples for com.vaadin.server Page.UriFragmentChangedEvent getUriFragment
public String getUriFragment()
From source file:annis.gui.AdminUI.java
License:Apache License
@Override public void uriFragmentChanged(Page.UriFragmentChangedEvent event) { selectTabFromFragment(event.getUriFragment()); }
From source file:annis.gui.SearchView.java
License:Apache License
@Override public void uriFragmentChanged(Page.UriFragmentChangedEvent event) { evaluateFragment(event.getUriFragment()); }
From source file:at.jku.ce.adaptivetesting.vaadin.ui.core.VaadinUI.java
License:LGPL
@Override protected void init(VaadinRequest request) { getPage().addUriFragmentChangedListener(new Page.UriFragmentChangedListener() { public void uriFragmentChanged(Page.UriFragmentChangedEvent source) { LogHelper.logInfo(source.getUriFragment()); if (source.getUriFragment() == null) return; if (source.getUriFragment().equals("admin")) { navigator.navigateTo(Views.Admin.toString()); }//from w w w. java 2s.com if (source.getUriFragment().equals("log")) { navigator.navigateTo(Views.Log.toString()); } if (source.getUriFragment().equals("results")) { navigator.navigateTo(Views.Results.toString()); } } }); }
From source file:com.cbnserver.gwtp4vaadin.core.proxy.PlaceManagerImpl.java
License:Apache License
@Override public void uriFragmentChanged(final Page.UriFragmentChangedEvent event) { String uriFragment = event.getUriFragment(); if (uriFragment == null) uriFragment = ""; if (locked) { defferedNavigation = new Command() { @Override//from w w w. j ava 2 s . com public void execute() { uriFragmentChanged(event); } }; return; } if (!getLock()) { return; } try { if (uriFragment.trim().equals("")) { unlock(); revealDefaultPlace(); } else { placeHierarchy = tokenFormatter.toPlaceRequestHierarchy(uriFragment); doRevealPlace(getCurrentPlaceRequest(), true); } } catch (TokenFormatException e) { unlock(); error(uriFragment); NavigationEvent.fire(this, null); } }