FileDocCategorySizeDatePackage
Presenter.javaAPI DocAndroid 1.5 API1614Wed May 06 22:42:46 BST 2009com.android.mms.ui

Presenter

public abstract class Presenter extends Object implements com.android.mms.model.IModelChangedObserver
An abstract message presenter.

Fields Summary
protected final android.content.Context
mContext
protected final int
mViewWidth
protected final int
mViewHeight
protected ViewInterface
mView
protected com.android.mms.model.Model
mModel
Constructors Summary
public Presenter(android.content.Context context, ViewInterface view, com.android.mms.model.Model model)

        mContext = context;
        mView = view;
        mViewWidth = view.getWidth();
        mViewHeight = view.getHeight();

        mModel = model;
        mModel.registerModelChangedObserver(this);
    
Methods Summary
public com.android.mms.model.ModelgetModel()

        return mModel;
    
public ViewInterfacegetView()

        return mView;
    
public abstract voidpresent()

public voidsetView(ViewInterface view)

        mView = view;