public abstract class AbstractToolPanel
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) |
void |
detach(boolean revertChanges) |
protected abstract int |
getLayoutResource() |
protected void |
init(AbstractTool tool) |
boolean |
isAttached() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
AbstractTool 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
protected abstract int getLayoutResource()
protected final void init(AbstractTool tool)
public final android.view.View attach(android.view.ViewGroup parentView)
public void refresh()
public final void detach(boolean revertChanges)
public boolean isAttached()
protected int onBeforeDetach(android.view.View panelView,
boolean revertChanges)
protected void onAttached(android.content.Context context,
android.view.View panelView,
AbstractTool tool)
context - the view contextpanelView - the tool paneltool - the toolprotected abstract void onDetached()