47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package org.gcube.portlets.user.dataminermanagertester.client.application.menu;
|
|
|
|
|
|
import org.gcube.portlets.user.dataminermanagertester.client.event.ContentPushEvent;
|
|
|
|
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> {
|
|
|
|
***REMOVED***
|
|
|
|
@Inject
|
|
MenuPresenter(EventBus eventBus, PresenterView view) {
|
|
super(eventBus, view);
|
|
getView().setUiHandlers(this);
|
|
***REMOVED***
|
|
|
|
@Override
|
|
protected void onBind() {
|
|
super.onBind();
|
|
addRegisteredHandler(NavigationEvent.getType(), this);
|
|
***REMOVED***
|
|
|
|
@Override
|
|
public void setContentPush() {
|
|
ContentPushEvent.fire(this);
|
|
***REMOVED***
|
|
|
|
@Override
|
|
public void onNavigation(NavigationEvent navigationEvent) {
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** |