Class GroupsListPresenter<T extends GroupsListView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<V>
-
- com.cheetahdigital.uikit.architecture.lce.LcePresenter<V>
-
- com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter<V>
-
- com.cheetahdigital.uikit.widget.list.ListPresenter<V>
-
- com.cheetahdigital.uikit.widget.list.EndlessListPresenter<T>
-
- com.cheetahdigital.groups.ui.list.GroupsListPresenter<T>
-
- All Implemented Interfaces:
MvpPresenter<T>
public class GroupsListPresenter<T extends GroupsListView> extends EndlessListPresenter<T>
TheMvpViewPresenter Class forGroupsListActivity
-
-
Constructor Summary
Constructors Constructor Description GroupsListPresenter(java.lang.String groupClass)GroupsListPresenter(java.lang.String groupClass, GroupsParams groupsParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GroupsAPIgetGroupsAPI()Get current instance ofGroupsAPIprotected ListenerModel<BaseModel<Groups>,Groups>getGroupsReceivedListener()Create a listener forGroupsAPIvoidloadData()Load initial view data.voidloadMore(int currentPage)voidonLoadMoreSuccess(BaseData data)End of load more with success requestvoidonRefreshSuccess(BaseData data)End of refresh with success request.voidrefreshData()Start the refresh view data.-
Methods inherited from class com.cheetahdigital.uikit.widget.list.EndlessListPresenter
isAppending, onLoadMoreFailed
-
Methods inherited from class com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter
isRefreshing, onRefreshFailed
-
Methods inherited from class com.cheetahdigital.uikit.architecture.lce.LcePresenter
onLoadFailed, onLoadSuccess
-
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter
attachView, detachView, getView
-
-
-
-
Constructor Detail
-
GroupsListPresenter
public GroupsListPresenter(java.lang.String groupClass)
-
GroupsListPresenter
public GroupsListPresenter(java.lang.String groupClass, GroupsParams groupsParams)
-
-
Method Detail
-
getGroupsReceivedListener
protected ListenerModel<BaseModel<Groups>,Groups> getGroupsReceivedListener()
Create a listener forGroupsAPI- Returns:
- listener to handle
GroupsAPIrequests
-
getGroupsAPI
protected GroupsAPI getGroupsAPI()
Get current instance ofGroupsAPI- Returns:
GroupsAPIused on this presenter
-
loadData
public void loadData()
Description copied from class:LcePresenterLoad initial view data.- Specified by:
loadDatain classLcePresenter<T extends GroupsListView>
-
refreshData
public void refreshData()
Description copied from class:RefreshablePresenterStart the refresh view data.- Overrides:
refreshDatain classRefreshablePresenter<T extends GroupsListView>
-
loadMore
public void loadMore(int currentPage)
- Overrides:
loadMorein classEndlessListPresenter<T extends GroupsListView>
-
onRefreshSuccess
public void onRefreshSuccess(BaseData data)
Description copied from class:RefreshablePresenterEnd of refresh with success request.- Overrides:
onRefreshSuccessin classRefreshablePresenter<T extends GroupsListView>- Parameters:
data- theBaseData.
-
onLoadMoreSuccess
public void onLoadMoreSuccess(BaseData data)
Description copied from class:EndlessListPresenterEnd of load more with success request- Overrides:
onLoadMoreSuccessin classEndlessListPresenter<T extends GroupsListView>- Parameters:
data- instance ofBaseDatapassed
-
-