Java 类com.vaadin.ui.UriFragmentUtility.FragmentChangedEvent 实例源码

项目:SecureBPMN    文件:NavigationFragmentChangeListener.java   
public void fragmentChanged(FragmentChangedEvent source) {
  String fragment = source.getUriFragmentUtility().getFragment();

  if (fragment != null && !"".equals(fragment)) {
    UriFragment uriFragment = new UriFragment(fragment);

    // Find appropriate handler based on the first part of the URI
    Navigator navigationHandler = null;
    if(uriFragment.getUriParts() != null && uriFragment.getUriParts().size() > 0) {
      navigationHandler = navigatorManager.getNavigator(uriFragment.getUriParts().get(0));
    }

    if(navigationHandler == null) {
      navigationHandler = navigatorManager.getDefaultNavigator();
    }

    // Delegate navigation to handler
    navigationHandler.handleNavigation(uriFragment);
  }

}
项目:FiWare-Template-Handler    文件:NavigationFragmentChangeListener.java   
public void fragmentChanged(FragmentChangedEvent source) {
  String fragment = source.getUriFragmentUtility().getFragment();

  if (fragment != null && !"".equals(fragment)) {
    UriFragment uriFragment = new UriFragment(fragment);

    // Find appropriate handler based on the first part of the URI
    Navigator navigationHandler = null;
    if(uriFragment.getUriParts() != null && uriFragment.getUriParts().size() > 0) {
      navigationHandler = navigatorManager.getNavigator(uriFragment.getUriParts().get(0));
    }

    if(navigationHandler == null) {
      navigationHandler = navigatorManager.getDefaultNavigator();
    }

    // Delegate navigation to handler
    navigationHandler.handleNavigation(uriFragment);
  }

}
项目:opennmszh    文件:TopologyWidgetTestApplication.java   
@Override
public void fragmentChanged(FragmentChangedEvent source) {
    m_settingFragment++;
    String fragment = source.getUriFragmentUtility().getFragment();
    m_historyManager.applyHistory(fragment, m_graphContainer);
    m_settingFragment--;
}