public class TextFontOptionToolPanel extends AbstractToolPanel<TextFontSelectionEditorTool> implements DataSourceListAdapter.OnItemClickListener<FontConfigInterface>
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
TextFontOptionToolPanel() |
Modifier and Type | Method and Description |
---|---|
protected Animator |
createExitAnimator(View panelView) |
protected Animator |
createShowAnimator(View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(Context context,
View panelView,
TextFontSelectionEditorTool tool)
Called on atteched the View.
|
protected int |
onBeforeDetach(View panelView,
boolean revertChanges)
Called before the View will detached.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(FontConfigInterface entity) |
attach, callAttached, detach, init, isAttached, isInited, refresh, updateStageOverlapping
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<TextFontSelectionEditorTool>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<TextFontSelectionEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<TextFontSelectionEditorTool>
protected void onAttached(Context context, @NonNull View panelView, TextFontSelectionEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<TextFontSelectionEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected int onBeforeDetach(@NonNull View panelView, boolean revertChanges)
AbstractToolPanel
onBeforeDetach
in class AbstractToolPanel<TextFontSelectionEditorTool>
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<TextFontSelectionEditorTool>
public void onItemClick(FontConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<FontConfigInterface>