You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
accounting-dashboard/src/main/java/org/gcube/portlets/user/accountingdashboard/client/application/menu/MenuPresenter.java

41 lines
995 B
Java

package org.gcube.portlets.user.accountingdashboard.client.application.menu;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.HasUiHandlers;
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.proxy.NavigationEvent;
import com.gwtplatform.mvp.client.proxy.NavigationHandler;
/**
*
* @author Giancarlo Panichi
*
*/
public class MenuPresenter extends PresenterWidget<MenuPresenter.PresenterView>
implements MenuUiHandlers, NavigationHandler {
interface PresenterView extends View, HasUiHandlers<MenuUiHandlers> {
}
@Inject
MenuPresenter(EventBus eventBus, PresenterView view) {
super(eventBus, view);
getView().setUiHandlers(this);
}
@Override
protected void onBind() {
super.onBind();
addRegisteredHandler(NavigationEvent.getType(), this);
}
@Override
public void onNavigation(NavigationEvent navigationEvent) {
}
}