public class ColorOptionToolPanel extends AbstractToolPanel<AbstractColorEditorTool<?>> implements DataSourceListAdapter.OnItemClickListener<AbstractConfig.ColorConfigInterface>, ColorPickerView.OnColorChanged
AbstractToolPanel.ToolViewANIMATION_DURATION, parentView, toolView| Constructor and Description |
|---|
ColorOptionToolPanel() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
AbstractColorEditorTool<?> tool)
Called on atteched the View.
|
protected int |
onBeforeDetach(android.view.View panelView,
boolean revertChanges)
Called before the View will detached.
|
void |
onColorPickerSelection(int color) |
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(AbstractConfig.ColorConfigInterface entity) |
attach, callAttached, detach, init, isAttached, refreshprotected int getLayoutResource()
getLayoutResource in class AbstractToolPanel<AbstractColorEditorTool<?>>protected void onAttached(android.content.Context context,
@NonNull
android.view.View panelView,
AbstractColorEditorTool<?> tool)
AbstractToolPanelonAttached in class AbstractToolPanel<AbstractColorEditorTool<?>>context - the view contextpanelView - the tool paneltool - the toolprotected int onBeforeDetach(@NonNull
android.view.View panelView,
boolean revertChanges)
AbstractToolPanelonBeforeDetach in class AbstractToolPanel<AbstractColorEditorTool<?>>protected void onDetached()
AbstractToolPanelonDetached in class AbstractToolPanel<AbstractColorEditorTool<?>>public void onItemClick(@NonNull
AbstractConfig.ColorConfigInterface entity)
onItemClick in interface DataSourceListAdapter.OnItemClickListener<AbstractConfig.ColorConfigInterface>public void onColorPickerSelection(int color)
onColorPickerSelection in interface ColorPickerView.OnColorChanged