-
- All Implemented Interfaces:
public final class SinglePresenterSelector extends PresenterSelector
A PresenterSelector that always returns the same Presenter. Useful for rows of items of the same type that are all rendered the same way.
-
-
Field Summary
Fields Modifier and Type Field Description private final Array<Presenter>presenters
-
Constructor Summary
Constructors Constructor Description SinglePresenterSelector(Presenter mPresenter)
-
Method Summary
Modifier and Type Method Description Array<Presenter>getPresenters()Returns an array of all possible presenters. PresentergetPresenter(Object item)Returns a presenter for the given item. -
-
Constructor Detail
-
SinglePresenterSelector
SinglePresenterSelector(Presenter mPresenter)
-
-
Method Detail
-
getPresenters
Array<Presenter> getPresenters()
Returns an array of all possible presenters. The returned array should not be modified.
-
getPresenter
Presenter getPresenter(Object item)
Returns a presenter for the given item.
-
-
-
-