public class MenuToolPanel extends AbstractToolPanel<EditorToolMenu> implements DataSourceListAdapter.OnItemClickListener<ToolConfigInterface>
Modifier and Type | Class and Description |
---|---|
protected static class |
MenuToolPanel.HistoryStateOption |
static class |
MenuToolPanel.OPTION |
protected class |
MenuToolPanel.QuickListClickListener |
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
MenuToolPanel() |
Modifier and Type | Method and Description |
---|---|
void |
changeQuickOptionVisibility(EditorMenuState menuState) |
protected android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected java.util.ArrayList<AbstractConfig> |
createQuickOptionList() |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
EditorToolMenu tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
protected void |
onHistoryChanged(HistoryState historyState) |
void |
onItemClick(ToolConfigInterface entity) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh, updateStageOverlapping
@MainThread public void changeQuickOptionVisibility(EditorMenuState menuState)
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<EditorToolMenu>
protected java.util.ArrayList<AbstractConfig> createQuickOptionList()
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<EditorToolMenu>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<EditorToolMenu>
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, EditorToolMenu tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<EditorToolMenu>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<EditorToolMenu>
@MainThread protected void onHistoryChanged(HistoryState historyState)
public void onItemClick(@Nullable ToolConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<ToolConfigInterface>