Code example for EventBus

Methods: register

0
 
		navigator = new Navigator(getPage(), viewDisplay);
		 
		navigator.addListener(new ViewChangeSecurityChecker());
 
		navigator.addView(LOGIN_VIEW_NAME, new LoginView(bus));
		navigator.addView(MAIN_VIEW_NAME, new MainView(bus));
 
		navigator.navigateTo(LOGIN_VIEW_NAME);
 
		bus.register(this);
	} 
 
	@Subscribe 
	public void login(LoginEvent event) {
 
		AuthenticationService authHandler = new AuthenticationService();
 
		try {