BrowseFragment.MainFragmentRowsAdapter

Added in 1.1.0
Deprecated in 1.1.0

public class BrowseFragment.MainFragmentRowsAdapter<T extends Fragment>


This is used to pass information to RowsFragment or its subclasses. BrowseFragment uses this interface to pass row based interaction events to the target fragment.

Summary

Public constructors

Public methods

RowPresenter.ViewHolder
final T
int
void

Set the visibility titles/hover of browse rows.

void

Sets an item clicked listener on the fragment.

void

Sets an item selection listener.

void
setSelectedPosition(int rowPosition, boolean smooth)

Selects a Row.

void
setSelectedPosition(
    int rowPosition,
    boolean smooth,
    Presenter.ViewHolderTask rowHolderTask
)

Selects a Row and perform an optional task on the Row.

Public constructors

MainFragmentRowsAdapter

Added in 1.1.0
Deprecated in 1.1.0
public MainFragmentRowsAdapter(T fragment)

Public methods

findRowViewHolderByPosition

Added in 1.1.0
Deprecated in 1.1.0
public RowPresenter.ViewHolder findRowViewHolderByPosition(int position)
Parameters
int position

Position of Row.

Returns
RowPresenter.ViewHolder

Row ViewHolder.

getFragment

Added in 1.1.0
Deprecated in 1.1.0
public final T getFragment()

getSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public int getSelectedPosition()
Returns
int

The position of selected row.

setAdapter

Added in 1.1.0
Deprecated in 1.1.0
public void setAdapter(ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

setOnItemViewClickedListener

Added in 1.1.0
Deprecated in 1.1.0
public void setOnItemViewClickedListener(OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

setOnItemViewSelectedListener

Added in 1.1.0
Deprecated in 1.1.0
public void setOnItemViewSelectedListener(OnItemViewSelectedListener listener)

Sets an item selection listener.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public void setSelectedPosition(int rowPosition, boolean smooth)

Selects a Row.

setSelectedPosition

Added in 1.1.0
Deprecated in 1.1.0
public void setSelectedPosition(
    int rowPosition,
    boolean smooth,
    Presenter.ViewHolderTask rowHolderTask
)

Selects a Row and perform an optional task on the Row.