public abstract class AbstractToolPanel<ToolClass extends AbstractEditorTool>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractToolPanel.ToolView |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ANIMATION_DURATION |
protected android.view.ViewGroup |
parentView |
protected AbstractToolPanel.ToolView |
toolView |
| Constructor and Description |
|---|
AbstractToolPanel() |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
attach(android.view.ViewGroup parentView) |
protected void |
callAttached(android.content.Context context,
android.view.View panelView) |
void |
detach(boolean revertChanges) |
protected abstract int |
getLayoutResource() |
protected void |
init(ToolClass tool) |
boolean |
isAttached() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
ToolClass tool)
Called on atteched the View.
|
protected int |
onBeforeDetach(android.view.View panelView,
boolean revertChanges)
Called before the View will detached.
|
protected abstract void |
onDetached()
Called after View would detached.
|
void |
refresh() |
protected static final int ANIMATION_DURATION
protected android.view.ViewGroup parentView
protected AbstractToolPanel.ToolView toolView
@LayoutRes protected abstract int getLayoutResource()
protected final void init(ToolClass tool)
public final android.view.View attach(@NonNull
android.view.ViewGroup parentView)
public void refresh()
public final void detach(boolean revertChanges)
public boolean isAttached()
protected void callAttached(android.content.Context context,
@NonNull
android.view.View panelView)
protected int onBeforeDetach(@NonNull
android.view.View panelView,
boolean revertChanges)
protected void onAttached(android.content.Context context,
@NonNull
android.view.View panelView,
ToolClass tool)
context - the view contextpanelView - the tool paneltool - the toolprotected abstract void onDetached()