Package net.relatedwork.client.staticpresenter

Source Code of net.relatedwork.client.staticpresenter.ImprintPresenter$MyProxy

package net.relatedwork.client.staticpresenter;

import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
import com.gwtplatform.mvp.client.annotations.NameToken;

import net.relatedwork.client.navigation.HistoryTokenChangeEvent;
import net.relatedwork.client.place.NameTokens;
import com.gwtplatform.mvp.client.proxy.ProxyPlace;
import com.google.inject.Inject;
import com.google.gwt.dom.client.Document;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.proxy.RevealContentEvent;
import net.relatedwork.client.MainPresenter;

public class ImprintPresenter extends
    Presenter<ImprintPresenter.MyView, ImprintPresenter.MyProxy> {

  public interface MyView extends View {
  }

  @ProxyCodeSplit
  @NameToken(NameTokens.imprint)
  public interface MyProxy extends ProxyPlace<ImprintPresenter> {
  }

  @Inject
  public ImprintPresenter(final EventBus eventBus, final MyView view,
      final MyProxy proxy) {
    super(eventBus, view, proxy);
  }

  @Override
  protected void revealInParent() {
    RevealContentEvent.fire(this, MainPresenter.TYPE_SetMainContent, this);
  }

  @Override
  protected void onBind() {
    super.onBind();
  }
 
  @Override
  protected void onReset() {
    super.onReset();
    getEventBus().fireEvent(new HistoryTokenChangeEvent(NameTokens.imprint, "Imprint"));
  }
 
}
TOP

Related Classes of net.relatedwork.client.staticpresenter.ImprintPresenter$MyProxy

TOP
Copyright © 2018 www.massapi.com. 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.