public abstract class AbstractConfig extends java.lang.Object implements DataSourceInterface<AbstractConfig.BindData>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractConfig.BindData |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
protected boolean |
isDirty |
protected static int |
ORIGINAL_THUMBNAIL_SIZE |
Modifier | Constructor and Description |
---|---|
protected |
AbstractConfig(int name) |
protected |
AbstractConfig(int name,
ImageSource thumbnailSource) |
protected |
AbstractConfig(int name,
int thumbnailRes) |
protected |
AbstractConfig(android.os.Parcel in) |
protected |
AbstractConfig(java.lang.String name) |
protected |
AbstractConfig(java.lang.String name,
ImageSource thumbnailSource) |
protected |
AbstractConfig(java.lang.String name,
int thumbnailResId) |
Modifier and Type | Method and Description |
---|---|
DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
int |
describeContents() |
AbstractConfig.BindData |
generateBindData()
Load custom binding data Synchronous.
|
AbstractConfig.BindData |
generateBindDataAsync()
Load custom binding data asynchronous.
|
java.lang.String |
getId() |
java.lang.String |
getName()
Get the Name
|
android.graphics.Bitmap |
getThumbnailBitmap()
Return Thumbnail in full size.
|
android.graphics.Bitmap |
getThumbnailBitmap(int maxWidth)
Return the Thumbnail, do not call in Main Thread and use #getThumbnailResId() if #hasStaticThumbnail
|
int |
getThumbnailResId()
Get the static thumbnail drawable resource id if exist.
|
ImageSource |
getThumbnailSource() |
java.lang.String |
getTitle() |
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
boolean |
isClickable() |
boolean |
isDirty() |
void |
setDirtyFlag(boolean isDirty) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLayout, isSelectable
protected java.lang.String id
protected boolean isDirty
protected static final int ORIGINAL_THUMBNAIL_SIZE
protected AbstractConfig(@StringRes int name)
protected AbstractConfig(@StringRes int name, ImageSource thumbnailSource)
protected AbstractConfig(@StringRes int name, @DrawableRes @RawRes int thumbnailRes)
protected AbstractConfig(android.os.Parcel in)
protected AbstractConfig(java.lang.String name)
protected AbstractConfig(java.lang.String name, ImageSource thumbnailSource)
protected AbstractConfig(java.lang.String name, @DrawableRes @RawRes int thumbnailResId)
@NonNull public DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> createViewHolder(@NonNull android.view.View view, boolean useVerticalLayout)
DataSourceInterface
createViewHolder
in interface DataSourceInterface<AbstractConfig.BindData>
view
- view inflated with #getLayoutpublic int describeContents()
describeContents
in interface android.os.Parcelable
@Nullable public AbstractConfig.BindData generateBindData()
DataSourceInterface
generateBindData
in interface DataSourceInterface<AbstractConfig.BindData>
@Nullable public AbstractConfig.BindData generateBindDataAsync()
DataSourceInterface
generateBindDataAsync
in interface DataSourceInterface<AbstractConfig.BindData>
@Nullable public java.lang.String getId()
getId
in interface DataSourceInterface<AbstractConfig.BindData>
public java.lang.String getName()
getName
in interface DataSourceInterface<AbstractConfig.BindData>
@Nullable public android.graphics.Bitmap getThumbnailBitmap()
getThumbnailBitmap(int maxWidth)
@Nullable @WorkerThread public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
maxWidth
- Size the drawable should be limited to.@DrawableRes public int getThumbnailResId()
hasStaticThumbnail()
@Nullable public ImageSource getThumbnailSource()
public java.lang.String getTitle()
public int getVerticalLayout()
DataSourceInterface
getVerticalLayout
in interface DataSourceInterface<AbstractConfig.BindData>
public boolean hasStaticThumbnail()
getThumbnailBitmap()
public boolean isClickable()
public boolean isDirty()
isDirty
in interface DataSourceInterface<AbstractConfig.BindData>
public void setDirtyFlag(boolean isDirty)
setDirtyFlag
in interface DataSourceInterface<AbstractConfig.BindData>
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable