MVP
2016-04-30 10:11:39 13 举报
android mvp class diagram
作者其他创作
大纲/内容
Model
TasksFragment
- mPresenter : TasksContract.Presenter- mListAdapter : TasksAdapter- mNoTasksView : View//... other view
//声明周期相关方法
TasksRemoteDataSource
- INSTANCE : TasksRemoteDataSource
TasksPersistenceContract
数据库表的各种值
View
TasksRepository
TasksActivity
mTasksPresenter:TasksPresenter
Methods
TasksPresenter
- mTasksRepository : TasksRepository- mTasksView : TasksContract.View- mCurrentFiltering : TasksFilterType = Taasks.FilterType.ALL_TASKS- mFirstLoad = true
TasksContract.Presenter
TasksDbHelper
+ DATABASE_VERSION : int = 1+ DATABASE_NAME : String = \"Tasks.db\"+ TEXT_TYPE : String = \"TEXT\"+ BOOLEAN_TYPE : String = \"INTEGER\"+ COMMA_SEP : String =\
+ operation1(params):returnType- operation2(params)- operation3()
Presenter
TasksLocalDataSource
- INSTANCE : TasksLocalDataSource- TasksDbHelper : mDbHelper
+getInstance(Context):TasksLocalDataSource
TasksContract.BasePresenter
start() : void
TasksContract.BaseView
setPresenter(T extends TasksContract.Presenter) : void
TaskContract.View
setLoadingIndicator(boolean):voidshowTasks(List) : void//...其它一些界面交互相关的方法
TaskDataSource
0 条评论
回复 删除
下一页