public class

StylePickerGridViewAdapter

extends ArrayAdapter<T>
java.lang.Object
   ↳ android.widget.BaseAdapter
     ↳ android.widget.ArrayAdapter<T>
       ↳ com.pdftron.pdf.utils.StylePickerGridViewAdapter

Summary

[Expand]
Inherited Constants
From interface android.widget.Adapter
Public Constructors
StylePickerGridViewAdapter(Context context, List<Integer> list, boolean rotateIcon)
Public Methods
boolean contains(Integer item)
int getCount()
Gets style source count.
Integer getItem(int position)
Get style item in list at specific position.
String getSelected()
Gets selected style source
View getView(int position, View convertView, ViewGroup parent)
void setRotateIcon(boolean rotateIcon)
Sets whether the icons in the grid view should be rotate 180 degrees.
void setSource(List<Integer> list)
Sets style list source
[Expand]
Inherited Methods
From class android.widget.ArrayAdapter
From class android.widget.BaseAdapter
From class java.lang.Object
From interface android.widget.Adapter
From interface android.widget.Filterable
From interface android.widget.ListAdapter
From interface android.widget.SpinnerAdapter
From interface android.widget.ThemedSpinnerAdapter

Public Constructors

public StylePickerGridViewAdapter (Context context, List<Integer> list, boolean rotateIcon)

Parameters
context The context
list the style list
rotateIcon whether the icons in the grid should be rotated 180 degrees

Public Methods

public boolean contains (Integer item)

public int getCount ()

Gets style source count.

Returns
  • The style source count

public Integer getItem (int position)

Get style item in list at specific position.

Parameters
position The specific position.
Returns
  • style item in style source list.

public String getSelected ()

Gets selected style source

Returns
  • The selected style source

public View getView (int position, View convertView, ViewGroup parent)

public void setRotateIcon (boolean rotateIcon)

Sets whether the icons in the grid view should be rotate 180 degrees.

Parameters
rotateIcon whether the icons should be rotated 180 degrees

public void setSource (List<Integer> list)

Sets style list source

Parameters
list style list source