Package org.vaadin.spring.samples.mvp.ui.view

Examples of org.vaadin.spring.samples.mvp.ui.view.BannerView


  private Environment env;

  @Override
  public void buttonClick(ClickEvent event) {
    SecurityContextHolder.clearContext();
    BannerView banner = (BannerView) event.getComponent().getParent();
    String contextPath = VaadinServlet.getCurrent().getServletContext().getContextPath();
    String urlMapping = env.getProperty("vaadin.servlet.urlMapping");
    String uiPath = urlMapping.substring(0, urlMapping.length() - 2);
    String location = contextPath.concat(uiPath);
    banner.getUI().getPage().setLocation(location);
  }
View Full Code Here

TOP

Related Classes of org.vaadin.spring.samples.mvp.ui.view.BannerView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.