public class OptionItem extends AbstractItem
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<OptionItem> |
CREATOR |
protected int |
id |
FLAVOR_OPTION_LIST, FLAVOR_OPTION_LIST_FOLDER_SUBITEM, FLAVOR_QUICK_OPTION_LIST, FLAVOR_QUICK_OPTION_LIST_FOLDER_SUBITEM, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
OptionItem(int id) |
|
OptionItem(int id,
int name) |
|
OptionItem(int id,
int name,
ImageSource thumbnailSource) |
|
OptionItem(int id,
java.lang.String name) |
|
OptionItem(int id,
java.lang.String name,
ImageSource thumbnailSource) |
protected |
OptionItem(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
int |
getId() |
int |
getLayout()
Get the default layout res id of the list item view.
|
java.lang.Class<? extends DataSourceListAdapter.DataSourceViewHolder> |
getViewHolderClass()
Get the class of a ViewHolder to Display in List
|
boolean |
isSelectable() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getLayout, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag, setName
protected int id
public static final android.os.Parcelable.Creator<OptionItem> CREATOR
public OptionItem(int id)
public OptionItem(int id, @Nullable java.lang.String name)
public OptionItem(int id, @Nullable java.lang.String name, @Nullable ImageSource thumbnailSource)
public OptionItem(int id, int name)
public OptionItem(int id, int name, @Nullable ImageSource thumbnailSource)
protected OptionItem(android.os.Parcel in)
public int getId()
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface
getLayout
in class AbstractItem
public boolean isSelectable()
@NonNull public java.lang.Class<? extends DataSourceListAdapter.DataSourceViewHolder> getViewHolderClass()
DataSourceInterface
getViewHolderClass
in interface DataSourceInterface
getViewHolderClass
in class AbstractItem
public boolean equals(java.lang.Object o)
equals
in class AbstractItem
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractItem
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractItem