public class StickerToolPanel extends AbstractToolPanel implements DataSourceListAdapter.OnItemClickListener<AbstractIdItem>, DataSourceArrayList.Callback
AbstractToolPanel.ToolView
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOOL_ID |
ANIMATION_DURATION, historySettings, parentView, toolHistoryLevel, toolView, uiDensity
Constructor and Description |
---|
StickerToolPanel(StateHandler stateHandler) |
Modifier and Type | Method and Description |
---|---|
void |
attachSticker(ImageStickerAsset config) |
void |
beforeListItemRemoved(java.util.List data,
int index) |
void |
beforeListItemsRemoved(java.util.List data,
int from,
int to) |
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected java.lang.Class<? extends Settings>[] |
getHistorySettings() |
protected int |
getLayoutResource() |
void |
listInvalid(java.util.List data) |
void |
listItemAdded(java.util.List data,
int index) |
void |
listItemChanged(java.util.List data,
int index) |
void |
listItemRemoved(java.util.List data,
int index) |
void |
listItemsAdded(java.util.List data,
int from,
int to) |
void |
listItemsRemoved(java.util.List data,
int from,
int to) |
protected void |
onAttached(android.content.Context context,
android.view.View panelView)
Called on attached the View.
|
protected int |
onBeforeDetach(android.view.View panelView,
boolean revertChanges)
Called before the View will detached.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(AbstractIdItem entity) |
attach, callAttached, detach, equals, feature, getConfig, getHistoryLevel, getHistoryState, getPanelView, getStateHandler, hashCode, isAcceptable, isAttached, isCancelable, isInited, isReady, onDetach, redoLocalState, refresh, revertChanges, revertToInitialState, saveEndState, saveInitialState, saveLocalState, setupHistory, toString, undoLocalState, updateStageOverlapping
public static final java.lang.String TOOL_ID
public StickerToolPanel(@NonNull StateHandler stateHandler)
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView)
AbstractToolPanel
onAttached
in class AbstractToolPanel
context
- the view contextpanelView
- this tool panel view@Nullable protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
in class AbstractToolPanel
protected int onBeforeDetach(@NonNull android.view.View panelView, boolean revertChanges)
AbstractToolPanel
onBeforeDetach
in class AbstractToolPanel
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel
public void onItemClick(@NonNull AbstractIdItem entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<AbstractIdItem>
@MainThread public void attachSticker(ImageStickerAsset config)
public void listInvalid(java.util.List data)
listInvalid
in interface DataSourceArrayList.Callback
public void listItemChanged(java.util.List data, int index)
listItemChanged
in interface DataSourceArrayList.Callback
public void listItemAdded(java.util.List data, int index)
listItemAdded
in interface DataSourceArrayList.Callback
public void listItemsAdded(java.util.List data, int from, int to)
listItemsAdded
in interface DataSourceArrayList.Callback
public void listItemRemoved(java.util.List data, int index)
listItemRemoved
in interface DataSourceArrayList.Callback
public void listItemsRemoved(java.util.List data, int from, int to)
listItemsRemoved
in interface DataSourceArrayList.Callback
public void beforeListItemRemoved(java.util.List data, int index)
beforeListItemRemoved
in interface DataSourceArrayList.Callback
public void beforeListItemsRemoved(java.util.List data, int from, int to)
beforeListItemsRemoved
in interface DataSourceArrayList.Callback