protected static class TextOptionToolPanel.HistoryStateOption extends TextOptionToolPanel.TextStickerOption
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
protected TextOptionToolPanel.OPTION |
option |
CREATOR
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
HistoryStateOption(TextOptionToolPanel.OPTION option,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
int |
getLayout()
Get the layout res id of the list item view.
|
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.
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
boolean |
isSelectable() |
void |
setEnabled(boolean enabled) |
describeContents, writeToParcel
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getVerticalLayout, isDirty, setDirtyFlag
@NonNull protected final TextOptionToolPanel.OPTION option
public HistoryStateOption(@NonNull TextOptionToolPanel.OPTION option, boolean enabled)
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
getLayout
in class TextOptionToolPanel.TextStickerOption
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class TextOptionToolPanel.TextStickerOption
maxWidth
- Size the drawable should be limited to.public int getThumbnailResId()
AbstractConfig
getThumbnailResId
in class TextOptionToolPanel.TextStickerOption
AbstractConfig.hasStaticThumbnail()
public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class TextOptionToolPanel.TextStickerOption
AbstractConfig.getThumbnailBitmap()
public boolean isSelectable()
isSelectable
in interface DataSourceInterface<AbstractConfig.BindData>
isSelectable
in class TextOptionToolPanel.TextStickerOption
public void setEnabled(boolean enabled)