com.sap.ui.core.mvp.client.presenter
Class AbstractPresenter<T extends View>

java.lang.Object
  extended by com.sap.ui.core.mvp.client.presenter.AbstractPresenter<T>
All Implemented Interfaces:
Presenter<T>

public abstract class AbstractPresenter<T extends View>
extends Object
implements Presenter<T>

The class AbstractPresenter implements the basic functionality of the Presenter and additionally provides support for managing the event bus (HandlerManager). The event bus has to be used for dispatching and receiving events from other views, presenters or controllers.

Version:
1.0 - 31.12.2010 10:07:57, Revision Version: ($Revision: #1 $), Revision Date: ($Date: 2011/02/08 $)
Author:
D039071@exchange.sap.corp, Revision Author: ($Author: d039071 $)

Constructor Summary
AbstractPresenter(com.google.gwt.event.shared.HandlerManager eventBus, T view)
          constructs the class AbstractPresenter
 
Method Summary
protected  com.google.gwt.event.shared.HandlerManager getEventBus()
          returns the reference to the event bus of the application
 T getView()
          returns the reference to the View
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPresenter

public AbstractPresenter(com.google.gwt.event.shared.HandlerManager eventBus,
                         T view)
constructs the class AbstractPresenter

Parameters:
eventBus - reference to the event bus (HandlerManager)
view - reference to the View
Method Detail

getView

public T getView()
Description copied from interface: Presenter
returns the reference to the View

Specified by:
getView in interface Presenter<T extends View>
Returns:
reference to the View

getEventBus

protected com.google.gwt.event.shared.HandlerManager getEventBus()
returns the reference to the event bus of the application

Returns:
event bus of the application


Copyright © 2011 SAP. All Rights Reserved.